PHP Class Pressbooks\Taxonomy

Afficher le fichier Open project: pressbooks/pressbooks Class Usage Examples

Méthodes publiques

Свойство Type Description
$currentVersion integer The value for option: pressbooks_taxonomy_version

Méthodes publiques

Méthode Description
__construct ( )
getBackMatterType ( $id ) : string Return the first (and only) back-matter-type for a specific post
getChapterType ( $id ) : string Return the first (and only) chapter-type for a specific post
getFrontMatterType ( $id ) : string Return the first (and only) front-matter-type for a specific post
insertTerms ( ) Insert Front Matter, Back Matter terms and Chapter Terms
registerTaxonomies ( ) Create a custom taxonomy for Chapter, Front Matter and Back Matter post types
upgrade ( integer $version ) Upgrade metadata.
upgradeChapterTypes ( ) Upgrade Chapter Types.

Method Details

__construct() public méthode

public __construct ( )

getBackMatterType() static public méthode

Return the first (and only) back-matter-type for a specific post
static public getBackMatterType ( $id ) : string
$id
Résultat string

getChapterType() static public méthode

Return the first (and only) chapter-type for a specific post
static public getChapterType ( $id ) : string
$id
Résultat string

getFrontMatterType() static public méthode

Return the first (and only) front-matter-type for a specific post
static public getFrontMatterType ( $id ) : string
$id
Résultat string

insertTerms() static public méthode

Insert Front Matter, Back Matter terms and Chapter Terms
static public insertTerms ( )

registerTaxonomies() static public méthode

Create a custom taxonomy for Chapter, Front Matter and Back Matter post types
static public registerTaxonomies ( )

upgrade() public méthode

Upgrade metadata.
public upgrade ( integer $version )
$version integer

upgradeChapterTypes() public méthode

Upgrade Chapter Types.
public upgradeChapterTypes ( )

Property Details

$currentVersion static_oe public_oe property

The value for option: pressbooks_taxonomy_version
See also: upgrade()
static public int $currentVersion
Résultat integer