프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
public getFields ( ) : |
||
리턴 |
public getTimestamp ( $when ) : string | ||
리턴 | string | Timestamp |
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 |