Index: branches/1.2.x/units/sections/reviews/e_review_eh.php =================================================================== diff -u -N -r14562 -r14622 --- branches/1.2.x/units/sections/reviews/e_review_eh.php (.../e_review_eh.php) (revision 14562) +++ branches/1.2.x/units/sections/reviews/e_review_eh.php (.../e_review_eh.php) (revision 14622) @@ -26,25 +26,28 @@ // $this->Application->setUnitOption($event->Prefix, 'CalculatedFields', $calculated_fields); } - /** - * Before new item created + * Prefills all fields on front-end * * @param kEvent $event + * @return void + * @access protected */ - function OnBeforeItemCreate(&$event) + protected function OnBeforeItemCreate(&$event) { parent::OnBeforeItemCreate($event); } /** - * Before existing item updated + * Sets correct rating value * * @param kEvent $event + * @return void + * @access protected */ - function OnBeforeItemUpdate(&$event) + protected function OnBeforeItemUpdate(&$event) { parent::OnBeforeItemUpdate($event); @@ -77,11 +80,13 @@ /** - * After new item created + * Updates item review counter * * @param kEvent $event + * @return void + * @access protected */ - function OnAfterItemCreate(&$event) + protected function OnAfterItemCreate(&$event) { parent::OnAfterItemCreate($event); @@ -113,11 +118,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);