mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
issue 46 Validator apply communication module.
standalone method apply validator. Auto Form generation error in Template engine is fixed git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8482 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
11815412dc
commit
8f7335c776
24 changed files with 141 additions and 41 deletions
|
|
@ -235,6 +235,7 @@
|
|||
if($xml_info->action->{$this->act}) {
|
||||
$forward->module = $module;
|
||||
$forward->type = $xml_info->action->{$this->act}->type;
|
||||
$forward->ruleset = $xml_info->action->{$this->act}->ruleset;
|
||||
$forward->act = $this->act;
|
||||
}
|
||||
}
|
||||
|
|
@ -247,6 +248,7 @@
|
|||
if($forward->module && $forward->type && $forward->act && $forward->act == $this->act) {
|
||||
$kind = strpos(strtolower($forward->act),'admin')!==false?'admin':'';
|
||||
$type = $forward->type;
|
||||
$ruleset = $forward->ruleset;
|
||||
$tpl_path = $oModule->getTemplatePath();
|
||||
$orig_module = $oModule;
|
||||
|
||||
|
|
@ -290,10 +292,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
//TODO ruleset check...
|
||||
// ruleset check...
|
||||
if(!empty($ruleset))
|
||||
{
|
||||
$rulesetFile = $oModuleModel->getValidatorFilePath($this->module, $ruleset);
|
||||
$rulesetModule = $forward->module ? $forward->module : $this->module;
|
||||
$rulesetFile = $oModuleModel->getValidatorFilePath($rulesetModule, $ruleset);
|
||||
if(!empty($rulesetFile))
|
||||
{
|
||||
$Validator = new Validator($rulesetFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue