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:
-
- Returns:
- the tags for a node as array or csv
Saves tags to the database from a csv string
- Parameters:
-
| $csv | non escaped string of tags to save |
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: