Packageindex Classtrees Modulegroups Elementlist Report XML Files

StxRecordTags

StxRecordTags

private class StxRecordTags

 

Public Method Summary

void StxRecordTags()
Constructor
void setRecordId(integer $record_id)
Sets the record id that this set of tags relates to.
boolean getTagsFromString(string $input, [ string $delimiter ])
Parses a string into tags, splitting on the specified delimiter.
boolean save()
Saves or Updates the tags-to-records relationship.
array getTags()
Returns all the tags related to a record
array getTagRecords(string $tag)
Returns all the record id's associated with a tag

Private Method Summary

void saveTag(string $tag)
Saves a single tag to record in db table
boolean deleteRecordTags()
Deletes all tags for a record

Public Field Summary

unknown $recordId
Record id these tags apply to
array $tags
Array containing Tags for the record

Private Field Summary

$db
Handle to the syntax database
string $_tagTable
Name of the tags table

Public Method Details

StxRecordTags

public void StxRecordTags()

 

Returns void


setRecordId

public void setRecordId(integer $record_id)

 

Parameter
integer $record_id
Returns void


getTagsFromString

public boolean getTagsFromString(string $input, [ string $delimiter ])

 

Parameter
string $input
string $delimiter = >>'\s+'<<
for preg_split, optional
Returns boolean


save

public boolean save()

 

Returns boolean


getTags

public array getTags()

 

Returns array


getTagRecords

public array getTagRecords(string $tag)

  TODO: would it be useful to return a collection of records?

Parameter
string $tag
Returns array

of record id's


Private Method Details

saveTag

private void saveTag(string $tag)

 

Parameter
string $tag
Returns void


deleteRecordTags

private boolean deleteRecordTags()

 

Returns boolean


Public Field Details

$recordId

public unknown $recordId

>><<


$tags

public array $tags

>>array()<<


Private Field Details

$db

private $db

>>null<<


$_tagTable

private string $_tagTable

>>"stx_tags"<<



Packageindex Classtrees Modulegroups Elementlist Report XML Files
Generated on Fri, 28 Apr 2006 19:07:22 -0400 by PHPDoc v1.5 www.phpdoc.de