| @@ 66-72 (lines=7) @@ | ||
| 63 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
| 64 | } |
|
| 65 | ||
| 66 | private function get_where_sql( $config ) { |
|
| 67 | if ( is_array( $config ) ) { |
|
| 68 | return 'comment_ID IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
| 69 | } |
|
| 70 | ||
| 71 | return null; |
|
| 72 | } |
|
| 73 | ||
| 74 | public function get_full_sync_actions() { |
|
| 75 | return array( 'jetpack_full_sync_comments' ); |
|
| @@ 175-182 (lines=8) @@ | ||
| 172 | return (int) ceil( $count / self::ARRAY_CHUNK_SIZE ); |
|
| 173 | } |
|
| 174 | ||
| 175 | private function get_where_sql( $config ) { |
|
| 176 | // config is a list of user IDs to sync |
|
| 177 | if ( is_array( $config ) ) { |
|
| 178 | return 'ID IN (' . implode( ',', array_map( 'intval', $config ) ) . ')'; |
|
| 179 | } |
|
| 180 | ||
| 181 | return null; |
|
| 182 | } |
|
| 183 | ||
| 184 | function get_full_sync_actions() { |
|
| 185 | return array( 'jetpack_full_sync_users' ); |
|