PHP Класс Timber\Term

Наследование: extends Core, implements Timber\CoreInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$PostClass
$TermClass
$_children
$name the human-friendly name of the term (ex: French Cuisine)
$object_type
$representation
$taxonomy the WordPress taxonomy slug (ex: post_tag or actors)

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

Метод Описание
__construct ( integer $tid = null, string $tax = '' )
__toString ( ) : string
children ( ) : array
description ( ) : string
edit_link ( ) : string
from ( $tid, $taxonomy ) : static
get_children ( ) : array
get_edit_url ( ) : string
get_link ( ) : string
get_meta_field ( string $field_name ) : string
get_path ( ) : string
get_posts ( integer $numberposts = 10, string $post_type = 'any', string $PostClass = '' ) : array | boolean | null Get Posts that have been "tagged" with the particular term
link ( ) : string
meta ( string $field_name ) : string
path ( ) : string
posts ( integer $numberposts_or_args = 10, string $post_type_or_class = 'any', string $post_class = '' ) : array | boolean | null
title ( ) : string
update ( string $key, mixed $value )

Защищенные методы

Метод Описание
get_term ( integer $tid ) : mixed
get_term_from_query ( ) : integer
get_term_meta ( integer $tid ) : array
get_tid ( integer $tid ) : integer
init ( integer $tid )

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

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

public __construct ( integer $tid = null, string $tax = '' )
$tid integer
$tax string

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

public __toString ( ) : string
Результат string

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

public children ( ) : array
Результат array

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

public description ( ) : string
Результат string

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

public static from ( $tid, $taxonomy ) : static
$tid
$taxonomy
Результат static

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

public get_children ( ) : array
Результат array

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

public get_edit_url ( ) : string
Результат string

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

public get_meta_field ( string $field_name ) : string
$field_name string
Результат string

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

Устаревший: since 1.0
public get_path ( ) : string
Результат string

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

Get Posts that have been "tagged" with the particular term
public get_posts ( integer $numberposts = 10, string $post_type = 'any', string $PostClass = '' ) : array | boolean | null
$numberposts integer
$post_type string
$PostClass string
Результат array | boolean | null

get_term() защищенный Метод

protected get_term ( integer $tid ) : mixed
$tid integer
Результат mixed

get_term_from_query() защищенный Метод

protected get_term_from_query ( ) : integer
Результат integer

get_term_meta() защищенный Метод

protected get_term_meta ( integer $tid ) : array
$tid integer
Результат array

get_tid() защищенный Метод

protected get_tid ( integer $tid ) : integer
$tid integer
Результат integer

init() защищенный Метод

protected init ( integer $tid )
$tid integer

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

public meta ( string $field_name ) : string
$field_name string
Результат string

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

public path ( ) : string
Результат string

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

public posts ( integer $numberposts_or_args = 10, string $post_type_or_class = 'any', string $post_class = '' ) : array | boolean | null
$numberposts_or_args integer
$post_type_or_class string
$post_class string
Результат array | boolean | null

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

public title ( ) : string
Результат string

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

public update ( string $key, mixed $value )
$key string
$value mixed

Описание свойств

$PostClass публичное свойство

public $PostClass

$TermClass публичное свойство

public $TermClass

$_children публичное свойство

public $_children

$name публичное свойство

the human-friendly name of the term (ex: French Cuisine)
public $name

$object_type публичное свойство

public $object_type

$representation публичное статическое свойство

public static $representation

$taxonomy публичное свойство

the WordPress taxonomy slug (ex: post_tag or actors)
public $taxonomy