ACL Extension  0.3
 All Data Structures Namespaces Files Functions Variables
PmAroNode.php
Go to the documentation of this file.
1 <?php
2 
10 class PmAroNode extends PmAclNode{
16  public static function model($className=__CLASS__)
17  {
18  return parent::model($className);
19  }
20 
24  public function tableName()
25  {
26  return '{{aro}}';
27  }
28 
32  public function rules()
33  {
34  // NOTE: you should only define rules for those attributes that
35  // will receive user inputs.
36  return array(
37  );
38  }
39 
43  public function attributeLabels()
44  {
45  return array(
46  'id' => 'ID',
47  'collection_id' => 'Collection Id',
48  'path' => 'path',
49  );
50  }
51 
55  public function relations()
56  {
57  // NOTE: you may need to adjust the relation name and the related
58  // class name for the relations automatically generated below.
59  return array(
60  'aro' => array(static::BELONGS_TO, 'PmAro', 'collection_id'),
61  'permissions' => array(static::HAS_MANY, 'Permission', 'aro_id')
62  );
63  }
64 }
65 
66 ?>