Skip to content

Instantly share code, notes, and snippets.

@nnarhinen
Created August 26, 2010 19:10
Show Gist options
  • Save nnarhinen/552008 to your computer and use it in GitHub Desktop.
Save nnarhinen/552008 to your computer and use it in GitHub Desktop.
<?php
$validationManager = new AgaviValidationManager();
$method = 'write';
$validationManager->initialize($this->getContext());
$validationConfig = AgaviConfig::get('core.module_dir') . '/Default/validate/Login.xml';
require(AgaviConfigCache::checkConfig($validationConfig, $this->context->getName()));
$validators = array();
foreach($validationManager->getChilds() as $child) {
$validators[] = array(
'validatorName' => $child->getName(),
'inputNames' => $child->getArguments(),
'class' => $child->getParameter('class'),
);
}
var_dump($validators);
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment