Project

General

Profile

Feature #23533 » 15696_v3.diff

Administrator Admin, 2010-10-16 19:48

View differences:

t3lib/matchcondition/class.t3lib_matchcondition_backend.php (Arbeitskopie)
}
/**
* Gets the properties for the current page.
*
* @return array The properties for the current page.
*/
protected function getPage() {
$pageId = (isset($this->pageId) ? $this->pageId : $this->determinePageId());
$page = t3lib_BEfunc::getRecord('pages', $pageId);
return $page;
}
/**
* Gets the page id by a record.
*
* @param string $table: Name of the table
t3lib/matchcondition/class.t3lib_matchcondition_frontend.php (Arbeitskopie)
}
/**
* Gets the properties for the current page.
*
* @return array The properties for the current page.
*/
protected function getPage() {
$pageId = (isset($this->pageId) ? $this->pageId : $this->determinePageId());
$page = t3lib_pageSelect::getPage($pageId);
return $page;
}
/**
* Determines the rootline for the current page.
*
* @return array The rootline for the current page.
t3lib/matchcondition/class.t3lib_matchcondition_abstract.php (Arbeitskopie)
if (t3lib_div::inList('browser,version,system,useragent', strtolower($key))) {
$browserInfo = $this->getBrowserInfo(t3lib_div::getIndpEnv('HTTP_USER_AGENT'));
}
$keyParts = explode('|', $key);
switch ($key) {
switch ($keyParts[0]) {
case 'browser':
$values = t3lib_div::trimExplode(',', $value, true);
// take all identified browsers into account, eg chrome deliver
......
}
}
break;
case 'page':
if(!empty($keyParts[1])) {
$page = $this->getPage();
$property = $keyParts[1];
if (!empty($page) && isset($page[$property])) {
if (strcmp($page[$property], $value) === 0) {
return true;
}
}
}
break;
case 'globalVar':
$values = t3lib_div::trimExplode(',', $value, true);
foreach ($values as $test) {
......
abstract protected function determinePageId();
/**
* Gets the properties for the current page.
*
* @return array The properties for the current page.
*/
abstract protected function getPage();
/**
* Determines the rootline for the current page.
*
* @return array The rootline for the current page.
(3-3/3)