Public Member Functions | Static Public Member Functions

Tag Class Reference

Inheritance diagram for Tag:
Collaboration diagram for Tag:

List of all members.

Public Member Functions

 __construct ($params=array())
 __call ($name, $args)

Static Public Member Functions

static rewrite_tag_exists ($rule, $slug, $parameters)
static create ($paramarray)

Detailed Description

Class which describes a single Tag object

Definition at line 13 of file tag.php.


Constructor & Destructor Documentation

Tag::__construct ( paramarray = array()  ) 

Term constructor Creates a Term instance

Parameters:
array $paramarray an associative array of initial term values

Reimplemented from Term.

Definition at line 16 of file tag.php.


Member Function Documentation

Tag::__call ( name,
args 
)

Handle calls to this Tag object that are implemented by plugins

Parameters:
string $name The name of the function called
array $args Arguments passed to the function call
Returns:
mixed The value returned from any plugin filters, null if no value is returned

Reimplemented from Term.

Definition at line 67 of file tag.php.

static Tag::create ( paramarray  )  [static]

Create a tag and save it.

Parameters:
array $paramarray An associative array of tag fields
Returns:
Tag The new Tag object

Definition at line 54 of file tag.php.

Referenced by WPImport::action_auth_ajax_wp_import_posts().

static Tag::rewrite_tag_exists ( rule,
slug,
parameters 
) [static]

Check if a tag exists on a published post, to see if we should match this rewrite rule.

Returns:
Boolean Whether the tag exists on a published post.

Definition at line 30 of file tag.php.


The documentation for this class was generated from the following file: