PHP Class Carbon_Fields\Datastore\Datastore

Defines the key datastore methods and their default implementations.
Inheritance: implements Carbon_Fields\Datastore\Datastore_Interface
Show file Open project: htmlburger/carbon-fields Class Usage Examples

Public Methods

Method Description
__construct ( ) Initialize the datastore.
factory ( string $type ) : Datastore Create a new datastore of type $type.
init ( ) Initialization tasks for concrete datastores.
make ( $type ) An alias of factory().

Method Details

__construct() public method

Initialize the datastore.
public __construct ( )

factory() public static method

Create a new datastore of type $type.
public static factory ( string $type ) : Datastore
$type string
return Datastore $datastore

init() abstract public method

Initialization tasks for concrete datastores.
abstract public init ( )

make() public static method

An alias of factory().
See also: Datastore::factory()
public static make ( $type )