mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-03 10:32:12 +09:00
#19745697 trash module makem
document, comment module modify, because object in to trash and trash restore to object feature git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8388 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9e04e84a65
commit
8f3df45a2a
30 changed files with 949 additions and 34 deletions
|
|
@ -189,6 +189,7 @@
|
|||
|
||||
// get type, kind
|
||||
$type = $xml_info->action->{$this->act}->type;
|
||||
$ruleset = $xml_info->action->{$this->act}->ruleset;
|
||||
$kind = strpos(strtolower($this->act),'admin')!==false?'admin':'';
|
||||
if(!$kind && $this->module == 'admin') $kind = 'admin';
|
||||
if($this->module_info->use_mobile != "Y") Mobile::setMobile(false);
|
||||
|
|
@ -289,6 +290,18 @@
|
|||
}
|
||||
}
|
||||
|
||||
//TODO ruleset check...
|
||||
if(!empty($ruleset))
|
||||
{
|
||||
$rulesetFile = $oModuleModel->getValidatorFilePath($this->module, $ruleset);
|
||||
if(!empty($rulesetFile))
|
||||
{
|
||||
$Validator = new Validator($rulesetFile);
|
||||
if(!$Validator->validate())
|
||||
return $Validator->getLastError();
|
||||
}
|
||||
}
|
||||
|
||||
$oModule->setAct($this->act);
|
||||
|
||||
$this->module_info->module_type = $type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue