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])
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
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