Index: branches/5.2.x/units/order_items/order_items_tag_processor.php =================================================================== diff -u -N -r16206 -r16516 --- branches/5.2.x/units/order_items/order_items_tag_processor.php (.../order_items_tag_processor.php) (revision 16206) +++ branches/5.2.x/units/order_items/order_items_tag_processor.php (.../order_items_tag_processor.php) (revision 16516) @@ -1,6 +1,6 @@ Application->recallObject('ord'); - /* @var $order kDBList */ if ( $order->GetDBField('Status') != ORDER_STATUS_INCOMPLETE ) { $params['grid'] = $params['NotEditable']; @@ -32,24 +32,24 @@ function IsTangible($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ return $object->GetDBField('Type') == PRODUCT_TYPE_TANGIBLE; } function HasQty($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ return in_array($object->GetDBField('Type'), Array (PRODUCT_TYPE_TANGIBLE, 6)); } function HasDiscount($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ return (float)$object->GetDBField('ItemDiscount') ? 1 : 0; } @@ -63,16 +63,16 @@ function PrintOptions($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ $item_data = @unserialize($object->GetDBField('ItemData')); $render_as = $this->SelectParam($params, 'render_as'); $block_params['name'] = $render_as; + /** @var kProductOptionsHelper $opt_helper */ $opt_helper = $this->Application->recallObject('kProductOptionsHelper'); - /* @var $opt_helper kProductOptionsHelper */ $o = ''; $options = $item_data['Options']; @@ -99,8 +99,8 @@ $val = join(',', $val); }*/ + /** @var LanguagesItem $lang */ $lang = $this->Application->recallObject('lang.current'); - /* @var $lang LanguagesItem */ if ( $render_as ) { $block_params['option'] = $key; @@ -167,8 +167,8 @@ { $block_params['name'] = $params['render_as']; + /** @var Array $values */ $values = $this->Application->Parser->GetParam('value'); - /* @var $values Array */ $prices = $this->Application->Parser->GetParam('price'); $price_types = $this->Application->Parser->GetParam('price_type'); @@ -224,8 +224,8 @@ $block_params['name'] = $this->SelectParam($params, 'render_as,block'); $block_params['pass_params'] = 'true'; + /** @var kCatDBItem $product_object */ $product_object = $this->Application->recallObject('p', 'p', Array ('skip_autoload' => true)); - /* @var $product_object kCatDBItem */ $i = 0; $product_id = $product_object->GetID(); @@ -261,8 +261,8 @@ function DisplayOptionsPricing($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ if ( $object->GetDBField('OptionsSelectionMode') == 1 ) { return false; @@ -274,8 +274,9 @@ } $options = getArrayValue($item_data, 'Options'); + + /** @var kProductOptionsHelper $helper */ $helper = $this->Application->recallObject('kProductOptionsHelper'); - /* @var $helper kProductOptionsHelper */ $crc = $helper->OptionsSalt($options, true); @@ -288,19 +289,19 @@ function RowIndex($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ return $object->GetDBField('ProductId') . ':' . $object->GetDBField('OptionsSalt') . ':' . $object->GetDBField('BackOrderFlag'); } function FreePromoShippingAvailable($params) { + /** @var kDBItem $object */ $object = $this->getObject($params); - /* @var $object kDBItem */ + /** @var OrderHelper $order_helper */ $order_helper = $this->Application->recallObject('OrderHelper'); - /* @var $order_helper OrderHelper */ return $order_helper->eligibleForFreePromoShipping($object); }