VbzCart/docs/v1/class/vcCartData NameAddress: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | v1/class
Jump to navigation Jump to search
imported>Woozle
No edit summary
m (Woozle moved page VbzCart/VbzCart/v1/class/vcCartData NameAddress to VbzCart/docs/v1/class/vcCartData NameAddress without leaving a redirect: part 5/5)
 
(One intermediate revision by one other user not shown)
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 01:58, 25 February 2024

Template:Page/code/class

/*::::
  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();
    }
}