1 | <?php |
||
5 | class Jetpack_Sync_Settings { |
||
6 | const SETTINGS_OPTION_PREFIX = 'jetpack_sync_settings_'; |
||
7 | |||
8 | static $valid_settings = array( |
||
|
|||
9 | 'dequeue_max_bytes' => true, |
||
10 | 'upload_max_bytes' => true, |
||
11 | 'upload_max_rows' => true, |
||
12 | 'sync_wait_time' => true, |
||
13 | 'max_queue_size' => true |
||
14 | ); |
||
15 | |||
16 | static function get_settings() { |
||
23 | |||
24 | static function get_setting( $setting ) { |
||
32 | |||
33 | static function update_settings( $new_settings ) { |
||
39 | |||
40 | static function reset_data() { |
||
47 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.