Lines Matching refs:sourcePageId

263                 $sourcePageId = $row['SOURCE'];
267 $sourcePageId = $key;
283 ptln(' <input type="hidden" name="SourcePage" value="' . $sourcePageId . '" />');
288 …tpl_link(wl($sourcePageId), $this->truncateString($sourcePageId, 30), 'title="' . $sourcePageId . …
318 * @param string $sourcePageId
320 function deleteRedirection($sourcePageId) argument
328 unset($this->pageRedirections[strtolower($sourcePageId)]);
332 $res = $this->sqlite->query('delete from redirections where source = ?', $sourcePageId);
343 * @param string $sourcePageId
346 function isRedirectionPresent($sourcePageId) argument
348 $sourcePageId = strtolower($sourcePageId);
356 if (isset($this->pageRedirections[$sourcePageId])) {
376 function addRedirection($sourcePageId, $targetPageId) argument
378 $this->addRedirectionWithDate($sourcePageId, $targetPageId, $this->currentDate);
385 * @param string $sourcePageId
389 function addRedirectionWithDate($sourcePageId, $targetPageId, $creationDate) argument
393 $sourcePageId = strtolower($sourcePageId);
401 if (isset($this->pageRedirections[$sourcePageId])) {
402 … $this->throwRuntimeException('Redirection for page (' . $sourcePageId . 'already exist');
405 $this->pageRedirections[$sourcePageId]['TargetPage'] = $targetPageId;
406 $this->pageRedirections[$sourcePageId]['CreationDate'] = $creationDate;
410 $this->pageRedirections[$sourcePageId]['IsValidate'] = 'Y';
411 $this->pageRedirections[$sourcePageId]['CountOfRedirection'] = 0;
412 … $this->pageRedirections[$sourcePageId]['LastRedirectionDate'] = $this->lang['Never'];
413 $this->pageRedirections[$sourcePageId]['LastReferrer'] = 'Never';
417 $this->pageRedirections[$sourcePageId]['IsValidate'] = 'N';
418 $this->pageRedirections[$sourcePageId]['CountOfRedirection'] = 1;
419 $this->pageRedirections[$sourcePageId]['LastRedirectionDate'] = $creationDate;
421 … $this->pageRedirections[$sourcePageId]['LastReferrer'] = $_SERVER['HTTP_REFERER'];
423 … $this->pageRedirections[$sourcePageId]['LastReferrer'] = $this->lang['Direct Access'];
429 $this->pageRedirections[$sourcePageId]['TargetPageType'] = 'Internal Page';
431 $this->pageRedirections[$sourcePageId]['TargetPageType'] = 'Url';
443 'source' => $sourcePageId
447 $res = $this->sqlite->query($statement, $sourcePageId);
468 * @param string $sourcePageId
470 function validateRedirection($sourcePageId) argument
472 $sourcePageId = strtolower($sourcePageId);
480 $this->pageRedirections[$sourcePageId]['IsValidate'] = 'Y';
491 * @param string $sourcePageId
494 function getIsValidate($sourcePageId) argument
496 $sourcePageId = strtolower($sourcePageId);
504 if ($this->pageRedirections[$sourcePageId]['IsValidate'] == null) {
507 return $this->pageRedirections[$sourcePageId]['IsValidate'];
518 * @param string $sourcePageId
522 function getTargetPageType($sourcePageId) argument
530 $sourcePageId = strtolower($sourcePageId);
531 return $this->pageRedirections[$sourcePageId]['TargetPageType'];
543 * @param string $sourcePageId
547 function getRedirectionTarget($sourcePageId) argument
556 $sourcePageId = strtolower($sourcePageId);
557 return $this->pageRedirections[strtolower($sourcePageId)]['TargetPage'];
561 … $res = $this->sqlite->query("select target from redirections where source = ?", $sourcePageId);
576 * @param string $sourcePageId
580 function logRedirection($sourcePageId, $targetPageId, $type) argument
588 $sourcePageId = strtolower($sourcePageId);
589 $this->pageRedirections[$sourcePageId]['LastRedirectionDate'] = $this->currentDate;
590 $this->pageRedirections[$sourcePageId]['LastReferrer'] = $_SERVER['HTTP_REFERER'];
592 $this->pageRedirections[$sourcePageId]['CountOfRedirection'] += 1;
599 "SOURCE" => $sourcePageId,
848 $sourcePageId = $key;
854 $this->addRedirectionWithDate($sourcePageId, $targetPageId, $creationDate);