Index: branches/5.2.x/core/units/reviews/reviews_tag_processor.php =================================================================== diff -u -N -r15152 -r16513 --- branches/5.2.x/core/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 15152) +++ branches/5.2.x/core/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 16513) @@ -1,6 +1,6 @@ getObject($params); - /* @var $object kDBList */ $item_prefix = $this->Application->findModule('Name', $object->GetDBField('Module'), 'Var'); $edit_template = $this->Application->getUnitOption($item_prefix, 'AdminTemplatePath') . '/' . $this->Application->getUnitOption($item_prefix, 'AdminTemplatePrefix') . 'edit'; @@ -45,8 +45,8 @@ function HelpfulLink($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix'); $params['events[' . $parent_prefix . ']'] = 'OnReviewHelpful'; @@ -65,13 +65,13 @@ { static $cache = null; + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix'); + /** @var kCatDBItem $main_object */ $main_object = $this->Application->recallObject($parent_prefix); - /* @var $main_object kCatDBItem */ if ( !isset($cache) ) { $sql = 'SELECT COUNT(*), Rating @@ -119,8 +119,8 @@ { $field = $this->SelectParam($params, 'name,field'); + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ if ($field == 'ReviewText') { if ($object->GetDBField('TextFormat') == 1) { @@ -137,11 +137,12 @@ function AlreadyReviewed($params) { $parent_prefix = $this->Application->getUnitOption($this->Prefix, 'ParentPrefix'); + + /** @var kCatDBItem $main_object */ $main_object = $this->Application->recallObject($parent_prefix); - /* @var $main_object kCatDBItem */ + /** @var SpamHelper $spam_helper */ $spam_helper = $this->Application->recallObject('SpamHelper'); - /* @var $spam_helper SpamHelper */ $spam_helper->InitHelper($main_object->GetDBField('ResourceId'), 'Review', 0, $main_object->GetCol('ResourceId')); @@ -150,8 +151,8 @@ function HasError($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ return method_exists($object, 'GetErrorMsg') ? parent::HasError($params) : 0; } @@ -164,8 +165,8 @@ */ function PageLink($params) { + /** @var kDBList $object */ $object = $this->getObject($params); - /* @var kDBList */ $parent_info = $object->getLinkedInfo(); @@ -224,15 +225,15 @@ */ function VotesIndicator($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ + /** @var RatingHelper $rating_helper */ $rating_helper = $this->Application->recallObject('RatingHelper'); - /* @var $rating_helper RatingHelper */ $rating = isset($params['rating']) ? $params['rating'] : $object->GetDBField('Rating'); $small_style = array_key_exists('small_style', $params) ? $params['small_style'] : false; return $rating_helper->ratingBarSimple($rating, '', null, $small_style); } -} \ No newline at end of file +}