__construct() public method

public __construct ( $streetAddress = null, $streetAddress2 = null, $cityName = null, $provinceCode = null, $provinceName = null, $postalCode = null, $countryCode = null )
Exemplo n.º 1
0
 /**
  * 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();
     }
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 4
0
 /**
  * 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);
     }
 }
Exemplo n.º 5
0
 /**
  * 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");
 }
Exemplo n.º 7
0
 public function __construct($type, $address, $name = null)
 {
     $this->setType($type);
     parent::__construct($address, $name);
 }