Index: branches/5.3.x/core/units/reviews/reviews_tag_processor.php =================================================================== diff -u -N -r15698 -r16519 --- branches/5.3.x/core/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 15698) +++ branches/5.3.x/core/units/reviews/reviews_tag_processor.php (.../reviews_tag_processor.php) (revision 16519) @@ -1,6 +1,6 @@ getObject($params); - /* @var $object kDBList */ $item_prefix = $this->Application->findModule('Name', $object->GetDBField('Module'), 'Var'); $item_config = $this->Application->getUnitConfig($item_prefix); @@ -47,8 +47,8 @@ function HelpfulLink($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ $parent_prefix = $this->getUnitConfig()->getParentPrefix(); @@ -68,13 +68,13 @@ { static $cache = null; + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ $parent_prefix = $this->getUnitConfig()->getParentPrefix(); + /** @var kCatDBItem $main_object */ $main_object = $this->Application->recallObject($parent_prefix); - /* @var $main_object kCatDBItem */ if ( !isset($cache) ) { $sql = 'SELECT COUNT(*), Rating @@ -122,8 +122,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) { @@ -141,11 +141,12 @@ { $parent_prefix = $this->getUnitConfig()->getParentPrefix(); + + /** @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')); @@ -154,8 +155,8 @@ function HasError($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ return method_exists($object, 'GetErrorMsg') ? parent::HasError($params) : 0; } @@ -168,8 +169,8 @@ */ function PageLink($params) { + /** @var kDBList $object */ $object = $this->getObject($params); - /* @var kDBList */ $parent_info = $object->getLinkedInfo(); @@ -228,15 +229,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 +}