/usr/share/php/Horde/Queue/Storage/Array.php is in php-horde-queue 1.1.3-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <?php
/**
* Stores queue tasks in the current request. No persistence.
*/
class Horde_Queue_Storage_Array extends Horde_Queue_Storage
{
protected $_tasks = array();
public function add(Horde_Queue_Task $task)
{
$this->_tasks[] = $task;
}
public function getMany($num = 50)
{
return array_splice($this->_tasks, 0, $num);
}
}
|