Location: PHPKode > projects > SneakyCMS PHP Framework > sneakyfw/docs/Sneaky/db.html
<html>
<head>
<title>Docs For Class db</title>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">Sneaky</td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
        
                                    
                              		  [ <a href="../classtrees_Sneaky.html" class="menu">class tree: Sneaky</a> ]
		  [ <a href="../elementindex_Sneaky.html" class="menu">index: Sneaky</a> ]
		  	    [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../li_Sneaky.html">Sneaky</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../Sneaky/_includes---config.php.html">		config.php
		</a><br>
			<a href="../Sneaky/_classes---db.class.php.html">		db.class.php
		</a><br>
			<a href="../Sneaky/_classes---handler.class.php.html">		handler.class.php
		</a><br>
			<a href="../Sneaky/_includes---include.php.html">		include.php
		</a><br>
			<a href="../Sneaky/_processors---index.php.html">		index.php
		</a><br>
			<a href="../Sneaky/_index.php.html">		index.php
		</a><br>
			<a href="../Sneaky/_classes---reg.class.php.html">		reg.class.php
		</a><br>
	  </div><br />

      
      
            <b>Classes:</b><br />
        <div class="package">
		    		<a href="../Sneaky/db.html">db</a><br />
	    		<a href="../Sneaky/handler.html">handler</a><br />
	    		<a href="../Sneaky/reg.html">reg</a><br />
	  </div>

                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: db</h1>
Source Location: /classes/db.class.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre></pre><br />
<div class="description">db</div><br /><br />
<h4>Author(s):</h4>
<ul>
          <li>Andrew Cobby</li>
                        </ul>




        
          
      
<h4>Version:</h4>
<ul>
  <li>v1.11</li>
</ul>

<h4>Copyright:</h4>
<ul>
  <li>2007</li>
</ul>
        
</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../Sneaky/db.html#var$reg">$reg</a></li>
    <li><a href="../Sneaky/db.html#var$settings">$settings</a></li>
  </ul>
</td>


<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../Sneaky/db.html#methoddbClose">dbClose</a></li>
    <li><a href="../Sneaky/db.html#methoddbConnect">dbConnect</a></li>
    <li><a href="../Sneaky/db.html#methoddbFetchArray">dbFetchArray</a></li>
    <li><a href="../Sneaky/db.html#methoddbFetchAssoc">dbFetchAssoc</a></li>
    <li><a href="../Sneaky/db.html#methoddbFetchField">dbFetchField</a></li>
    <li><a href="../Sneaky/db.html#methoddbNumRows">dbNumRows</a></li>
    <li><a href="../Sneaky/db.html#methoddbQuery">dbQuery</a></li>
    <li><a href="../Sneaky/db.html#methodlistFields">listFields</a></li>
    <li><a href="../Sneaky/db.html#methodstdFetchAssoc">stdFetchAssoc</a></li>
    <li><a href="../Sneaky/db.html#method__contruct">__contruct</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>






</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a45">45</a>]<br />
db<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>author:</b>&nbsp;&nbsp;</td><td>Andrew Cobby</td>
  </tr>
  <tr>
    <td><b>version:</b>&nbsp;&nbsp;</td><td>v1.11</td>
  </tr>
  <tr>
    <td><b>copyright:</b>&nbsp;&nbsp;</td><td>2007</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />

<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
	<a name="var$reg"></a>
	<p></p>
	<h4>$reg = <span class="value">array()</span></h4>
	<p>[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a50">50</a>]</p>
  
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>array</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$settings"></a>
	<p></p>
	<h4>$settings = <span class="value">array()</span></h4>
	<p>[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a57">57</a>]</p>
  Set the settings from config.php<br /><br />
  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>array</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">

  <hr />
	<a name="methoddbClose"></a>
	<h3>method dbClose <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a146">146</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>NULL dbClose(
)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::dbClose()<br /><br /><br /><br />

	
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddbConnect"></a>
	<h3>method dbConnect <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a75">75</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>NULL dbConnect(
array
$settings)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::dbConnect()<br /><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$settings</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddbFetchArray"></a>
	<h3>method dbFetchArray <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a101">101</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array dbFetchArray(
mixed
$sql)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::dbFetchArray()<br /><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$sql</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddbFetchAssoc"></a>
	<h3>method dbFetchAssoc <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a113">113</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array dbFetchAssoc(
mixed
$sql)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::dbFetchAssoc()<br /><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$sql</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddbFetchField"></a>
	<h3>method dbFetchField <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a136">136</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array dbFetchField(
mixed
$sql, [mixed
$off = NULL])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::dbFetchField()<br /><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$sql</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$off</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddbNumRows"></a>
	<h3>method dbNumRows <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a124">124</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>int dbNumRows(
mixed
$sql)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::dbNumRows()<br /><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$sql</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methoddbQuery"></a>
	<h3>method dbQuery <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a89">89</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>mixed dbQuery(
mixed
$sql)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::dbQuery()<br /><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$sql</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodlistFields"></a>
	<h3>method listFields <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a156">156</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array listFields(
mixed
$tbl)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::listFields()<br /><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$tbl</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="methodstdFetchAssoc"></a>
	<h3>method stdFetchAssoc <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a172">172</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>array stdFetchAssoc(
mixed
$query)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::stdFetchAssoc()<br /><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$query</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method__contruct"></a>
	<h3>method __contruct <span class="smalllinenumber">[line <a href="../__filesource/fsource_Sneaky__classesdb.class.php.html#a65">65</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>NULL __contruct(
mixed
$reg)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		db::__contruct()<br /><br /><p>class constructor method</p><br /><br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">mixed&nbsp;&nbsp;</td>
        <td><b>$reg</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />


        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 20 Dec 2007 14:08:32 +1100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.0a2</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>
Return current item: SneakyCMS PHP Framework