~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to protected/models/privileges/SchemaPrivilege.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:
60
60
                        'User',
61
61
                );
62
62
        }
63
 
 
 
63
        
64
64
        /**
65
 
         * @see         CActiveRecord::safeAttributes()
 
65
         * @see         CActiveRecord::rules()
66
66
         */
67
 
        public function safeAttributes()
 
67
        public function rules()
68
68
        {
69
69
                return array(
70
 
                        'Host',
71
 
                        'User',
72
 
                        'Db',
73
 
                        'Privileges',
 
70
                        array('Host', 'type', 'type' => 'string'),
 
71
                        array('User', 'type', 'type' => 'string'),
 
72
                        array('Db', 'type', 'type' => 'string'),
 
73
                        array('Privileges', 'type', 'type' => 'string'),
74
74
                );
75
75
        }
76
76
 
77
77
        /**
78
 
         * @see         CActiveRecord::relations()
79
 
         */
80
 
        public function relations()
81
 
        {
82
 
                return array(
83
 
                );
84
 
    }
85
 
 
86
 
        /**
87
 
         * @return array customized attribute labels (name=>label)
 
78
         * @see         CActiveRecord::attributeLabels()
88
79
         */
89
80
        public function attributeLabels()
90
81
        {