public __construct ( $streetAddress = null, $streetAddress2 = null, $cityName = null, $provinceCode = null, $provinceName = null, $postalCode = null, $countryCode = null ) |
/** * Constructor: initializes all values * * @param array $data */ public function __construct($data = array()) { parent::__construct(array_merge(array('id' => null, 'warehouseId' => null, 'streetAddress' => null, 'city' => null, 'state' => null, 'postalCode' => null, 'longitude' => null, 'latitude' => null, 'products' => array()), $data), \ArrayObject::ARRAY_AS_PROPS); if (!empty($data) && (empty($data['longitude']) || empty($data['latitude']))) { $this->geoCodeAddress(); } }
public function __construct() { parent::__construct(); if (isset($_SESSION['blockid'])) { $this->blockid = $_SESSION['blockid']; } }
/** * @param ArrayOfString $StreetLines * @param string $City * @param string $State * @param string $Zip * @param string $Country * @param int $Id * @param boolean $DefaultFlag * @param int $CompanyId * @param string $SiteName */ public function __construct($StreetLines = null, $City = null, $State = null, $Zip = null, $Country = null, $Id = null, $DefaultFlag = null, $CompanyId = null, $SiteName = null) { parent::__construct($StreetLines, $City, $State, $Zip, $Country); $this->Id = $Id; $this->DefaultFlag = $DefaultFlag; $this->CompanyId = $CompanyId; $this->SiteName = $SiteName; }
/** * Creates a array index address * * @param int $pos * @param parent $parent */ public function __construct($pos, parent $parent) { $this->pos = $pos; if (is_array($parent->reference) && array_key_exists($this->pos, $parent->reference)) { parent::__construct($parent->reference[$this->pos], $parent); } else { parent::__construct(self::$null, $parent, false); } }
/** * Creates a new "end of array" address * * @param parent $parent */ public function __construct(parent $parent) { parent::__construct(self::$null, $parent, false); }
public function __construct($root_zone, $contry_code) { parent::__construct($root_zone); $this->zone1 = parent::getParentZone()->get($contry_code); $this->zone1->getAttribute("Type")->set("Country"); }
public function __construct($type, $address, $name = null) { $this->setType($type); parent::__construct($address, $name); }