VbzCart/v1/class/vcCartDataManager/GetBuyerObject
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
{{#set:in project=VbzCart}}{{#set:thing type=VbzCart/class method}}{{#set:class name=vcCartDataManager}}{{#set:function name=GetBuyerObject}}{{#set:version=v1}}
about
Purpose: returns vcCartData_Buyer, creating it if needed
called by
- $this->RenderShippingPage()
- $this->CaptureShippingPage(array $arStat)
- $this->RenderBillingPage()
- $this->CaptureBillingPage()
- $this->UpdateBlobs()
- vcrCart::ToOrder_Data(vcrOrder $rcOrder)
- vcrOrder::TemplateVars()
code
private $oBuyer = NULL;
// PUBLIC so the shopping cart object can access
public function GetBuyerObject() {
if (is_null($this->oBuyer)) {
$this->oBuyer = new vcCartData_Buyer($this->GetFormObject());
}
return $this->oBuyer;
}
