Jetpack_Sync_Queue_Buffer

A buffer of items from the queue that can be checked out.

Defined (1)

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

/sync/class.jetpack-sync-queue.php  
  1. class Jetpack_Sync_Queue_Buffer { 
  2. public $id; 
  3. public $items_with_ids; 
  4.  
  5. public function __construct( $id, $items_with_ids ) { 
  6. $this->id = $id; 
  7. $this->items_with_ids = $items_with_ids; 
  8.  
  9. public function get_items() { 
  10. return array_combine( $this->get_item_ids(), $this->get_item_values() ); 
  11.  
  12. public function get_item_values() { 
  13. return Jetpack_Sync_Utils::get_item_values( $this->items_with_ids ); 
  14.  
  15. public function get_item_ids() { 
  16. return Jetpack_Sync_Utils::get_item_ids( $this->items_with_ids );