Project

General

Profile

Feature #23533 » tsconfig_for_page.patch

Administrator Admin, 2010-09-13 17:07

View differences:

t3lib/matchcondition/class.t3lib_matchcondition_abstract.php 2010-09-12 20:22:12.000000000 +0200
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.
......
abstract protected function log($message);
}
?>
?>
t3lib/matchcondition/class.t3lib_matchcondition_backend.php 2010-09-12 19:56:50.000000000 +0200
}
/**
* 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
......
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/matchcondition/class.t3lib_matchcondition_backend.php']);
}
?>
?>
(1-1/3)