id = $id; $this->items_with_ids = $items_with_ids; } /** * Retrieve the sync items in the buffer, in an ID => value form. * * @access public * * @return array Sync items in the buffer. */ public function get_items() { return array_combine( $this->get_item_ids(), $this->get_item_values() ); } /** * Retrieve the values of the sync items in the buffer. * * @access public * * @return array Sync items values. */ public function get_item_values() { return Utils::get_item_values( $this->items_with_ids ); } /** * Retrieve the IDs of the sync items in the buffer. * * @access public * * @return array Sync items IDs. */ public function get_item_ids() { return Utils::get_item_ids( $this->items_with_ids ); } }