Location: PHPKode > projects > Program E > docs/developer/application/_cms_include_backup_inc_php.html
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs for page backup.inc.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			

<h2 class="file-name"><img src="../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/cms/include/backup.inc.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">filesource:</span> <a href="..//__filesource/fsource_application__cmsincludebackup.inc.php.html">Source Code for this file</a></li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functioncount_IDs" id="functioncount_IDs"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">count_IDs</span> (line <span class="line-number"><a href="..//__filesource/fsource_application__cmsincludebackup.inc.php.html#a82">82</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Count categories</p>
<p class="description"><p>Count the number of categories by counting the number of templates in the  template table of the database</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> number of categories.</li>
				<li><span class="field">todo:</span> Use a different error scheme.</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			count_IDs
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$botid</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$botid</span><span class="var-description">: the bot's ID, in case there are more                              than one bot.</span>			</li>
				</ul>
		
	
</div>
<a name="functiongetTemplateIDs" id="functiongetTemplateIDs"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">getTemplateIDs</span> (line <span class="line-number"><a href="..//__filesource/fsource_application__cmsincludebackup.inc.php.html#a119">119</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Retrieve a predetermined number of templates</p>
<p class="description"><p>Retrieve a predetermined number of templates and their corresponding ID's  from the templates table.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> key being the template ID and the value being the contents of the &lt;template&gt; tag.</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getTemplateIDs
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$botid</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$pid</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$templatesToProcess</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$botid</span><span class="var-description">: The bot's ID, in case there are more than one bot.</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$templatesToProcess</span><span class="var-description">: Number of templates to process in a single processing cycle.</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$pid</span><span class="var-description">: Process ID, the process cycle (number of templates/templates to process) that                                         is to be retrieved for processing</span>			</li>
				</ul>
		
	
</div>
<a name="functionmakeCategory" id="functionmakeCategory"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">makeCategory</span> (line <span class="line-number"><a href="..//__filesource/fsource_application__cmsincludebackup.inc.php.html#a41">41</a></span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creating the AIML categories.</p>
<p class="description"><p>Creating the actual AIML categories from the Topic, Pattern, That and  Template. At first this was done using DOM XML. However, it treated the  AIML in the template as text and thus converted all the &lt;srai&gt; etc to their  'safe' characters</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> a very long string</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			makeCategory
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$cat_topic</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$cat_that</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$cat_pattern</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$cat_template</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$cat_topic</span><span class="var-description">: the contents of &lt;topic name=''&gt;</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$cat_that</span><span class="var-description">: contents of &lt;that&gt;..&lt;/that&gt;</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$cat_pattern</span><span class="var-description">: contents of &lt;pattern&gt;..&lt;/pattern&gt;</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$cat_template</span><span class="var-description">: contents of the &lt;template&gt; including all                                   of the AIML code.</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Tue, 11 Jan 2005 18:40:57 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>
Return current item: Program E