PHP Класс Habari\Tag

Наследование: extends Term
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Описание методов

__call() публичный Метод

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
Результат mixed The value returned from any plugin filters, null if no value is returned

__construct() публичный Метод

public __construct ( $params = [] )

create() публичный статический Метод

Create a tag and save it.
public static create ( array $paramarray ) : Tag
$paramarray array An associative array of tag fields
Результат Tag The new Tag object

rewrite_tag_exists() публичный статический Метод

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
Результат boolean Whether the tag exists on a published post.