PHP 클래스 Timber\Term

상속: extends Core, implements Timber\CoreInterface
파일 보기 프로젝트 열기: jarednova/timber 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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