Index: branches/1.2.x/units/sections/products/e_product_eh.php =================================================================== diff -u -N -r14562 -r14622 --- branches/1.2.x/units/sections/products/e_product_eh.php (.../e_product_eh.php) (revision 14562) +++ branches/1.2.x/units/sections/products/e_product_eh.php (.../e_product_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', @@ -67,11 +69,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); @@ -90,23 +95,27 @@ } /** - * Before new item created + * Sets default processing data for subscriptions * * @param kEvent $event + * @return void + * @access protected */ - function OnBeforeItemCreate(&$event) + protected function OnBeforeItemCreate(&$event) { parent::OnBeforeItemCreate($event); } /** - * Before existing item updated + * Moves item to preferred category, updates item hits * * @param kEvent $event + * @return void + * @access protected */ - function OnBeforeItemUpdate(&$event) + protected function OnBeforeItemUpdate(&$event) { parent::OnBeforeItemUpdate($event); @@ -137,13 +146,14 @@ } - /** - * After new item created + * Set new price to ProductsPricing * * @param kEvent $event + * @return void + * @access protected */ - function OnAfterItemCreate(&$event) + protected function OnAfterItemCreate(&$event) { parent::OnAfterItemCreate($event); @@ -175,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);