Index: branches/5.2.x/core/units/filters/item_filter_eh.php =================================================================== diff -u -N -r14979 -r14989 --- branches/5.2.x/core/units/filters/item_filter_eh.php (.../item_filter_eh.php) (revision 14979) +++ branches/5.2.x/core/units/filters/item_filter_eh.php (.../item_filter_eh.php) (revision 14989) @@ -19,8 +19,11 @@ /** * Allows to override standard permission mapping * + * @return void + * @access protected + * @see kEventHandler::$permMapping */ - function mapPermissions() + protected function mapPermissions() { parent::mapPermissions(); @@ -39,20 +42,20 @@ * @access protected * @see kDBEventHandler::OnListBuild() */ - protected function SetCustomQuery(&$event) + protected function SetCustomQuery(kEvent &$event) { parent::SetCustomQuery($event); if ( !$this->Application->isAdmin ) { $object =& $event->getObject(); /* @var $object kDBList */ - $prefix_info = $this->Application->processPrefix( $event->getEventParam('prefix') ); + $prefix_info = $this->Application->processPrefix($event->getEventParam('prefix')); $object->addFilter('prefix_filter', '%1$s.ItemPrefix = ' . $this->Conn->qstr($prefix_info['prefix'])); $object->addFilter('status_filter', '%1$s.Enabled = 1'); - if ($event->Special == 'used') { + if ( $event->Special == 'used' ) { $filters = array_keys($this->Application->GetVar('filters', Array ())); if ( $filters ) { @@ -120,7 +123,7 @@ * @return void * @access protected */ - protected function LoadItem(&$event) + protected function LoadItem(kEvent &$event) { static $cache = null;