sfValidatorConfigHandler allows you to register validators with the system.
Method Summary
-
convertAlternate2Standard(&$config)
Converts alternate format to standard format.
-
string
execute($configFiles)
Executes this configuration handler.
-
boolean
generateRegistration($method, &$data, &$methods, &$names, &$validators)
Generates raw cache data.
-
loadAttributes(&$configFiles, &$methods, &$names, &$validators, &$config, &$list)
Loads the linear list of attributes from the [names] category.
-
loadNames(&$configFiles, &$method, &$methods, &$names, &$config, &$list)
Loads all request methods and the file/parameter names that will be
validated from the [methods] category.
-
loadValidators(&$configFiles, &$validators, &$config, &$list, &$entry)
Loads a list of validators.
flattenConfiguration , flattenConfigurationWithEnvironment , getConfigValue , mergeConfigValue , parseYaml , parseYamls
execute , getConfiguration , getParameterHolder , initialize , replaceConstants , replacePath , __construct
Method Details
-
convertAlternate2Standard (&$config)
Browse code
| &$config |
Configuration data
|
Converts alternate format to standard format.
-
(string) execute ($configFiles)
Browse code
| $configFiles |
An array of absolute filesystem path to a configuration file
|
Executes this configuration handler.
returns Data to be written to a cache file
throws sfParseException If a requested configuration file is improperly formatted
-
(boolean) generateRegistration ($method, &$data, &$methods, &$names, &$validators)
Browse code
| $method |
A request method
|
| &$data |
The data array where our cache code will be appended
|
| &$methods |
An associative array of request method data
|
| &$names |
An associative array of file/parameter data
|
| &$validators |
A validators array
|
Generates raw cache data.
returns Returns true if there is some validators for this file/parameter
-
loadAttributes (&$configFiles, &$methods, &$names, &$validators, &$config, &$list)
Browse code
| &$configFiles |
The configuration file name (for exception usage)
|
| &$methods |
An associative array of request method data
|
| &$names |
An associative array of file/parameter names in which to store loaded
information
|
| &$validators |
An associative array of validator data
|
| &$config |
The loaded ini configuration that we'll use for verification purposes
|
| &$list |
A comma delimited list of file/parameter names
|
Loads the linear list of attributes from the [names] category.
-
loadNames (&$configFiles, &$method, &$methods, &$names, &$config, &$list)
Browse code
| &$configFiles |
The configuration file name (for exception usage)
|
| &$method |
A request method
|
| &$methods |
An associative array of request method data
|
| &$names |
An associative array of file/parameter names in which to store loaded
information
|
| &$config |
The loaded ini configuration that we'll use for verification purposes
|
| &$list |
A comma delimited list of file/parameter names
|
Loads all request methods and the file/parameter names that will be
validated from the [methods] category.
-
loadValidators (&$configFiles, &$validators, &$config, &$list, &$entry)
Browse code
| &$configFiles |
The configuration file name (for exception usage)
|
| &$validators |
An associative array of validator data
|
| &$config |
The loaded ini configuration that we'll use for verification purposes
|
| &$list |
A comma delimited list of validator names
|
| &$entry |
A file/parameter name entry
|
Loads a list of validators.
|