PHP Class Papi_Porter_Driver, papi

Afficher le fichier Open project: wp-papi/papi Class Usage Examples

Protected Properties

Свойство Type Description
$alias array | string Alias for driver name.
$name string The driver name.
$options array Options per property.
$porter Papi_Porter Papi Porter instance.

Méthodes publiques

Méthode Description
__construct ( ) The constructor.
bootstrap ( ) Bootstrap the driver.
filter ( string $type, string $filter ) : string Get filter key.
get_driver_name ( ) : string Get the driver name.
get_options ( ) : array Get options.
get_value ( array $options ) : mixed Get the import value for a property.
set_options ( array $options = [] ) Set options for properties.
set_porter ( Papi_Porter $porter ) Set Porter instance.

Méthodes protégées

Méthode Description
call_value ( mixed $value ) : mixed Call closure value if any.
set_driver_alias ( ) Set driver alias.
set_driver_name ( string $name ) Set driver name.
should_update_array ( string $slug ) : boolean Determine if a property should update existing array or not.
with ( mixed $obj ) : mixed Return the given object. Useful for chaining.

Method Details

__construct() public méthode

The constructor.
public __construct ( )

bootstrap() public méthode

Bootstrap the driver.
public bootstrap ( )

call_value() protected méthode

Call closure value if any.
protected call_value ( mixed $value ) : mixed
$value mixed
Résultat mixed

filter() public méthode

Get filter key.
public filter ( string $type, string $filter ) : string
$type string
$filter string
Résultat string

get_driver_name() public méthode

Get the driver name.
public get_driver_name ( ) : string
Résultat string

get_options() public méthode

Get options.
public get_options ( ) : array
Résultat array

get_value() abstract public méthode

Get the import value for a property.
abstract public get_value ( array $options ) : mixed
$options array
Résultat mixed

set_driver_alias() protected méthode

Set driver alias.
protected set_driver_alias ( )

set_driver_name() protected méthode

Set driver name.
protected set_driver_name ( string $name )
$name string

set_options() public méthode

Set options for properties.
public set_options ( array $options = [] )
$options array

set_porter() public méthode

Set Porter instance.
public set_porter ( Papi_Porter $porter )
$porter Papi_Porter

should_update_array() protected méthode

Determine if a property should update existing array or not.
protected should_update_array ( string $slug ) : boolean
$slug string
Résultat boolean

with() protected méthode

Return the given object. Useful for chaining.
protected with ( mixed $obj ) : mixed
$obj mixed
Résultat mixed

Property Details

$alias protected_oe property

Alias for driver name.
protected array|string $alias
Résultat array | string

$name protected_oe property

The driver name.
protected string $name
Résultat string

$options protected_oe property

Options per property.
protected array $options
Résultat array

$porter protected_oe property

Papi Porter instance.
protected Papi_Porter $porter
Résultat Papi_Porter