PHP Класс Papi_CLI_Type_Command, papi

Наследование: extends Papi_CLI_Command
Показать файл Открыть проект

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

Метод Описание
list_ ( $args, $assoc_args ) List Papi types.

Защищенные методы

Метод Описание
get_default_format_fields ( ) : array Get default fields for formatter.
get_meta_type_value ( Papi_Entry_Type $entry_type ) : string Get meta type value.

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

get_default_format_fields() защищенный Метод

Get default fields for formatter.
protected get_default_format_fields ( ) : array
Результат array

get_meta_type_value() защищенный Метод

Get meta type value.
protected get_meta_type_value ( Papi_Entry_Type $entry_type ) : string
$entry_type Papi_Entry_Type
Результат string

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

## Options [--=] : Filter types based on type property. [--field=] : Prints the value of a single field for each type. [--fields=] : Limit the output to specific type fields. [--format=] : Acceptec values: table, csv, json, count, ids. Default: table. ## AVAILABLE FIELDS These fields will be displayed by default for each type: * name * id * post_type * template * number_of_pages * type Not all fields exists on a Papi type so some fields will have n/a as value when no value can be displayed. ## EXAMPLES wp papi type list
public list_ ( $args, $assoc_args )