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