Index: branches/5.2.x/units/orders/orders_event_handler.php =================================================================== diff -u -N -r15134 -r15141 --- branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 15134) +++ branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 15141) @@ -1,6 +1,6 @@ Application->RecallVar($event->getPrefixSpecial(true) . '_id'); - $order_dummy =& $this->Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true)); + $order_dummy = $this->Application->recallObject($event->Prefix . '.-item', null, Array ('skip_autoload' => true)); /* @var $order_dummy OrdersItem */ foreach ($items_info as $id => $field_values) { @@ -204,13 +204,13 @@ $billing_address_id = $this->Application->GetVar('billing_address_id'); if ($shipping_address_id || $billing_address_id) { - $cs_helper =& $this->Application->recallObject('CountryStatesHelper'); + $cs_helper = $this->Application->recallObject('CountryStatesHelper'); /* @var $cs_helper kCountryStatesHelper */ - $address =& $this->Application->recallObject('addr.-item','addr', Array('skip_autoload' => true)); + $address = $this->Application->recallObject('addr.-item','addr', Array('skip_autoload' => true)); /* @var $address AddressesItem */ - $addr_list =& $this->Application->recallObject('addr', 'addr_List', Array('per_page'=>-1, 'skip_counting'=>true) ); + $addr_list = $this->Application->recallObject('addr', 'addr_List', Array('per_page'=>-1, 'skip_counting'=>true) ); /* @var $addr_list AddressesList */ $addr_list->Query(); @@ -303,7 +303,7 @@ */ function updateUserID($order_id, $event) { - $user =& $this->Application->recallObject('u.current'); + $user = $this->Application->recallObject('u.current'); /* @var $user UsersItem */ $affiliate_id = $this->isAffiliate( $user->GetID() ); @@ -331,7 +331,7 @@ function isAffiliate($user_id) { - $affiliate_user =& $this->Application->recallObject('affil.-item', null, Array('skip_autoload' => true) ); + $affiliate_user = $this->Application->recallObject('affil.-item', null, Array('skip_autoload' => true) ); /* @var $affiliate_user kDBItem */ $affiliate_user->Load($user_id, 'PortalUserId'); @@ -350,7 +350,7 @@ $gw_data = $order->getGatewayData(); $this->Application->registerClass( $gw_data['ClassName'], GW_CLASS_PATH.'/'.$gw_data['ClassFile'] ); - $gateway_object =& $this->Application->recallObject( $gw_data['ClassName'] ); + $gateway_object = $this->Application->recallObject( $gw_data['ClassName'] ); /* @var $gateway_object kGWBase */ $payment_result = $gateway_object->DirectPayment($order->GetFieldValues(), $gw_data['gw_params']); @@ -382,23 +382,23 @@ function PrepareCoupons($event, &$order) { - $order_items =& $this->Application->recallObject('orditems.-inv','orditems_List',Array('skip_counting'=>true,'per_page'=>-1) ); + $order_items = $this->Application->recallObject('orditems.-inv','orditems_List',Array('skip_counting'=>true,'per_page'=>-1) ); /* @var $order_items kDBList */ $order_items->linkToParent($order->Special); $order_items->Query(); $order_items->GoFirst(); $assigned_coupons = array(); - $coup_handler =& $this->Application->recallObject('coup_EventHandler'); + $coup_handler = $this->Application->recallObject('coup_EventHandler'); foreach($order_items->Records as $product_item) { if ($product_item['ItemData']) { $item_data = unserialize($product_item['ItemData']); if (isset($item_data['AssignedCoupon']) && $item_data['AssignedCoupon']) { $coupon_id = $item_data['AssignedCoupon']; // clone coupon, get new coupon ID - $coupon =& $this->Application->recallObject('coup',null,array('skip_autload' => true)); + $coupon = $this->Application->recallObject('coup',null,array('skip_autload' => true)); /* @var $coupon kDBItem */ $coupon->Load($coupon_id); if (!$coupon->isLoaded()) continue; @@ -460,7 +460,7 @@ } // call CompleteOrder events for items in order BEFORE SplitOrder (because ApproveEvents are called there) - $order_items =& $this->Application->recallObject('orditems.-inv','orditems_List',Array('skip_counting'=>true,'per_page'=>-1) ); + $order_items = $this->Application->recallObject('orditems.-inv','orditems_List',Array('skip_counting'=>true,'per_page'=>-1) ); /* @var $order_items kDBList */ $order_items->linkToParent($order->Special); @@ -574,7 +574,7 @@ function OnContinueShopping($event) { - $order_helper =& $this->Application->recallObject('OrderHelper'); + $order_helper = $this->Application->recallObject('OrderHelper'); /* @var $order_helper OrderHelper */ $template = $this->Application->GetVar('continue_shopping_template'); @@ -776,12 +776,12 @@ $object =& $event->getObject(); /* @var $object kDBItem */ - $addr_list =& $this->Application->recallObject('addr', 'addr_List', Array ('per_page' => -1, 'skip_counting' => true)); + $addr_list = $this->Application->recallObject('addr', 'addr_List', Array ('per_page' => -1, 'skip_counting' => true)); /* @var $addr_list kDBList */ $addr_list->Query(); - $address_dummy =& $this->Application->recallObject('addr.-item', null, Array ('skip_autoload' => true)); + $address_dummy = $this->Application->recallObject('addr.-item', null, Array ('skip_autoload' => true)); /* @var $address_dummy AddressesItem */ $address_prefixes = Array ('Billing', 'Shipping'); @@ -871,7 +871,7 @@ // 4. remove "orditems" object of kDBItem class, since getOrderInfo uses kDBList object under same prefix $this->Application->removeObject('orditems'); - $order_helper =& $this->Application->recallObject('OrderHelper'); + $order_helper = $this->Application->recallObject('OrderHelper'); /* @var $order_helper OrderHelper */ $event->status = kEvent::erSTOP; @@ -927,7 +927,7 @@ $item_data = $default_item_data; - $product =& $this->Application->recallObject('p', null, Array('skip_autoload' => true)); + $product = $this->Application->recallObject('p', null, Array('skip_autoload' => true)); /* @var $product ProductsItem */ $product->Load($item_id); @@ -958,7 +958,7 @@ { $package_content_ids = $product->GetPackageContentIds(); - $product_package_item =& $this->Application->recallObject('p.-packageitem'); + $product_package_item = $this->Application->recallObject('p.-packageitem'); /* @var $product_package_item ProductsItem */ $package_item_data = array(); @@ -1112,7 +1112,7 @@ if (!$options) return; - $ord_item =& $this->Application->recallObject('orditems.-opt', null, Array ('skip_autoload' => true)); + $ord_item = $this->Application->recallObject('orditems.-opt', null, Array ('skip_autoload' => true)); /* @var $ord_item kDBItem */ $ord_item->Load($this->Application->GetVar('orditems_id')); @@ -1178,7 +1178,7 @@ $object =& $event->getObject(); /* @var $object OrdersItem */ - $coupon =& $this->Application->recallObject('coup', null, Array ('skip_autoload' => true)); + $coupon = $this->Application->recallObject('coup', null, Array ('skip_autoload' => true)); /* @var $coupon kDBItem */ $coupon->Load($code, 'Code'); @@ -1220,7 +1220,7 @@ $coupon->Update(); $this->Application->setUnitOption('ord', 'AutoLoad', true); - $order =& $this->Application->recallObject('ord'); + $order = $this->Application->recallObject('ord'); /* @var $order OrdersItem */ $order->SetDBField('CouponId', $coupon->GetDBField('CouponId')); @@ -1256,7 +1256,7 @@ */ function RemoveCoupon(&$object) { - $coupon =& $this->Application->recallObject('coup', null, Array('skip_autoload' => true)); + $coupon = $this->Application->recallObject('coup', null, Array('skip_autoload' => true)); /* @var $coupon kDBItem */ $coupon->Load( $object->GetDBField('CouponId') ); @@ -1426,7 +1426,7 @@ // get user if ( $this->Application->LoggedIn() ) { - $user =& $this->Application->recallObject('u.current'); + $user = $this->Application->recallObject('u.current'); /* @var $user UsersItem */ $user_id = $user->GetID(); @@ -1514,7 +1514,7 @@ $order =& $event->getObject(); /* @var $order OrdersItem */ - $cs_helper =& $this->Application->recallObject('CountryStatesHelper'); + $cs_helper = $this->Application->recallObject('CountryStatesHelper'); /* @var $cs_helper kCountryStatesHelper */ $items_info = $this->Application->GetVar($event->getPrefixSpecial(true)); @@ -1645,7 +1645,7 @@ function OnReserveItems($event) { - $order_items =& $this->Application->recallObject('orditems.-inv','orditems_List',Array('skip_counting'=>true,'per_page'=>-1) ); + $order_items = $this->Application->recallObject('orditems.-inv','orditems_List',Array('skip_counting'=>true,'per_page'=>-1) ); /* @var $order_items kDBList */ $order_items->linkToParent('-inv'); @@ -1658,15 +1658,15 @@ // query all combinations used in this order - $product_object =& $this->Application->recallObject('p', null, Array('skip_autoload' => true)); + $product_object = $this->Application->recallObject('p', null, Array('skip_autoload' => true)); /* @var $product_object kCatDBItem */ $product_object->SwitchToLive(); - $order_item =& $this->Application->recallObject('orditems.-item', null, Array('skip_autoload' => true)); + $order_item = $this->Application->recallObject('orditems.-item', null, Array('skip_autoload' => true)); /* @var $order_item kDBItem */ - $combination_item =& $this->Application->recallObject('poc.-item', null, Array('skip_autoload' => true)); + $combination_item = $this->Application->recallObject('poc.-item', null, Array('skip_autoload' => true)); /* @var $combination_item kDBItem */ $combinations = $this->queryCombinations($order_items); @@ -1871,9 +1871,9 @@ */ function approveOrder(&$order_items) { - $product_object =& $this->Application->recallObject('p', null, Array('skip_autoload' => true)); - $order_item =& $this->Application->recallObject('orditems.-item', null, Array('skip_autoload' => true)); - $combination_item =& $this->Application->recallObject('poc.-item', null, Array('skip_autoload' => true)); + $product_object = $this->Application->recallObject('p', null, Array('skip_autoload' => true)); + $order_item = $this->Application->recallObject('orditems.-item', null, Array('skip_autoload' => true)); + $combination_item = $this->Application->recallObject('poc.-item', null, Array('skip_autoload' => true)); $combinations = $this->queryCombinations($order_items); @@ -1916,15 +1916,15 @@ */ function restoreOrder(&$order_items) { - $product_object =& $this->Application->recallObject('p', null, Array('skip_autoload' => true)); + $product_object = $this->Application->recallObject('p', null, Array('skip_autoload' => true)); /* @var $product_object kCatDBItem */ $product_object->SwitchToLive(); - $order_item =& $this->Application->recallObject('orditems.-item', null, Array('skip_autoload' => true)); + $order_item = $this->Application->recallObject('orditems.-item', null, Array('skip_autoload' => true)); /* @var $order_item kDBItem */ - $combination_item =& $this->Application->recallObject('poc.-item', null, Array('skip_autoload' => true)); + $combination_item = $this->Application->recallObject('poc.-item', null, Array('skip_autoload' => true)); /* @var $combination_item kDBItem */ $combinations = $this->queryCombinations($order_items); @@ -1954,7 +1954,7 @@ $inv_object->SetDBField('QtyInStock', $inv_object->GetDBField('QtyInStock') + $rec['QuantityReserved']); $inv_object->Update(); - $product_h =& $this->Application->recallObject('p_EventHandler'); + $product_h = $this->Application->recallObject('p_EventHandler'); /* @var $product_h ProductsEventHandler */ if ($product_object->GetDBField('InventoryStatus') == 2) { @@ -1993,7 +1993,7 @@ } // process order products - $object =& $this->Application->recallObject($event->Prefix . '.-inv', null, Array ('skip_autoload' => true)); + $object = $this->Application->recallObject($event->Prefix . '.-inv', null, Array ('skip_autoload' => true)); /* @var $object kDBItem */ $ids = $this->StoreSelectedIDs($event); @@ -2026,14 +2026,14 @@ 'OnOrderProcess' => ORDER_STATUS_TOSHIP, ); - $order_items =& $this->Application->recallObject('orditems.-inv','orditems_List',Array('skip_counting'=>true,'per_page'=>-1) ); + $order_items = $this->Application->recallObject('orditems.-inv','orditems_List',Array('skip_counting'=>true,'per_page'=>-1) ); /* @var $order_items kDBList */ $order_items->linkToParent('-inv'); $order_items->Query(); $order_items->GoFirst(); - $object =& $this->Application->recallObject($event->Prefix.'.-inv'); + $object = $this->Application->recallObject($event->Prefix.'.-inv'); /* @var $object OrdersItem */ if ($object->GetDBField('OnHold')) { @@ -2073,7 +2073,7 @@ $gw_data = $object->getGatewayData(); $this->Application->registerClass( $gw_data['ClassName'], GW_CLASS_PATH.'/'.$gw_data['ClassFile'] ); - $gateway_object =& $this->Application->recallObject( $gw_data['ClassName'] ); + $gateway_object = $this->Application->recallObject( $gw_data['ClassName'] ); /* @var $gateway_object kGWBase */ $charge_result = $gateway_object->Charge($object->GetFieldValues(), $gw_data['gw_params']); @@ -2083,7 +2083,7 @@ $object->SetDBField('GWResult2', $gateway_object->getGWResponce() ); if ($charge_result) { - $product_object =& $this->Application->recallObject('p', null, Array('skip_autoload' => true)); + $product_object = $this->Application->recallObject('p', null, Array('skip_autoload' => true)); /* @var $product_object ProductsItem */ foreach ($order_items->Records as $product_item) { @@ -2138,7 +2138,7 @@ if ( $gw_data ) { $this->Application->registerClass( $gw_data['ClassName'], GW_CLASS_PATH . '/' . $gw_data['ClassFile'] ); - $gateway_object =& $this->Application->recallObject( $gw_data['ClassName'] ); + $gateway_object = $this->Application->recallObject( $gw_data['ClassName'] ); $gateway_object->OrderDeclined($object->GetFieldValues(), $gw_data['gw_params']); } @@ -2162,7 +2162,7 @@ $shipping_info = $object->GetDBField('ShippingInfo'); if ($shipping_info) { - $quote_engine_collector =& $this->Application->recallObject('ShippingQuoteCollector'); + $quote_engine_collector = $this->Application->recallObject('ShippingQuoteCollector'); /* @var $quote_engine_collector ShippingQuoteCollector */ $shipping_info = unserialize($shipping_info); @@ -2171,7 +2171,7 @@ // try to create usps order if (($object->GetDBField('ShippingType') == 0) && ($sqe_class_name !== false)) { - $shipping_quote_engine =& $this->Application->recallObject($sqe_class_name); + $shipping_quote_engine = $this->Application->recallObject($sqe_class_name); /* @var $shipping_quote_engine ShippingQuoteEngine */ $ret = $shipping_quote_engine->MakeOrder($object); @@ -2192,7 +2192,7 @@ $gw_data = $object->getGatewayData(); $this->Application->registerClass( $gw_data['ClassName'], GW_CLASS_PATH.'/'.$gw_data['ClassFile'] ); - $gateway_object =& $this->Application->recallObject( $gw_data['ClassName'] ); + $gateway_object = $this->Application->recallObject( $gw_data['ClassName'] ); $gateway_object->OrderShipped($object->GetFieldValues(), $gw_data['gw_params']); } @@ -2348,7 +2348,7 @@ $object->SetDBField('PaymentCVV2', $this->Application->RecallVar('CVV2Code')); - $cs_helper =& $this->Application->recallObject('CountryStatesHelper'); + $cs_helper = $this->Application->recallObject('CountryStatesHelper'); /* @var $cs_helper kCountryStatesHelper */ $cs_helper->PopulateStates($event, 'ShippingState', 'ShippingCountry'); @@ -2371,7 +2371,7 @@ { parent::OnBeforeItemCreate($event); - $cs_helper =& $this->Application->recallObject('CountryStatesHelper'); + $cs_helper = $this->Application->recallObject('CountryStatesHelper'); /* @var $cs_helper kCountryStatesHelper */ $cs_helper->PopulateStates($event, 'ShippingState', 'ShippingCountry'); @@ -2407,7 +2407,7 @@ } } - $cs_helper =& $this->Application->recallObject('CountryStatesHelper'); + $cs_helper = $this->Application->recallObject('CountryStatesHelper'); /* @var $cs_helper kCountryStatesHelper */ $cs_helper->PopulateStates($event, 'ShippingState', 'ShippingCountry'); @@ -2444,7 +2444,7 @@ // guess fields from "One Step Checkout" form if ( $object->GetDBField('PaymentAccount') ) { - $order_helper =& $this->Application->recallObject('OrderHelper'); + $order_helper = $this->Application->recallObject('OrderHelper'); /* @var $order_helper OrderHelper */ $object->SetDBField('PaymentCardType', $order_helper->getCreditCartType($object->GetDBField('PaymentAccount'))); @@ -2474,7 +2474,7 @@ $order =& $event->getObject(); /* @var $order OrdersItem */ - $order_helper =& $this->Application->recallObject('OrderHelper'); + $order_helper = $this->Application->recallObject('OrderHelper'); /* @var $order_helper OrderHelper */ $user_fields = $order_helper->getUserFields($order); @@ -2487,7 +2487,7 @@ $this->Application->HandleEvent(new kEvent('u.register:OnCreate')); } else { - $user =& $this->Application->recallObject('u.current'); + $user = $this->Application->recallObject('u.current'); /* @var $user UsersItem */ $user->SetFieldsFromHash($user_fields); @@ -2817,7 +2817,7 @@ $skip_types = Array (PRODUCT_TYPE_TANGIBLE, PRODUCT_TYPE_DOWNLOADABLE); foreach ($sub_orders as $sub_order_data) { - $sub_order =& $this->Application->recallObject('ord.-sub'.$next_sub_number, 'ord'); + $sub_order = $this->Application->recallObject('ord.-sub'.$next_sub_number, 'ord'); /* @var $sub_order OrdersItem */ if ($this->UseTempTables($event) && $next_sub_number == 0) { @@ -2993,7 +2993,7 @@ function OptionsSalt($options, $comb_only=false) { - $helper =& $this->Application->recallObject('kProductOptionsHelper'); + $helper = $this->Application->recallObject('kProductOptionsHelper'); return $helper->OptionsSalt($options, $comb_only); } @@ -3010,15 +3010,15 @@ } // Loading product to add - $product =& $this->Application->recallObject('p.toadd', null, Array('skip_autoload' => true)); + $product = $this->Application->recallObject('p.toadd', null, Array('skip_autoload' => true)); /* @var $product kDBItem */ $product->Load($item_id); - $object =& $this->Application->recallObject('orditems.-item', null, Array('skip_autoload' => true)); + $object = $this->Application->recallObject('orditems.-item', null, Array('skip_autoload' => true)); /* @var $object kDBItem */ - $order =& $this->Application->recallObject('ord'); + $order = $this->Application->recallObject('ord'); /* @var $order kDBItem */ if (!$order->isLoaded() && !$this->Application->isAdmin) { @@ -3041,7 +3041,7 @@ return; } - $manager =& $this->Application->recallObject('OrderManager'); + $manager = $this->Application->recallObject('OrderManager'); /* @var $manager OrderManager */ $manager->setOrder($order); @@ -3114,7 +3114,7 @@ return; } - $manager =& $this->Application->recallObject('OrderManager'); + $manager = $this->Application->recallObject('OrderManager'); /* @var $manager OrderManager */ $manager->setOrder($order); @@ -3164,7 +3164,7 @@ /* function GetShippingCost($user_country_id, $user_state_id, $user_zip, $weight, $items, $amount, $shipping_type) { $this->Application->recallObject('ShippingQuoteEngine'); - $shipping_h =& $this->Application->recallObject('CustomShippingQuoteEngine'); + $shipping_h = $this->Application->recallObject('CustomShippingQuoteEngine'); $query = $shipping_h->QueryShippingCost($user_country_id, $user_state_id, $user_zip, $weight, $items, $amount, $shipping_type); $cost = $this->Conn->GetRow($query); return $cost['TotalCost']; @@ -3243,7 +3243,7 @@ $template = $this->Application->GetVar('t'); $shipping_templates = Array ('in-commerce/checkout/shipping', 'in-commerce/orders/orders_edit_shipping'); - $quote_engine_collector =& $this->Application->recallObject('ShippingQuoteCollector'); + $quote_engine_collector = $this->Application->recallObject('ShippingQuoteCollector'); /* @var $quote_engine_collector ShippingQuoteCollector */ foreach ($shipping_ids as $package => $id) { @@ -3252,7 +3252,7 @@ $sqe_class_name = $quote_engine_collector->GetClassByType($shipping_types, $package); if (($object->GetDBField('ShippingType') == 0) && ($sqe_class_name !== false) && in_array($template, $shipping_templates)) { - $shipping_quote_engine =& $this->Application->recallObject($sqe_class_name); + $shipping_quote_engine = $this->Application->recallObject($sqe_class_name); /* @var $shipping_quote_engine ShippingQuoteEngine */ // USPS related part @@ -3287,8 +3287,8 @@ /*function shipOrder(&$order_items) { - $product_object =& $this->Application->recallObject('p', null, Array('skip_autoload' => true)); - $order_item =& $this->Application->recallObject('orditems.-item'); + $product_object = $this->Application->recallObject('p', null, Array('skip_autoload' => true)); + $order_item = $this->Application->recallObject('orditems.-item'); while( !$order_items->EOL() ) { @@ -3342,7 +3342,7 @@ { $object =& $event->getObject(); - $coupon =& $this->Application->recallObject('coup', null, Array('skip_autoload' => true)); + $coupon = $this->Application->recallObject('coup', null, Array('skip_autoload' => true)); if(!$coupon->Load( $object->GetDBField('CouponId'), 'CouponId' )) { return false; @@ -3400,7 +3400,7 @@ $prefix_special = $event->Prefix.'.'.$this->getSpecialByType($order_status); - $orders_list =& $this->Application->recallObject($prefix_special, $event->Prefix.'_List', Array('per_page'=>-1) ); + $orders_list = $this->Application->recallObject($prefix_special, $event->Prefix.'_List', Array('per_page'=>-1) ); /* @var $orders_list kDBList */ $orders_list->Query(); @@ -3502,7 +3502,7 @@ } // process only valid orders - $temp_handler =& $this->Application->recallObject($event->Prefix.'_TempHandler', 'kTempTablesHandler'); + $temp_handler = $this->Application->recallObject($event->Prefix.'_TempHandler', 'kTempTablesHandler'); $cloned_order_ids = $temp_handler->CloneItems($event->Prefix, 'recurring', $order_ids); $order =& $this->Application->recallObject($event->Prefix.'.recurring', null, Array('skip_autoload' => true)); foreach ($cloned_order_ids as $order_id) { @@ -3558,7 +3558,7 @@ $this->Application->InitParser(); $o = $this->Application->ParseBlock(array('name'=>'in-commerce/orders/orders_pdf')); - $file_helper =& $this->Application->recallObject('FileHelper'); + $file_helper = $this->Application->recallObject('FileHelper'); /* @var $file_helper FileHelper */ $file_helper->CheckFolder(EXPORT_PATH); @@ -3585,7 +3585,7 @@ @unlink($pdfFile); - $pdf_helper =& $this->Application->recallObject('kPDFHelper'); + $pdf_helper = $this->Application->recallObject('kPDFHelper'); $pdf_helper->FileToFile($htmlFile, $pdfFile); return ; @@ -3656,7 +3656,7 @@ $fields['Number']['format'] = str_replace('%06d', '%0'.$order_number.'d', $fields['Number']['format']); $fields['SubNumber']['format'] = str_replace('%03d', '%0'.$order_sub_number.'d', $fields['SubNumber']['format']); - $site_helper =& $this->Application->recallObject('SiteHelper'); + $site_helper = $this->Application->recallObject('SiteHelper'); /* @var $site_helper SiteHelper */ $fields['BillingCountry']['default'] = $site_helper->getDefaultCountry('Billing'); @@ -3705,7 +3705,7 @@ $options = $event->getEventParam('options'); - $items_list =& $this->Application->recallObject($event->Prefix . '.' . $this->Application->RecallVar('export_oroginal_special'), $event->Prefix . '_List'); + $items_list = $this->Application->recallObject($event->Prefix . '.' . $this->Application->RecallVar('export_oroginal_special'), $event->Prefix . '_List'); /* @var $items_list kDBList */ $items_list->SetPerPage(-1); @@ -3719,7 +3719,7 @@ $event->setEventParam('options', $options); - $object =& $this->Application->recallObject($event->Prefix . '.export'); + $object = $this->Application->recallObject($event->Prefix . '.export'); /* @var $object kDBItem */ $object->SetField('Number', 999999); @@ -3834,7 +3834,7 @@ $object =& $event->getObject(); /* @var $object OrdersItem */ - $gift_certificate =& $this->Application->recallObject('gc', null, Array ('skip_autoload' => true)); + $gift_certificate = $this->Application->recallObject('gc', null, Array ('skip_autoload' => true)); /* @var $gift_certificate kDBItem */ $gift_certificate->Load($code, 'Code'); @@ -3976,7 +3976,7 @@ */ function OnUpdateAjax($event) { - $ajax_form_helper =& $this->Application->recallObject('AjaxFormHelper'); + $ajax_form_helper = $this->Application->recallObject('AjaxFormHelper'); /* @var $ajax_form_helper AjaxFormHelper */ $ajax_form_helper->transitEvent($event, 'OnUpdate');