~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to protected/models/Index.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        public $NON_UNIQUE = 1;
28
28
 
29
29
        /**
30
 
         * @see         CActiveRecord::model()
 
30
         * @see         ActiveRecord::model()
31
31
         */
32
 
        public static function model($className=__CLASS__)
 
32
        public static function model($className = __CLASS__)
33
33
        {
34
34
                return parent::model($className);
35
35
        }
36
36
 
37
37
        /**
38
 
         * @see         CActiveRecord::tableName()
 
38
         * @see         ActiveRecord::tableName()
39
39
         */
40
40
        public function tableName()
41
41
        {
43
43
        }
44
44
 
45
45
        /**
46
 
         * @see         CActiveRecord::primaryKey()
 
46
         * @see         ActiveRecord::primaryKey()
47
47
         */
48
48
        public function primaryKey()
49
49
        {
56
56
        }
57
57
 
58
58
        /**
59
 
         * @see         CActiveRecord::relations()
 
59
         * @see         ActiveRecord::relations()
60
60
         */
61
61
        public function relations()
62
62
        {
67
67
        }
68
68
 
69
69
        /**
70
 
         * @see         CActiveRecord::safeAttributes()
 
70
         * @see         ActiveRecord::rules()
71
71
         */
72
 
        public function safeAttributes()
 
72
        public function rules()
73
73
        {
74
74
                return array(
75
 
                        'INDEX_NAME',
76
 
                        'type',
 
75
                        array('INDEX_NAME', 'type', 'type' => 'string'),
 
76
                        array('type', 'type', 'type' => 'string'),
77
77
                );
78
78
        }
79
79