Location: PHPKode > projects > Wiki Web Help > wwh-0.3.9/wwh/class/html/class_tag.html
<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!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>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Tag Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>

<div class="contents">
<h1>Tag Class Reference</h1><!-- doxytag: class="Tag" --><table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tag.html#aac4e4d69d94327f24d9241e4449d2a7e">Tag</a> ($con, $id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tag.html#a9ce43e1b771e412c01df8f1fe59a5590">getTags</a> ($fmt=&quot;array&quot;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tag.html#a9f0cd20022a4c6b62b82d537b36f7faf">saveTags</a> ($csv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75c326298519ed14ebe762194c8a3f2a"></a><!-- doxytag: member="Tag::in_arrayi" ref="a75c326298519ed14ebe762194c8a3f2a" args="($needle, $haystack)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>in_arrayi</b> ($needle, $haystack)</td></tr>
<tr><td colspan="2"><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0debe10448ec56a57b5509648408a549"></a><!-- doxytag: member="Tag::$con" ref="a0debe10448ec56a57b5509648408a549" args="" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>$con</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae310061babb9c796e5c0eb0d9efaeca7"></a><!-- doxytag: member="Tag::$node_id" ref="ae310061babb9c796e5c0eb0d9efaeca7" args="" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>$node_id</b></td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9ce43e1b771e412c01df8f1fe59a5590"></a><!-- doxytag: member="Tag::getTags" ref="a9ce43e1b771e412c01df8f1fe59a5590" args="($fmt=&quot;array&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">getTags </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>fmt</em> = <code>&quot;array&quot;</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the tags for a node from the database</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>$fmt</em>&nbsp;</td><td>"array" or "csv" </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the tags for a node as array or csv </dd></dl>

</div>
</div>
<a class="anchor" id="a9f0cd20022a4c6b62b82d537b36f7faf"></a><!-- doxytag: member="Tag::saveTags" ref="a9f0cd20022a4c6b62b82d537b36f7faf" args="($csv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">saveTags </td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>csv</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Saves tags to the database from a csv string</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>$csv</em>&nbsp;</td><td>non escaped string of tags to save </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aac4e4d69d94327f24d9241e4449d2a7e"></a><!-- doxytag: member="Tag::Tag" ref="aac4e4d69d94327f24d9241e4449d2a7e" args="($con, $id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Tag</td>
          <td>(</td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>con</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">$&nbsp;</td>
          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Consructor</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>$con</em>&nbsp;</td><td>The connection to the mysql database </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>$id</em>&nbsp;</td><td>The id of the node associated with the tag </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>tags.class.php</li>
</ul>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Jul 7 16:20:57 2010 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
Return current item: Wiki Web Help