Difference between revisions of "VbzCart/v1/class/vcCartData NameAddress"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(code update)
 
Line 12: Line 12:
 
class vcCartData_NameAddress extends vcCartDataFieldGroup {
 
class vcCartData_NameAddress extends vcCartDataFieldGroup {
 
     use vtCartData_NameAddress;
 
     use vtCartData_NameAddress;
 
    private $oZone;
 
 
    
 
    
     public function __construct(array $arBlob, vcShipCountry $oZone) {
+
     protected function GetShipZone() : vcShipCountry {
$oBlob = new fcBlobField();
+
return $this->GetFormObject()->GetShipZone();
$oBlob->SetArray($arBlob);
 
 
 
parent::__construct($oBlob);
 
$this->oZone = $oZone;
 
    }
 
    protected function ShipZone() {
 
return $this->oZone;
 
 
     }
 
     }
 
}
 
}
 
</source>
 
</source>

Latest revision as of 11:35, 17 April 2019

/*::::
  PURPOSE: Base class so overridden trait function can be called as parent::f()
*/
class vcCartData_NameAddress extends vcCartDataFieldGroup {
    use vtCartData_NameAddress;
  
    protected function GetShipZone() : vcShipCountry {
	return $this->GetFormObject()->GetShipZone();
    }
}