Feature #23533 » tsconfig_for_page_v2.patch
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.
|
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
|
t3lib/matchcondition/class.t3lib_matchcondition_frontend.php 2010-09-12 20:00:26.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_pageSelect::getPage($pageId);
|
||
return $page;
|
||
}
|
||
/**
|
||
* Determines the rootline for the current page.
|
||
*
|
||
* @return array The rootline for the current page.
|