1 | <?php |
||
12 | class Configuration extends CiiModel |
||
|
|||
13 | { |
||
14 | /** |
||
15 | * Returns the static model of the specified AR class. |
||
16 | * @param string $className active record class name. |
||
17 | * @return Configuration the static model class |
||
18 | */ |
||
19 | public static function model($className=__CLASS__) |
||
23 | |||
24 | /** |
||
25 | * @return string the associated database table name |
||
26 | */ |
||
27 | public function tableName() |
||
31 | |||
32 | /** |
||
33 | * @return array validation rules for model attributes. |
||
34 | */ |
||
35 | public function rules() |
||
46 | |||
47 | /** |
||
48 | * @return array relational rules. |
||
49 | */ |
||
50 | public function relations() |
||
56 | |||
57 | /** |
||
58 | * @return array customized attribute labels (name=>label) |
||
59 | */ |
||
60 | public function attributeLabels() |
||
69 | |||
70 | /** |
||
71 | * Retrieves a list of models based on the current search/filter conditions. |
||
72 | * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions. |
||
73 | */ |
||
74 | public function search() |
||
88 | |||
89 | /** |
||
90 | * Generates a unique id |
||
91 | * @return string |
||
92 | */ |
||
93 | public function generateUniqueId() |
||
103 | |||
104 | /** |
||
105 | * This will do a full recursive deletion of a card from bothe the filesystem and from |
||
106 | * @param string $name The folder name in runtiome |
||
107 | * @return boolean If the recursive delete was successful or not |
||
108 | */ |
||
109 | public function fullDelete($name, $type='card') |
||
132 | } |
||
133 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.