Property | Type | Description | |
---|---|---|---|
$_adapters | Libraries::locate() compatible path to adapters for this class. | ||
$_configurations | Collection | A Collection of the configurations you add through Catalog::config(). |
Method | Description | |
---|---|---|
config ( array $config = null ) : array | Sets configurations for this Adaptable implementation. | |
read ( mixed $name, string $category, string $locale, array $options = [] ) : array | Reads data. | |
write ( string $name, string $category, string $locale, mixed $data, array $options = [] ) : boolean | Writes data. |
public static read ( mixed $name, string $category, string $locale, array $options = [] ) : array | ||
$name | mixed | Provide a single configuration name as a string or multiple ones as an array which will be used to read from. Pass `true` to use all configurations. |
$category | string | A (dot-delimeted) category. |
$locale | string | A locale identifier. |
$options | array | Valid options are: - `'scope'`: The scope to use. - `'lossy'`: Whether or not to use the compact and lossy format, defaults to `true`. |
return | array | If available the requested data, else `null`. |
public static write ( string $name, string $category, string $locale, mixed $data, array $options = [] ) : boolean | ||
$name | string | Provide a configuration name to use for writing. |
$category | string | A (dot-delimited) category. |
$locale | string | A locale identifier. |
$data | mixed | If method is used without specifying an id must be an array. |
$options | array | Valid options are: - `'scope'`: The scope to use. |
return | boolean | Success. |
protected static $_adapters |