9 public static function model($className = __CLASS__)
21 return 'users_rights_defaults';
32 'CBase64SerializeBehavior' => array(
33 'class' =>
'CBase64SerializeBehavior',
34 'serialAttributes' => array(
'RightsList'),
48 $model = $this->findByAttributes(array(
'Key' => $key));
50 return $model->RightsList;
61 $rightsList = array();
65 if (!empty($rights)) {
66 foreach ($rights as $right) {
67 $rightsList[$right.$key] = $right;
75 $model->RightsList = $rightsList;
77 return $model->save();