Jetpack_JSON_API_Sync_Histogram_Endpoint

The WordPress Core Jetpack JSON API Sync Histogram Endpoint class.

Defined (1)

The class is defined in the following location(s).

/json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php  
  1. class Jetpack_JSON_API_Sync_Histogram_Endpoint extends Jetpack_JSON_API_Sync_Endpoint { 
  2. protected function result() { 
  3. $args = $this->query_args(); 
  4.  
  5. if ( isset( $args['columns'] ) ) { 
  6. $columns = array_map( 'trim', explode( ', ', $args['columns'] ) ); 
  7. } else { 
  8. $columns = null; // go with defaults 
  9.  
  10. require_once JETPACK__PLUGIN_DIR . 'sync/class.jetpack-sync-wp-replicastore.php'; 
  11. $store = new Jetpack_Sync_WP_Replicastore(); 
  12.  
  13. return $store->checksum_histogram( $args['object_type'], $args['buckets'], $args['start_id'], $args['end_id'], $columns, $args['strip_non_ascii'] );