Свойство | Type | Description | |
---|---|---|---|
$unsetfields |
Свойство | Type | Description | |
---|---|---|---|
$inforecords |
Méthode | Description | |
---|---|---|
__call ( string $name, array $args ) : mixed | Handle calls to this Term object that are implemented by plugins | |
__construct ( array $paramarray = [] ) | Term constructor Creates a Term instance | |
__get ( $name ) : mixed | function __get Overrides QueryRecord __get to implement custom object properties | |
__tostring ( ) : string | Allow output when the term is cast to a string | |
ancestors ( ) : Array | Find this Term's ancestors. | |
associate ( $type, $id ) | Associate this term to an object of a certain type via its id. | |
children ( ) : Array | Find this Term's children. | |
count ( string $object_type = 'post' ) : integer | Get a count of how many times the tag has been used in a post | |
default_fields ( ) : array | Return the defined database columns for a Term. | |
delete ( ) | Delete an existing term | |
descendants ( ) : Array | Find this Term's descendants. | |
dissociate ( $type = null, $id = null ) | Disassociate this term from an object of a certain type via its id. | |
get ( mixed $term, string $term_class = 'Term' ) : |
Gets the term object by criteria. | |
insert ( ) | function insert Saves a new term to the terms table | |
is_ancestor_of ( |
Test a Term's ancestry | |
is_descendant_of ( |
Test a Term's lineage. | |
not_ancestors ( ) : Array | Find all Terms in this Term's Vocabulary that are not its ancestors, or it. | |
not_descendants ( ) : Array | Find all Terms in this Term's Vocabulary that are not its descendants, or it. | |
object_count ( $type ) : Array | Find the count of objects of a given type associated with this Term. | |
object_types ( ) : Array | Find the types of objects associated with this Term. | |
objects ( $type ) : Array | Find objects of a given type associated with this Term. | |
parent ( ) : |
The Term that is this Term's parent in hierarchy. | |
siblings ( ) : Array | Find this Term's siblings. | |
update ( ) | function update Updates an existing term in the terms table |
Méthode | Description | |
---|---|---|
get_info ( ) : |
Gets the info object for this term, which contains data from the terminfo table related to this term. | |
is_valid ( ) : boolean | Make sure we have a valid term before inserting it in the database or updating it | |
setslug ( ) : string | Generate a new slug for the post. |
public __construct ( array $paramarray = [] ) | ||
$paramarray | array | an associative array of initial term values |
public __tostring ( ) : string | ||
Résultat | string | The terms display text |
public ancestors ( ) : Array | ||
Résultat | Array | Direct ancestors from the root to this Term in descendant order. |
public associate ( $type, $id ) | ||
$type | string. The name of the object type we want to set an association for | |
$id | integer. The object's id |
public children ( ) : Array | ||
Résultat | Array | of all direct children (compare to descendants()). |
public static default_fields ( ) : array | ||
Résultat | array | Array of columns in the Term table |
public descendants ( ) : Array | ||
Résultat | Array | of all descendants in MPTT left-to-right order. |
public dissociate ( $type = null, $id = null ) | ||
$type | string. The name of the object type we want to unset an association for | |
$id | integer. The object's id |
protected get_info ( ) : |
||
Résultat | object |
public is_ancestor_of ( |
||
$term | ||
Résultat | boolean | true if $term is a descendant of $this |
public is_descendant_of ( |
||
$term | ||
Résultat | boolean | true if $term is an ancestor of $this |
public not_ancestors ( ) : Array | ||
Résultat | Array | of Terms in MPTT left-to-right order. |
public not_descendants ( ) : Array | ||
Résultat | Array | of Terms in MPTT left-to-right order. |
public object_count ( $type ) : Array | ||
$type | string. The name of the object type for which the associations are wanted. | |
Résultat | Array | of object ids associated with this term for the given type. |
public object_types ( ) : Array | ||
Résultat | Array | of objects, with each object containing an object id and an object type name |
public objects ( $type ) : Array | ||
$type | string. The name of the object type for which the associations are wanted. | |
Résultat | Array | of object ids associated with this term for the given type. |
public parent ( ) : |
||
Résultat | This Term's parent |
public siblings ( ) : Array | ||
Résultat | Array | of all siblings including self. |
public update ( ) |