Inheritance diagram for Tags:
Collaboration diagram for Tags:Static Public Member Functions | |
| static | get_one ($tag) |
| static | get_by_text ($tag) |
| static | get_by_slug ($tag) |
| static | get_by_id ($tag) |
| static | vocabulary () |
| static | get_by_frequency ($limit=null, $post_type=null) |
| static | object_type () |
| static | save_associations ($terms, $object_id, $object_type= 'post') |
| static | parse_url_tags ($tags, $objectify=false) |
Static Protected Attributes | |
| static | $vocabulary = 'tags' |
| static | $object_type = 'post' |
Definition at line 11 of file tags.php.
| static Tags::get_by_frequency | ( | $ | limit = null, |
|
| $ | post_type = null | |||
| ) | [static] |
Returns a list of terms from this vocabulary ordered by frequency of use on the post type specified
| int | $limit If supplied, limits the results to the specified number | |
| mixed | $post_type If a name or id of a post type is supplied, limits the results to the terms applying to that type |
| static Tags::get_by_id | ( | $ | tag | ) | [static] |
Returns a Tag object based on a supplied ID
| Integer | tag_id The ID of the tag to retrieve |
Reimplemented from Vocabulary.
Definition at line 56 of file tags.php.
Referenced by AdminTagsHandler::ajax_tags().
| static Tags::get_by_slug | ( | $ | tag | ) | [static] |
| static Tags::get_by_text | ( | $ | tag | ) | [static] |
| static Tags::get_one | ( | $ | tag | ) | [static] |
Return a tag based on an id, tag text or slug
Definition at line 21 of file tags.php.
Referenced by get_by_id(), get_by_slug(), get_by_text(), and parse_url_tags().
| static Tags::object_type | ( | ) | [static] |
| static Tags::parse_url_tags | ( | $ | tags, | |
| $ | objectify = false | |||
| ) | [static] |
Parse tag parameters from a URL string
| String | $tags The URL parameter string |
Definition at line 146 of file tags.php.
Referenced by Theme::act_display(), and Theme::act_display_tag().
| static Tags::save_associations | ( | $ | terms, | |
| $ | object_id, | |||
| $ | object_type = 'post' | |||
| ) | [static] |
Save the tags associated to this object into the terms and object_terms tables
| Array | $tags strings. The tag names to associate to the object | |
| Integer | $object_id. The id of the object being tagged | |
| String | $object_type. The name of the type of the object being tagged. Defaults to post |
Definition at line 131 of file tags.php.
Referenced by Post::delete().
| static Tags::vocabulary | ( | ) | [static] |
Returns the tags vocabulary
Definition at line 66 of file tags.php.
Referenced by Tag::__construct(), Post::__construct(), Post::__set(), Theme::act_display(), CoreBlocks::action_block_content_tag_archives(), AdminTagsHandler::ajax_tags(), Posts::count_by_tag(), Tag::create(), FormControlTag::get(), get_by_frequency(), AtomHandler::get_collection(), AdminDashboardHandler::get_dashboard(), get_one(), AdminTagsHandler::get_tags(), save_associations(), Posts::search_to_get(), and Charcoal::theme_show_tags().
1.7.1