Tag Class Reference

Public Member Functions

 Tag ($con, $id)
 getTags ($fmt="array")
 saveTags ($csv)
 in_arrayi ($needle, $haystack)

Data Fields

 $con
 $node_id

Member Function Documentation

getTags ( fmt = "array"  ) 

Returns the tags for a node from the database

Parameters:
$fmt "array" or "csv"
Returns:
the tags for a node as array or csv
saveTags ( csv  ) 

Saves tags to the database from a csv string

Parameters:
$csv non escaped string of tags to save
Tag ( con,
id 
)

Consructor

Parameters:
$con The connection to the mysql database
$id The id of the node associated with the tag

The documentation for this class was generated from the following file:
Generated on Wed Jul 7 16:20:57 2010 by  doxygen 1.6.3