PHP Трейт Bolt\Storage\Entity\ContentTaxonomyTrait

This is a breakout of the old Bolt\Content class and serves two main purposes: * Maintain backward compatibility for Bolt\Content through the remainder of the 2.x development/release life-cycle * Attempt to break up former functionality into sections of code that more resembles Single Responsibility Principles These traits should be considered transitional, the functionality in the process of refactor, and not representative of a valid approach.
Автор: Gawain Lynch ([email protected])
Показать файл Открыть проект

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

Метод Описание
getTaxonomy ( string $taxonomyType = null ) NOTE: This probably needs to implement, or be called by, Bolt\Storage::getTaxonomy()
setGroup ( string $group, string $name, string $taxonomytype, integer $sortorder ) : void Set the 'group', 'groupname' and 'sortorder' properties of the current object.
setTaxonomy ( string $taxonomyType, string | array $slug, string $name = '', integer $sortorder ) : boolean Set a taxonomy for the current object.
sortTaxonomy ( ) : void Sort the taxonomy of the current object, based on the order given in taxonomy.yml.

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

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

NOTE: This probably needs to implement, or be called by, Bolt\Storage::getTaxonomy()
public getTaxonomy ( string $taxonomyType = null )
$taxonomyType string

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

Set the 'group', 'groupname' and 'sortorder' properties of the current object.
public setGroup ( string $group, string $name, string $taxonomytype, integer $sortorder ) : void
$group string
$name string
$taxonomytype string
$sortorder integer
Результат void

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

Set a taxonomy for the current object.
public setTaxonomy ( string $taxonomyType, string | array $slug, string $name = '', integer $sortorder ) : boolean
$taxonomyType string
$slug string | array
$name string
$sortorder integer
Результат boolean

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

Sort the taxonomy of the current object, based on the order given in taxonomy.yml.
public sortTaxonomy ( ) : void
Результат void