1 | <?php |
||
12 | abstract class AddSettingMigration extends CDbMigration |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @return string the name of the new setting |
||
17 | */ |
||
18 | abstract public function getName(); |
||
19 | |||
20 | /** |
||
21 | * @return string the default value of the new setting |
||
22 | */ |
||
23 | abstract public function getDefaultValue(); |
||
24 | |||
25 | /** |
||
26 | * Adds the setting with its default value to the settings table. Nothing |
||
27 | * is done if the setting already exists. |
||
28 | * @return type |
||
29 | */ |
||
30 | public function up() |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Removes the setting |
||
48 | */ |
||
49 | public function down() |
||
53 | } |
||
54 | |||
55 | } |