~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to protected/models/ForeignKey.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 $onDelete, $onUpdate, $table;
28
28
 
29
29
        /**
30
 
         * @see         CActiveRecord::model()
 
30
         * @see         ActiveRecord::model()
31
31
         */
32
32
        public static function model($className = __CLASS__)
33
33
        {
35
35
        }
36
36
 
37
37
        /**
38
 
         * @see         CActiveRecord::instantiate()
 
38
         * @see         ActiveRecord::instantiate()
39
39
         */
40
40
        public function instantiate($attributes)
41
41
        {
64
64
        }
65
65
 
66
66
        /**
67
 
         * @see         CActiveRecord::tableName()
 
67
         * @see         ActiveRecord::tableName()
68
68
         */
69
69
        public function tableName()
70
70
        {
72
72
        }
73
73
 
74
74
        /**
75
 
         * @see         CActiveRecord::primaryKey()
 
75
         * @see         ActiveRecord::primaryKey()
76
76
         */
77
77
        public function primaryKey()
78
78
        {
84
84
        }
85
85
 
86
86
        /**
87
 
         * @see         CActiveRecord::safeAttributes()
 
87
         * @see         ActiveRecord::rules()
88
88
         */
89
 
        public function safeAttributes()
 
89
        public function rules()
90
90
        {
91
91
                return array(
92
 
                        'references',
93
 
                        'onUpdate',
94
 
                        'onDelete',
95
 
                        'TABLE_SCHEMA',
96
 
                        'TABLE_NAME',
97
 
                        'COLUMN_NAME',
 
92
                        array('references', 'type', 'type' => 'string'),
 
93
                        array('onUpdate', 'type', 'type' => 'string'),
 
94
                        array('onDelete', 'type', 'type' => 'string'),
 
95
                        array('TABLE_SCHEMA', 'type', 'type' => 'string'),
 
96
                        array('TABLE_NAME', 'type', 'type' => 'string'),
 
97
                        array('COLUMN_NAME', 'type', 'type' => 'string'),
98
98
                );
99
99
        }
100
100