symfony API

sfValidatorConfigHandler Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfValidatorConfigHandler allows you to register validators with the system.

Inheritence

sfValidatorConfigHandler  <  sfYamlConfigHandler < sfConfigHandler

Method Summary

  • convertAlternate2Standard(&amp;$config)
    Converts alternate format to standard format.
  • string execute($configFiles)
    Executes this configuration handler.
  • boolean generateRegistration($method, &amp;$data, &amp;$methods, &amp;$names, &amp;$validators)
    Generates raw cache data.
  • loadAttributes(&amp;$configFiles, &amp;$methods, &amp;$names, &amp;$validators, &amp;$config, &amp;$list)
    Loads the linear list of attributes from the [names] category.
  • 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.
  • loadValidators(&amp;$configFiles, &amp;$validators, &amp;$config, &amp;$list, &amp;$entry)
    Loads a list of validators.

Methods inherited from sfYamlConfigHandler

flattenConfiguration , flattenConfigurationWithEnvironment , getConfigValue , mergeConfigValue , parseYaml , parseYamls

Methods inherited from sfConfigHandler

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.