Public Member Functions | |
tableName () | |
rules () | |
relations () | |
get ($name) | |
set ($name, $value) | |
unsetValue ($name) | |
attributeLabels () |
Static Public Member Functions | |
static | model ($className=__CLASS__) |
static | instance () |
static | reload () |
Protected Member Functions | |
beforeSave () | |
afterSave () | |
afterFind () |
Definition at line 10 of file Settings.php.
|
protected |
Performes some action before model is found
Definition at line 164 of file Settings.php.
|
protected |
Performes some action after model is saved
Definition at line 153 of file Settings.php.
Settings::attributeLabels | ( | ) |
Returns customized attribute labels (name=>label)
Definition at line 175 of file Settings.php.
|
protected |
Performes some action before model is saved
Definition at line 142 of file Settings.php.
Settings::get | ( | $name | ) |
Returns setting by given name
string | name settings parameter name |
Definition at line 103 of file Settings.php.
|
static |
Singleton method
Definition at line 71 of file Settings.php.
References model().
Referenced by ManageController\actionIndex(), SettingsModule\get(), reload(), SettingsModule\set(), SettingsTest\testGet(), SettingsTest\testSet(), and SettingsTest\testUnset().
|
static |
Returns the static model of the specified AR class.
string | $className | active record class name. |
Definition at line 21 of file Settings.php.
Referenced by instance().
Settings::relations | ( | ) |
Allows model relations definition
Definition at line 58 of file Settings.php.
|
static |
resets model instance
Definition at line 90 of file Settings.php.
References instance().
Settings::rules | ( | ) |
Sets some rules
Definition at line 41 of file Settings.php.
Settings::set | ( | $name, | |
$value | |||
) |
Settings setter
string | $name | name |
mixed | $value | value |
Definition at line 116 of file Settings.php.
Settings::tableName | ( | ) |
Returns model table name
Definition at line 31 of file Settings.php.
Settings::unsetValue | ( | $name | ) |
Deletes parameter by name
string | $name | name |
Definition at line 129 of file Settings.php.