No description yet.
This is the code documentation for the SproutCMS project
Search documentation |
class TagsNo description yet.
Functions
public beginsWitharray Tags::beginsWith ( string $prefix ); Returns all tags which begin with a given string public byRecordarray Tags::byRecord ( string $table , int $record_id ); Returns all of the tags for a given record public byTablearray Tags::byTable ( string $table ); Returns all of the tags for a given table public findRecordsarray Tags::findRecords ( string $table , string $tag ); Returns all of the records for a given table/tag public getListstring Tags::getList ( [ array $tags ] ); Get HTML for a tag list (i.e. for tag display on the front-end) public recordCountsarray Tags::recordCounts ( string $table , int $limit ); Return the tags for a table, along with the number of records for each tag public recordCountsPerSubsitearray Tags::recordCountsPerSubsite ( string $table , int $limit [, int $subsite_id ] ); Return the tags for a table, along with the number of records for each tag Results are filtered by subsite, including records with subsite_id of NULL which is all sites public splitupTagsarray Tags::splitupTags ( string $string ); Converts a comma-separated string into a list of tags public suggestTagsarray Tags::suggestTags ( [ string $table [, string $prefix [, int $number ]]] ); Returns common tags. Typically tags are returned from the provided table, but not necessarily. public updatebool Tags::update ( string $table , int $record_id , array $new_tags [, bool $remove ] ); Updates tags for a given record |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |