PHP Class Habari\Tag

Inheritance: extends Term
显示文件 Open project: habari/system

Public Methods

Method Description
__call ( string $name, array $args ) : mixed Handle calls to this Tag object that are implemented by plugins
__construct ( $params = [] )
create ( array $paramarray ) : Tag Create a tag and save it.
rewrite_tag_exists ( $rule, $slug, $parameters ) : boolean Check if a tag exists on a published post, to see if we should match this rewrite rule.

Method Details

__call() public method

Handle calls to this Tag object that are implemented by plugins
public __call ( string $name, array $args ) : mixed
$name string The name of the function called
$args array Arguments passed to the function call
return mixed The value returned from any plugin filters, null if no value is returned

__construct() public method

public __construct ( $params = [] )

create() public static method

Create a tag and save it.
public static create ( array $paramarray ) : Tag
$paramarray array An associative array of tag fields
return Tag The new Tag object

rewrite_tag_exists() public static method

Check if a tag exists on a published post, to see if we should match this rewrite rule.
public static rewrite_tag_exists ( $rule, $slug, $parameters ) : boolean
return boolean Whether the tag exists on a published post.