AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.128   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/1534260/cwd/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/1534260/cwd/plugins/jetpack/jetpack_vendor/automattic/jetpack-sync/src/class-queue-buffer.php
<?php
/**
 * Sync queue buffer.
 *
 * @package automattic/jetpack-sync
 */

namespace Automattic\Jetpack\Sync;

/**
 * A buffer of items from the queue that can be checked out.
 */
class Queue_Buffer {
	/**
	 * Sync queue buffer ID.
	 *
	 * @access public
	 *
	 * @var int
	 */
	public $id;

	/**
	 * Sync items.
	 *
	 * @access public
	 *
	 * @var array
	 */
	public $items_with_ids;

	/**
	 * Constructor.
	 * Initializes the queue buffer.
	 *
	 * @access public
	 *
	 * @param int   $id             Sync queue buffer ID.
	 * @param array $items_with_ids Items for the buffer to work with.
	 */
	public function __construct( $id, $items_with_ids ) {
		$this->id             = $id;
		$this->items_with_ids = $items_with_ids;
	}

	/**
	 * Retrieve the sync items in the buffer, in an ID => value form.
	 *
	 * @access public
	 *
	 * @return bool|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 );
	}
}

Anon7 - 2022
AnonSec Team