@@ -52,6 +52,9 @@ discard block |
||
52 | 52 | return (double) get_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, 0 ); |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param integer $time |
|
57 | + */ |
|
55 | 58 | public function set_next_sync_time( $time, $queue_name ) { |
56 | 59 | return update_option( self::NEXT_SYNC_TIME_OPTION_NAME . '_' . $queue_name, $time, true ); |
57 | 60 | } |
@@ -64,6 +67,9 @@ discard block |
||
64 | 67 | return $this->do_sync_and_set_delays( $this->sync_queue ); |
65 | 68 | } |
66 | 69 | |
70 | + /** |
|
71 | + * @param Jetpack_Sync_Queue $queue |
|
72 | + */ |
|
67 | 73 | public function do_sync_and_set_delays( $queue ) { |
68 | 74 | // don't sync if importing |
69 | 75 | if ( defined( 'WP_IMPORTING' ) && WP_IMPORTING ) { |
@@ -293,6 +299,10 @@ discard block |
||
293 | 299 | } |
294 | 300 | |
295 | 301 | // in seconds |
302 | + |
|
303 | + /** |
|
304 | + * @param double $seconds |
|
305 | + */ |
|
296 | 306 | function set_max_dequeue_time( $seconds ) { |
297 | 307 | $this->max_dequeue_time = $seconds; |
298 | 308 | } |
@@ -321,6 +321,9 @@ |
||
321 | 321 | return self::DEFAULT_SYNC_CRON_INTERVAL; |
322 | 322 | } |
323 | 323 | |
324 | + /** |
|
325 | + * @param string $hook |
|
326 | + */ |
|
324 | 327 | static function maybe_schedule_sync_cron( $schedule, $hook ) { |
325 | 328 | if ( ! $hook ) { |
326 | 329 | return; |
@@ -104,6 +104,9 @@ discard block |
||
104 | 104 | self::set_doing_cron( null ); |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param boolean|null $is_importing |
|
109 | + */ |
|
107 | 110 | static function set_importing( $is_importing ) { |
108 | 111 | // set to NULL to revert to WP_IMPORTING, the standard behaviour |
109 | 112 | self::$is_importing = $is_importing; |
@@ -134,6 +137,9 @@ discard block |
||
134 | 137 | return is_null( self::$is_syncing ) ? false : self::$is_syncing; |
135 | 138 | } |
136 | 139 | |
140 | + /** |
|
141 | + * @param boolean $is_syncing |
|
142 | + */ |
|
137 | 143 | static function set_is_syncing( $is_syncing ) { |
138 | 144 | self::$is_syncing = $is_syncing; |
139 | 145 | } |