1 <?php
2 /**
3 * Class file.
4 *
5 * @author Tobias Munk <schmunk@usrbin.de>
6 * @link http://www.phundament.com/
7 * @copyright Copyright © 2005-2011 diemeisterei GmbH
8 * @license http://www.phundament.com/license/
9 */
10
11 /**
12 * Desc
13 * *
14 * @author Tobias Munk <schmunk@usrbin.de>
15 * @package p3widgets.models
16 * @since 3.0.1
17 */
18 class P3WidgetMeta extends BaseP3WidgetMeta
19 {
20 // Add your model-specific methods here. This file will not be overriden by gtc except you force it.
21 public static function model($className=__CLASS__)
22 {
23 return parent::model($className);
24 }
25
26 public function init()
27 {
28 return parent::init();
29 }
30
31 public function __toString() {
32 return (string) $this->type;
33
34 }
35
36 public function behaviors() {
37 return array_merge(
38 array(
39 'MetaData' => array(
40 'class' => 'P3MetaDataBehavior',
41 'metaDataRelation' => '_self_',
42 )
43 ), parent::behaviors()
44 );
45 }
46
47
48 public function rules()
49 {
50 return array_merge(
51 /*array('column1, column2', 'rule'),*/
52 parent::rules()
53 );
54 }
55
56 }
57