1 | <?php |
||
19 | class AdminPageFramework_Property_network_admin_page extends AdminPageFramework_Property_admin_page { |
||
20 | |||
21 | /** |
||
22 | * Defines the property type. |
||
23 | * |
||
24 | * @since 3.1.0 |
||
25 | * @internal |
||
26 | */ |
||
27 | public $_sPropertyType = 'network_admin_page'; |
||
28 | |||
29 | /** |
||
30 | * Defines the fields type. |
||
31 | * |
||
32 | * @since 3.1.0 |
||
33 | */ |
||
34 | public $sStructureType = 'network_admin_page'; |
||
35 | |||
36 | /** |
||
37 | * Indicates the action hook to display setting notices. |
||
38 | * @since 3.7.9 |
||
39 | */ |
||
40 | public $sSettingNoticeActionHook = 'network_admin_notices'; |
||
41 | |||
42 | /** |
||
43 | * Returns the option array. |
||
44 | * |
||
45 | * @since 3.1.0 |
||
46 | * @internal |
||
47 | */ |
||
48 | protected function _getOptions() { |
||
62 | |||
63 | /** |
||
64 | * Utility methods |
||
65 | */ |
||
66 | /** |
||
67 | * Saves the options into the database. |
||
68 | * |
||
69 | * @since 3.1.0 |
||
70 | * @since 3.1.1 Made it return a boolean value. |
||
71 | * @return boolean True if saved; otherwise, false. |
||
72 | */ |
||
73 | public function updateOption( $aOptions=null ) { |
||
86 | |||
87 | } |
||
88 |
Instead of super-globals, we recommend to explicitly inject the dependencies of your class. This makes your code less dependent on global state and it becomes generally more testable: