Index: branches/1.2.x/units/sections/links/e_link_eh.php =================================================================== diff -u -N -r14562 -r14622 --- branches/1.2.x/units/sections/links/e_link_eh.php (.../e_link_eh.php) (revision 14562) +++ branches/1.2.x/units/sections/links/e_link_eh.php (.../e_link_eh.php) (revision 14622) @@ -28,11 +28,13 @@ } /** - * Permission exceptions + * Checks user permission to execute given $event * * @param kEvent $event + * @return bool + * @access public */ - function CheckPermission(&$event) + public function CheckPermission(&$event) { $skip_permissions_check_events = Array ( 'OnAnotherCustomEvent', @@ -66,11 +68,14 @@ } /** - * Sets custom query for the list + * Apply any custom changes to list's sql query * * @param kEvent $event + * @return void + * @access protected + * @see kDBEventHandler::OnListBuild() */ - function SetCustomQuery(&$event) + protected function SetCustomQuery(&$event) { parent::SetCustomQuery($event); @@ -89,23 +94,27 @@ } /** - * Before new item created + * Makes reciprocal check on link, when it is created * * @param kEvent $event + * @return void + * @access protected */ - function OnBeforeItemCreate(&$event) + protected function OnBeforeItemCreate(&$event) { parent::OnBeforeItemCreate($event); } /** - * Before existing item updated + * Makes reciprocal check on link, when it is updated * * @param kEvent $event + * @return void + * @access protected */ - function OnBeforeItemUpdate(&$event) + protected function OnBeforeItemUpdate(&$event) { parent::OnBeforeItemUpdate($event); @@ -138,11 +147,13 @@ /** - * After new item created + * Sets values for import process * * @param kEvent $event + * @return void + * @access protected */ - function OnAfterItemCreate(&$event) + protected function OnAfterItemCreate(&$event) { parent::OnAfterItemCreate($event); @@ -174,11 +185,14 @@ } /** - * After item loaded + * Occurs after loading item, 'id' parameter + * allows to get id of item that was loaded * * @param kEvent $event + * @return void + * @access protected */ - function OnAfterItemLoad(&$event) + protected function OnAfterItemLoad(&$event) { parent::OnAfterItemLoad($event);