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