@@ -107,6 +107,9 @@ discard block |
||
| 107 | 107 | self::set_is_sending( null ); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | + /** |
|
| 111 | + * @param boolean|null $is_importing |
|
| 112 | + */ |
|
| 110 | 113 | static function set_importing( $is_importing ) { |
| 111 | 114 | // set to NULL to revert to WP_IMPORTING, the standard behaviour |
| 112 | 115 | self::$is_importing = $is_importing; |
@@ -137,6 +140,9 @@ discard block |
||
| 137 | 140 | return (bool) self::$is_syncing; |
| 138 | 141 | } |
| 139 | 142 | |
| 143 | + /** |
|
| 144 | + * @param boolean|null $is_syncing |
|
| 145 | + */ |
|
| 140 | 146 | static function set_is_syncing( $is_syncing ) { |
| 141 | 147 | self::$is_syncing = $is_syncing; |
| 142 | 148 | } |
@@ -145,6 +151,9 @@ discard block |
||
| 145 | 151 | return (bool) self::$is_sending; |
| 146 | 152 | } |
| 147 | 153 | |
| 154 | + /** |
|
| 155 | + * @param boolean|null $is_sending |
|
| 156 | + */ |
|
| 148 | 157 | static function set_is_sending( $is_sending ) { |
| 149 | 158 | self::$is_sending = $is_sending; |
| 150 | 159 | } |
@@ -420,6 +420,10 @@ discard block |
||
| 420 | 420 | } |
| 421 | 421 | |
| 422 | 422 | // functions |
| 423 | + |
|
| 424 | + /** |
|
| 425 | + * @param string $name |
|
| 426 | + */ |
|
| 423 | 427 | public function get_callable( $name ) { |
| 424 | 428 | $value = get_option( 'jetpack_' . $name ); |
| 425 | 429 | |
@@ -688,6 +692,9 @@ discard block |
||
| 688 | 692 | return $histogram; |
| 689 | 693 | } |
| 690 | 694 | |
| 695 | + /** |
|
| 696 | + * @param string|null $id_column |
|
| 697 | + */ |
|
| 691 | 698 | private function table_checksum( $table, $columns, $id_column, $where_sql = '1=1', $min_id = null, $max_id = null, $strip_non_ascii = true ) { |
| 692 | 699 | global $wpdb; |
| 693 | 700 | |
@@ -725,6 +732,9 @@ discard block |
||
| 725 | 732 | |
| 726 | 733 | } |
| 727 | 734 | |
| 735 | + /** |
|
| 736 | + * @param string $where_sql |
|
| 737 | + */ |
|
| 728 | 738 | private function meta_count( $table, $where_sql, $min_id, $max_id ) { |
| 729 | 739 | global $wpdb; |
| 730 | 740 | |