Bug #25080 ยป 17644.diff
typo3/sysext/tstemplate/ts/index.php (working copy) | ||
---|---|---|
// OTHER FUNCTIONS:
|
||
// ***************************
|
||
/**
|
||
* Counts the records in the system cache_* tables and returns these values.
|
||
*
|
||
* @param boolean $humanReadable: Returns human readable string instead of an array
|
||
* @return mixed The number of records in cache_* tables as array or string
|
||
* @deprecated since TYPO3 4.2.0, will be removed in TYPO3 4.6
|
||
*/
|
||
function getCountCacheTables($humanReadable) {
|
||
t3lib_div::logDeprecatedFunction();
|
||
$out = array();
|
||
$out['cache_pages'] = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('id', 'cache_pages');
|
||
$out['cache_pagesection'] = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('id', 'cache_pagesection');
|
||
$out['cache_hash'] = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('id', 'cache_hash');
|
||
if ($humanReadable) {
|
||
$newOut = array();
|
||
foreach ($out as $k => $v) {
|
||
$newOut[] = $k . ":" . $v;
|
||
}
|
||
$out = implode(', ', $newOut);
|
||
}
|
||
return $out;
|
||
}
|
||
function linkWrapTemplateTitle($title, $onlyKey = '') {
|
||
if ($onlyKey) {
|
||
$title = '<a href="index.php?id=' . htmlspecialchars($GLOBALS['SOBE']->id . '&e[' . $onlyKey . ']=1&SET[function]=tx_tstemplateinfo') . '">' . htmlspecialchars($title) . '</a>';
|