Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/statistics/statistics_event_handler.php
Show All 22 Lines | |||||
* @return void | * @return void | ||||
* @access protected | * @access protected | ||||
* @see kDBEventHandler::OnListBuild() | * @see kDBEventHandler::OnListBuild() | ||||
*/ | */ | ||||
protected function SetCustomQuery(kEvent $event) | protected function SetCustomQuery(kEvent $event) | ||||
{ | { | ||||
parent::SetCustomQuery($event); | parent::SetCustomQuery($event); | ||||
/** @var kDBList $object */ | |||||
$object = $event->getObject(); | $object = $event->getObject(); | ||||
/* @var $object kDBList */ | |||||
if ( $event->Special == 'summary' ) { | if ( $event->Special == 'summary' ) { | ||||
$object->addFilter('summary_filter', '%1$s.AdminSummary = 1'); | $object->addFilter('summary_filter', '%1$s.AdminSummary = 1'); | ||||
} | } | ||||
$module_list = ''; | $module_list = ''; | ||||
foreach ($this->Application->ModuleInfo as $module_name => $module_info) { | foreach ($this->Application->ModuleInfo as $module_name => $module_info) { | ||||
$module_list .= $this->Conn->qstr($module_name) . ','; | $module_list .= $this->Conn->qstr($module_name) . ','; | ||||
} | } | ||||
$module_list = substr($module_list, 0, -1); | $module_list = substr($module_list, 0, -1); | ||||
$object->addFilter('status_filter', '%1$s.Module IN (' . $module_list . ')'); | $object->addFilter('status_filter', '%1$s.Module IN (' . $module_list . ')'); | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |