Свойство | Тип | Описание | |
---|---|---|---|
$fields | Will be made protected in Bolt 3.0. | ||
$notify_update | boolean | @deprecated Deprecated since 3.2, to be removed in 4.0 |
Свойство | Тип | Описание | |
---|---|---|---|
$app | Silex\Application | ||
$cachetimestamp | integer | ||
$data | array | ||
$defaultConfig | array | ||
$reservedFieldNames | array | ||
$yamlParser |
Метод | Описание | |
---|---|---|
__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 ( ) |
Метод | Описание | |
---|---|---|
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 ( ) |
Метод | Описание | |
---|---|---|
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 | ||
Результат | boolean |
public doReplacements ( mixed $value = null ) : mixed | ||
$value | mixed | |
Результат | mixed |
public getCurrentTimestamp ( ) : string | ||
Результат | string | Current timestamp |
protected getDefaults ( ) |
public getFields ( ) : |
||
Результат |
public getTimestamp ( $when ) : string | ||
Результат | string | Timestamp |
public getTwigPath ( ) : string[] | ||
Результат | string[] |
public getWhichEnd ( ) : string | ||
Результат | string |
protected parseContentTypes ( array $generalConfig ) : array | ||
$generalConfig | array | |
Результат | array |
protected parseDatabase ( array $options ) : array | ||
$options | array | |
Результат | array |
protected parseGeneral ( ) : array | ||
Результат | array |
protected parseSqliteOptions ( array $config ) : array | ||
$config | array | |
Результат | array |
protected parseTaxonomy ( ) : array | ||
Результат | array |
protected parseTemplatefields ( ) |
public Manager,Bolt\Storage\Field $fields | ||
Результат |
public bool $notify_update | ||
Результат | boolean |