@@ -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 | |
@@ -279,6 +279,9 @@ discard block |
||
| 279 | 279 | $listener->get_full_sync_queue()->reset(); |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | + /** |
|
| 283 | + * @param integer $default |
|
| 284 | + */ |
|
| 282 | 285 | private function get_status_option( $name, $default = null ) { |
| 283 | 286 | $prefix = self::STATUS_OPTION_PREFIX; |
| 284 | 287 | |
@@ -313,6 +316,9 @@ discard block |
||
| 313 | 316 | return $this->read_option( 'jetpack_sync_full_config' ); |
| 314 | 317 | } |
| 315 | 318 | |
| 319 | + /** |
|
| 320 | + * @param string $name |
|
| 321 | + */ |
|
| 316 | 322 | private function write_option( $name, $value ) { |
| 317 | 323 | // we write our own option updating code to bypass filters/caching/etc on set_option/get_option |
| 318 | 324 | global $wpdb; |
@@ -340,6 +346,9 @@ discard block |
||
| 340 | 346 | return $updated_num; |
| 341 | 347 | } |
| 342 | 348 | |
| 349 | + /** |
|
| 350 | + * @param string $name |
|
| 351 | + */ |
|
| 343 | 352 | private function read_option( $name, $default = null ) { |
| 344 | 353 | global $wpdb; |
| 345 | 354 | $value = $wpdb->get_var( |