Changeset View
Changeset View
Standalone View
Standalone View
core/units/statistics/statistics_tag_processor.php
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Get prefixes, that are allowed to have pending items (check module licenses too) | * Get prefixes, that are allowed to have pending items (check module licenses too) | ||||
* | * | ||||
* @return Array | * @return Array | ||||
*/ | */ | ||||
function getPendingPrefixes() | function getPendingPrefixes() | ||||
{ | { | ||||
$modules_helper = $this->Application->recallObject('ModulesHelper'); | $modules_helper = $this->Application->recallObject('kModulesHelper'); | ||||
/* @var $modules_helper kModulesHelper */ | /* @var $modules_helper kModulesHelper */ | ||||
$licensed_modules = array_map('strtolower', $modules_helper->_GetModules()); | $licensed_modules = array_map('strtolower', $modules_helper->_GetModules()); | ||||
$sql = 'SELECT LOWER(Module), Prefix | $sql = 'SELECT LOWER(Module), Prefix | ||||
FROM '.TABLE_PREFIX.'ItemTypes it | FROM '.TABLE_PREFIX.'ItemTypes it | ||||
LEFT JOIN '.TABLE_PREFIX.'Modules m ON m.Name = it.Module | LEFT JOIN '.TABLE_PREFIX.'Modules m ON m.Name = it.Module | ||||
WHERE (m.Loaded = 1) AND (LENGTH(it.ClassName) > 0)'; | WHERE (m.Loaded = 1) AND (LENGTH(it.ClassName) > 0)'; | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
if (($i+1) % $columns == 0) { | if (($i+1) % $columns == 0) { | ||||
$ret .= '</tr>'; | $ret .= '</tr>'; | ||||
} | } | ||||
} | } | ||||
return $ret; | return $ret; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |