Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
AssignmentForm.php
1 <?php
2 /**
3  * Auth item assignment form class file.
4  *
5  * @author Christoffer Niska <cniska@live.com>
6  * @copyright Copyright &copy; 2010 Christoffer Niska
7  * @since 0.9
8  */
9 class AssignmentForm extends CFormModel {
10 
11  public $itemname;
12 
13  /**
14  * Declares the validation rules.
15  *
16  * @return array
17  */
18  public function rules()
19  {
20  return array(
21  array('itemname', 'safe'),
22  );
23  }
24 
25  /**
26  * Declares attribute labels.
27  *
28  * @return array
29  */
30  public function attributeLabels()
31  {
32  return array(
33  'itemname' => Rights::t('core', 'Authorization item'),
34  );
35  }
36 }