本文整理汇总了PHP中Address::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Address::__construct方法的具体用法?PHP Address::__construct怎么用?PHP Address::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Address
的用法示例。
在下文中一共展示了Address::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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();
}
}
示例2: __construct
public function __construct()
{
parent::__construct();
if (isset($_SESSION['blockid'])) {
$this->blockid = $_SESSION['blockid'];
}
}
示例3: __construct
/**
* @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;
}
示例4: __construct
/**
* 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);
}
}
示例5: __construct
/**
* Creates a new "end of array" address
*
* @param parent $parent
*/
public function __construct(parent $parent)
{
parent::__construct(self::$null, $parent, false);
}
示例6: __construct
public function __construct($root_zone, $contry_code)
{
parent::__construct($root_zone);
$this->zone1 = parent::getParentZone()->get($contry_code);
$this->zone1->getAttribute("Type")->set("Country");
}
示例7: __construct
public function __construct($type, $address, $name = null)
{
$this->setType($type);
parent::__construct($address, $name);
}