<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\QuickRun\Crawl; class ArrayQueue implements BaseQueue { private $data = array(); function prepend($pQSF_, $uxJUJ = array(), $StE5h = null) { array_unshift($this->data, array('id' => $StE5h, 'handler' => $pQSF_, 'param' => $uxJUJ)); } function append($pQSF_, $uxJUJ = array(), $StE5h = null) { array_push($this->data, array('id' => $StE5h, 'handler' => $pQSF_, 'param' => $uxJUJ)); } function exists($StE5h) { foreach ($this->data as $FSL7c) { if ($FSL7c['id'] == $StE5h) { return true; } } return false; } function size() { return count($this->data); } function poll() { return array_shift($this->data); } }