/** * @param array $r order data */ public function download_dequeue_item($r) { $q = Base_EpesiStoreCommon::get_download_queue(); $k = array_search($r, $q); if ($k !== false) { unset($q[$k]); Base_EpesiStoreCommon::set_download_queue($q); } }