Index: branches/1.2.x/units/sections/categories/e_category_eh.php =================================================================== diff -u -N -r14847 -r14983 --- branches/1.2.x/units/sections/categories/e_category_eh.php (.../e_category_eh.php) (revision 14847) +++ branches/1.2.x/units/sections/categories/e_category_eh.php (.../e_category_eh.php) (revision 14983) @@ -11,16 +11,16 @@ /** * Allows to override standard permission mapping * + * @return void + * @access protected + * @see kEventHandler::$permMapping */ - function mapPermissions() + protected function mapPermissions() { parent::mapPermissions(); $permissions = Array ( - # admin 'OnCustomEvent1' => Array ('self' => true), - - # front 'OnCustomEvent2' => Array ('self' => true), ); @@ -34,7 +34,7 @@ * @return bool * @access public */ - public function CheckPermission(&$event) + public function CheckPermission(kEvent &$event) { $skip_permissions_check_events = Array ( 'OnAnotherCustomEvent', @@ -77,20 +77,20 @@ * @access protected * @see kDBEventHandler::OnListBuild() */ - protected function SetCustomQuery(&$event) + protected function SetCustomQuery(kEvent &$event) { parent::SetCustomQuery($event); $object =& $event->getObject(); /* @var $object kDBList */ # identifying event based on special and setting filter - if ($event->Special == 'custom-special') { + if ( $event->Special == 'custom-special' ) { // $object->addFilter('primary_filter', '%1$s.Status = ' . STATUS_DISABLED); } # identifying event based not admin condition and setting filter - if (!$this->Application->isAdminUser) { + if ( !$this->Application->isAdminUser ) { // $object->addFilter('status_filter', '%1$s.Status = ' . STATUS_ACTIVE); } }