PHP Class Papi_CLI_Command, papi

Inheritance: extends WP_CLI_Command
Afficher le fichier Open project: wp-papi/papi

Méthodes protégées

Méthode Description
get_default_format_fields ( ) : null | string | array Get default fields for formatter.
get_format_args ( array $assoc_args ) : array Get format args that will be passed into CLI Formatter.
get_formatter ( array $assoc_args ) : Formatter Get formatter object based on supplied arguments.

Method Details

get_default_format_fields() protected méthode

Class that extends Papi_CLI_Command should override this method.
protected get_default_format_fields ( ) : null | string | array
Résultat null | string | array

get_format_args() protected méthode

Get format args that will be passed into CLI Formatter.
protected get_format_args ( array $assoc_args ) : array
$assoc_args array Associative args from CLI
Résultat array Formatter args

get_formatter() protected méthode

Get formatter object based on supplied arguments.
protected get_formatter ( array $assoc_args ) : Formatter
$assoc_args array Associative args from CLI to determine formattin
Résultat WP_CLI\Formatter