PHP Класс Papi_Porter_Driver, papi

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$alias array | string Alias for driver name.
$name string The driver name.
$options array Options per property.
$porter Papi_Porter Papi Porter instance.

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

Метод Описание
__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.

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

Метод Описание
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.

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

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

The constructor.
public __construct ( )

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

Bootstrap the driver.
public bootstrap ( )

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

Call closure value if any.
protected call_value ( mixed $value ) : mixed
$value mixed
Результат mixed

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

Get filter key.
public filter ( string $type, string $filter ) : string
$type string
$filter string
Результат string

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

Get the driver name.
public get_driver_name ( ) : string
Результат string

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

Get options.
public get_options ( ) : array
Результат array

get_value() абстрактный публичный Метод

Get the import value for a property.
abstract public get_value ( array $options ) : mixed
$options array
Результат mixed

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

Set driver alias.
protected set_driver_alias ( )

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

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

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

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

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

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

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

Determine if a property should update existing array or not.
protected should_update_array ( string $slug ) : boolean
$slug string
Результат boolean

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

Return the given object. Useful for chaining.
protected with ( mixed $obj ) : mixed
$obj mixed
Результат mixed

Описание свойств

$alias защищенное свойство

Alias for driver name.
protected array|string $alias
Результат array | string

$name защищенное свойство

The driver name.
protected string $name
Результат string

$options защищенное свойство

Options per property.
protected array $options
Результат array

$porter защищенное свойство

Papi Porter instance.
protected Papi_Porter $porter
Результат Papi_Porter