|
|
|
StxRecordTags
StxRecordTags
|
private class StxRecordTags
|
| |
|
|
|
|
|
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 |
|
|
| Returns |
void |
|
getTagsFromString |
|
public boolean getTagsFromString(string $input, [ string $delimiter ])
|
| |
|
| Parameter |
|
|
|
| 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 |
|
|
| Returns |
array of record id's |
|
|
Private Method Details |
saveTag |
|
private void saveTag(string $tag)
|
| |
|
| Parameter |
|
|
| 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"<<
|
|
|
|
|
|
| Generated on Fri, 28 Apr 2006 19:07:22 -0400 by PHPDoc v1.5 www.phpdoc.de
|