23 array(
'name, description',
'required'),
24 array(
'name',
'nameIsAvailable',
'on'=>
'create'),
25 array(
'name',
'newNameIsAvailable',
'on'=>
'update'),
26 array(
'name',
'isSuperuser',
'on'=>
'update'),
27 array(
'data',
'bizRuleNotEmpty'),
28 array(
'bizRule, data',
'safe'),
39 'description' =>
Rights::t(
'core',
'Description'),
40 'bizRule' =>
Rights::t(
'core',
'Business rule'),
53 $this->addError(
'name',
Rights::t(
'core',
'An item with this name already exists.', array(
':name'=>$this->name)));
62 if( strtolower(urldecode($_GET[
'name']))!==strtolower($this->name) )
72 if( strtolower($_GET[
'name'])!==strtolower($this->name) && strtolower($_GET[
'name'])===strtolower(
Rights::module()->superuserName) )
73 $this->addError(
'name',
Rights::t(
'core',
'Name of the superuser cannot be changed.'));
82 if( empty($this->data)===
false && empty($this->bizRule)===
true )
83 $this->addError(
'data',
Rights::t(
'core',
'Business rule cannot be empty.'));