コード例 #1
0
ファイル: AdminImages.php プロジェクト: sealence/local
 protected function _childValidation()
 {
     if (!Tools::getValue('id_image_type') and Validate::isImageTypeName($typeName = Tools::getValue('name')) and ImageType::typeAlreadyExists($typeName)) {
         $this->_errors[] = Tools::displayError('this name already exists');
     }
 }
コード例 #2
0
 protected function _childValidation()
 {
     if (!Tools::getValue('id_image_type') && Validate::isImageTypeName($typeName = Tools::getValue('name')) && ImageType::typeAlreadyExists($typeName)) {
         $this->errors[] = $this->trans('This name already exists.', array(), 'Admin.Design.Notification');
     }
 }