Index: branches/5.2.x/units/taxesdestinations/taxes_dst_event_handler.php =================================================================== diff -u -N -r16015 -r16516 --- branches/5.2.x/units/taxesdestinations/taxes_dst_event_handler.php (.../taxes_dst_event_handler.php) (revision 16015) +++ branches/5.2.x/units/taxesdestinations/taxes_dst_event_handler.php (.../taxes_dst_event_handler.php) (revision 16516) @@ -1,6 +1,6 @@ getObject(Array ('skip_autoload' => true)); - /* @var $object kDBItem */ $items_info = $this->Application->GetVar($event->getPrefixSpecial(true)); + /** @var kDBItem $tax_object */ $tax_object = $this->Application->recallObject('tax'); - /* @var $tax_object kDBItem */ $std_dest_id = $this->Application->GetVar('StatesCountry'); if ( $items_info ) { + /** @var kDBItem $taxdest */ $taxdest = $this->Application->recallObject($event->getPrefixSpecial(true), null); - /* @var $taxdest kDBItem */ $parent_info =& $object->GetLinkedInfo(); @@ -77,8 +77,8 @@ */ protected function OnCreate(kEvent $event) { + /** @var kDBItem $object */ $object = $event->getObject(Array ('skip_autoload' => true)); - /* @var $object kDBItem */ $items_info = $this->Application->GetVar($event->getPrefixSpecial(true)); if ( !$items_info ) { @@ -116,17 +116,17 @@ { switch ($type) { case 'before': + /** @var kDBItem $object */ $object = $event->getObject(); - /* @var $object kDBItem */ $events = $this->Application->GetVar('events'); if ( $events['tax'] == 'OnUpdate' ) { $object->SetDBField('TaxZoneId', $this->Application->GetVar('tax_id')); } + /** @var kDBItem $tax_object */ $tax_object = $this->Application->recallObject('tax'); - /* @var $tax_object kDBItem */ if ( $tax_object->GetDBField('Type') == 3 ) { $tax_object->SetDBField('StdDestId', $this->Application->GetVar('StatesCountry')); @@ -142,11 +142,11 @@ */ function OnZoneUpdate($event) { + /** @var kDBItem $object */ $object = $event->getObject(); - /* @var $object kDBItem */ + /** @var kDBItem $zone_object */ $zone_object = $this->Application->recallObject('tax'); - /* @var $zone_object kDBItem */ $zone_id = (int)$this->Application->GetVar('tax_id'); $zone_type = $zone_object->GetDBField('Type');