Index: branches/5.2.x/units/helpers/order_helper.php =================================================================== diff -u -N -r16464 -r16516 --- branches/5.2.x/units/helpers/order_helper.php (.../order_helper.php) (revision 16464) +++ branches/5.2.x/units/helpers/order_helper.php (.../order_helper.php) (revision 16516) @@ -29,8 +29,8 @@ 'errors' => $errors ? unserialize($errors) : Array (), ); + /** @var kDBList $items */ $items = $this->Application->recallObject('orditems', 'orditems_List', Array ('per_page' => -1)); - /* @var $items kDBList */ $items->Query(); $items->GoFirst(); @@ -41,8 +41,8 @@ return $ret; } + /** @var kCatDBItem $product */ $product = $this->Application->recallObject('p', null, Array ('skip_autoload' => true)); - /* @var $product kCatDBItem */ $sql = $product->GetSelectSQL() . ' WHERE ' . $product->TableName . '.' . $product->IDField . ' IN (' . implode(',', $items->GetCol('ProductId')) . ')'; @@ -71,8 +71,8 @@ $row_index = $items->GetDBField('ProductId') . ':' . $items->GetDBField('OptionsSalt') . ':' . $items->GetDBField('BackOrderFlag'); + /** @var ImageHelper $image_helper */ $image_helper = $this->Application->recallObject('ImageHelper'); - /* @var $image_helper ImageHelper */ // TODO: find a way to specify thumbnail size & default image @@ -109,8 +109,8 @@ function convertCurrency($amount, $currency) { + /** @var CurrencyRates $converter */ $converter = $this->Application->recallObject('CurrencyRates'); - /* @var $converter CurrencyRates */ // convert primary currency to selected (if they are the same, converter will just return) return (float)$converter->Convert($amount, 'PRIMARY', $this->getISO($currency));