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 | 'sync_wait_threshold' => true, |
||
14 | 'max_queue_size' => true, |
||
15 | 'max_queue_lag' => true, |
||
16 | ); |
||
17 | |||
18 | static $is_importing; |
||
19 | |||
20 | static function get_settings() { |
||
28 | |||
29 | // Fetches the setting. It saves it if the setting doesn't exist, so that it gets |
||
30 | // autoloaded on page load rather than re-queried every time. |
||
31 | static function get_setting( $setting ) { |
||
46 | |||
47 | static function update_settings( $new_settings ) { |
||
53 | |||
54 | static function reset_data() { |
||
62 | |||
63 | static function set_importing( $is_importing ) { |
||
67 | |||
68 | static function is_importing() { |
||
75 | } |
||
76 |
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.