Property | Type | Description | |
---|---|---|---|
$fields | Will be made protected in Bolt 3.0. | ||
$notify_update | boolean | @deprecated Deprecated since 3.2, to be removed in 4.0 |
Property | Type | Description | |
---|---|---|---|
$app | Silex\Application | ||
$cachetimestamp | integer | ||
$data | array | ||
$defaultConfig | array | ||
$reservedFieldNames | array | ||
$yamlParser |
Method | Description | |
---|---|---|
__construct ( Silex\Application $app ) | ||
cacheConfig ( boolean $force = false ) | ||
checkConfig ( ) : boolean | Sanity checks for doubles in in contenttypes. | |
doReplacements ( mixed $value = null ) : mixed | Replaces placeholders in config values %foo% will be resolved to $app['foo'] from the container | |
get ( string $path, string | array | boolean $default = null ) : mixed | Get a config value, using a path. | |
getConfig ( ) : array | Load the configuration from the various YML files. | |
getCurrentTimestamp ( ) : string | Get the current timestamp, corrected to the timezone. | |
getExceptions ( ) : array | null | ||
getFields ( ) : |
A getter to access the fields manager. | |
getTimestamp ( $when ) : string | Get a timestamp, corrected to the timezone. | |
getTwigPath ( ) : string[] | Build an array of Twig paths. | |
getWhichEnd ( ) : string | Use {@see Zone} instead with a {@see Request}. | |
initialize ( ) | ||
set ( string $path, mixed $value ) : boolean | Set a config value, using a path. | |
setCKPath ( ) |
Method | Description | |
---|---|---|
checkValidCache ( ) | ||
getDefaults ( ) | Assume sensible defaults for a number of options. | |
loadCache ( ) : array | null | Attempt to load cached configuration files. | |
parseConfigYaml ( string $filename, string $path = null ) : array | Read and parse a YAML configuration file | |
parseConnectionParams ( array | string $params, array $defaults = [] ) : array | Parses params to valid connection parameters: - Defaults are merged into the params - Bolt keys are converted to Doctrine keys - Invalid keys are filtered out | |
parseContentType ( string $key, array $contentType, array $generalConfig ) : array | Parse a single Contenttype configuration array. | |
parseContentTypes ( array $generalConfig ) : array | Read and parse the contenttypes.yml configuration file. | |
parseDatabase ( array $options ) : array | Parse and fine-tune the database configuration. | |
parseFieldsAndGroups ( array $fields, array $generalConfig ) : array | Parse a Contenttype's filed and determine the grouping | |
parseGeneral ( ) : array | Read and parse the config.yml and config_local.yml configuration files. | |
parseSqliteOptions ( array $config ) : array | Fine-tune Sqlite configuration parameters. | |
parseTaxonomy ( ) : array | Read and parse the taxonomy.yml configuration file. | |
parseTemplatefields ( ) | This method pulls the templatefields config from the theme config and appends it to the contenttypes configuration. | |
parseTheme ( string $themePath, array $generalConfig ) : array | Read and parse the current theme's config.yml configuration file. | |
saveCache ( ) |
Method | Description | |
---|---|---|
checkTaxonomy ( ) : boolean | Sanity check for slashes in in taxonomy slugs. | |
determineZone ( ) | ||
invalidateCache ( ) | Invalidate (remove) the cache file. | |
isCacheValid ( ) : boolean | Check if the cached config file exists, and is newer than the authoritative source. | |
isThemeCacheValid ( ) : boolean | Check if the cache is still valid with theme file as well. | |
loadTheme ( ) | Checks if cache is valid for theme; if not invalidate and load it. | |
parseFieldRepeaters ( array $fields, string $key ) : array | Basic validation of repeater fields. |
public checkConfig ( ) : boolean | ||
return | boolean |
public doReplacements ( mixed $value = null ) : mixed | ||
$value | mixed | |
return | mixed |
public getCurrentTimestamp ( ) : string | ||
return | string | Current timestamp |
protected getDefaults ( ) |
public getFields ( ) : |
||
return |
public getTimestamp ( $when ) : string | ||
return | string | Timestamp |
public getTwigPath ( ) : string[] | ||
return | string[] |
public getWhichEnd ( ) : string | ||
return | string |
protected parseContentTypes ( array $generalConfig ) : array | ||
$generalConfig | array | |
return | array |
protected parseDatabase ( array $options ) : array | ||
$options | array | |
return | array |
protected parseGeneral ( ) : array | ||
return | array |
protected parseSqliteOptions ( array $config ) : array | ||
$config | array | |
return | array |
protected parseTaxonomy ( ) : array | ||
return | array |
protected parseTemplatefields ( ) |
public Manager,Bolt\Storage\Field $fields | ||
return |
public bool $notify_update | ||
return | boolean |