Index: branches/5.3.x/units/destinations/dst_event_handler.php =================================================================== diff -u -N -r16106 -r16522 --- branches/5.3.x/units/destinations/dst_event_handler.php (.../dst_event_handler.php) (revision 16106) +++ branches/5.3.x/units/destinations/dst_event_handler.php (.../dst_event_handler.php) (revision 16522) @@ -1,6 +1,6 @@ getObject(Array ('skip_autoload' => true)); - /* @var $object kDBItem */ // creates multiple db records from single request (OnCreate event only creates 1 record) $items_info = $this->Application->GetVar($event->getPrefixSpecial(true)); @@ -67,17 +67,17 @@ return; } + /** @var kDBItem $object */ $object = $event->getObject(); - /* @var $object kDBItem */ $events = $this->Application->GetVar('events'); if ( $events['z'] == 'OnUpdate' ) { $object->SetDBField('ShippingZoneId', $this->Application->GetVar('z_id')); } + /** @var kDBItem $zone_object */ $zone_object = $this->Application->recallObject('z'); - /* @var $zone_object kDBItem */ if ( $zone_object->GetDBField('Type') == 3 ) { $object->SetDBField('StdDestId', $this->Application->GetVar('ZIPCountry')); @@ -91,11 +91,11 @@ */ function OnZoneUpdate($event) { + /** @var kDBItem $object */ $object = $event->getObject(); - /* @var $object kDBItem */ + /** @var kDBItem $zone_object */ $zone_object = $this->Application->recallObject('z'); - /* @var $zone_object kDBItem */ $zone_id = (int)$zone_object->GetID(); $zone_type = $zone_object->GetDBField('Type');