1 <?php
2
3 // auto-loading fix
4 Yii::setPathOfAlias('P3WidgetTranslation', dirname(__FILE__));
5 Yii::import('P3WidgetTranslation.*');
6
7 class P3WidgetTranslation extends BaseP3WidgetTranslation
8 {
9 // Add your model-specific methods here. This file will not be overriden by gtc except you force it.
10 public static function model($className=__CLASS__)
11 {
12 return parent::model($className);
13 }
14
15 public function init()
16 {
17 return parent::init();
18 }
19
20 public function __toString() {
21 return (string) $this->language;
22
23 }
24
25 public function behaviors()
26 {
27 return array_merge(parent::behaviors(),array(
28 ));
29 }
30
31
32
33
34 public function rules()
35 {
36 return array_merge(
37 /*array('column1, column2', 'rule'),*/
38 parent::rules()
39 );
40 }
41 public function get_label()
42 {
43 return $this->language;
44
45 }
46 }
47