PHP Class Papi_CLI_Type_Command, papi

Inheritance: extends Papi_CLI_Command
Show file Open project: wp-papi/papi

Public Methods

Method Description
list_ ( $args, $assoc_args ) List Papi types.

Protected Methods

Method Description
get_default_format_fields ( ) : array Get default fields for formatter.
get_meta_type_value ( Papi_Entry_Type $entry_type ) : string Get meta type value.

Method Details

get_default_format_fields() protected method

Get default fields for formatter.
protected get_default_format_fields ( ) : array
return array

get_meta_type_value() protected method

Get meta type value.
protected get_meta_type_value ( Papi_Entry_Type $entry_type ) : string
$entry_type Papi_Entry_Type
return string

list_() public method

## 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 )