/** * Include target URL * * @param string $targetUrl * @param string $queueUrl * * @return string */ private function includeTargetUrl($targetUrl, $queueUrl) { $queueUrl = preg_replace("/(&?t=[^&]*&?)/i", "", $queueUrl); if ($targetUrl == null) { $targetUrl = $this->defaultIncludeTargetUrl; } if (is_bool($targetUrl) && $targetUrl == true) { $identifier = new Identifier(); $targetUrl = $identifier->currentUrl(); } if (is_bool($targetUrl) && $targetUrl == false) { return $queueUrl; } if (!strpos($queueUrl, '?')) { return $queueUrl . '?t=' . urlencode($targetUrl); } return $queueUrl . '&t=' . urlencode($targetUrl); }
/** * Get URL * * @return string */ public function getUrl() { $identifier = new Identifier(); return $identifier->currentUrl(); }