PHP Class Timber\Term

Inheritance: extends Core, implements Timber\CoreInterface
Afficher le fichier Open project: jarednova/timber Class Usage Examples

Méthodes publiques

Свойство Type Description
$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)

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
get_term ( integer $tid ) : mixed
get_term_from_query ( ) : integer
get_term_meta ( integer $tid ) : array
get_tid ( integer $tid ) : integer
init ( integer $tid )

Method Details

__construct() public méthode

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

__toString() public méthode

public __toString ( ) : string
Résultat string

children() public méthode

public children ( ) : array
Résultat array

description() public méthode

public description ( ) : string
Résultat string

from() public static méthode

public static from ( $tid, $taxonomy ) : static
$tid
$taxonomy
Résultat static

get_children() public méthode

public get_children ( ) : array
Résultat array

get_edit_url() public méthode

public get_edit_url ( ) : string
Résultat string

get_meta_field() public méthode

public get_meta_field ( string $field_name ) : string
$field_name string
Résultat string

get_path() public méthode

Deprecation: since 1.0
public get_path ( ) : string
Résultat string

get_posts() public méthode

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
Résultat array | boolean | null

get_term() protected méthode

protected get_term ( integer $tid ) : mixed
$tid integer
Résultat mixed

get_term_from_query() protected méthode

protected get_term_from_query ( ) : integer
Résultat integer

get_term_meta() protected méthode

protected get_term_meta ( integer $tid ) : array
$tid integer
Résultat array

get_tid() protected méthode

protected get_tid ( integer $tid ) : integer
$tid integer
Résultat integer

init() protected méthode

protected init ( integer $tid )
$tid integer

meta() public méthode

public meta ( string $field_name ) : string
$field_name string
Résultat string

path() public méthode

public path ( ) : string
Résultat string

posts() public méthode

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
Résultat array | boolean | null

title() public méthode

public title ( ) : string
Résultat string

update() public méthode

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

Property Details

$PostClass public_oe property

public $PostClass

$TermClass public_oe property

public $TermClass

$_children public_oe property

public $_children

$name public_oe property

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

$object_type public_oe property

public $object_type

$representation public_oe static_oe property

public static $representation

$taxonomy public_oe property

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