/** * Constructs new storage service object. */ public function __construct() { $sources = func_get_args(); parent::__construct($sources); foreach ($sources as $source) { $this->setStatus(Utilities::tryGetValue($source, Resources::XTAG_STATUS, $this->getStatus())); $endpoints = Utilities::tryGetValue($source, Resources::XTAG_ENDPOINTS); $this->setEndpoints(Utilities::tryGetValue($endpoints, Resources::XTAG_ENDPOINT, $this->getEndpoints())); } }
/** * Constructs new hosted service object. */ public function __construct() { $sources = func_get_args(); parent::__construct($sources); $this->_deployments = array(); foreach ($sources as $source) { $deployments = Utilities::tryGetKeysChainValue($source, Resources::XTAG_DEPLOYMENTS, Resources::XTAG_DEPLOYMENT); if (!empty($deployments)) { $this->_deployments = Utilities::createInstanceList(Utilities::getArray($deployments), 'WindowsAzure\\ServiceManagement\\Models\\Deployment'); } } }
/** * Constructs new storage service object. */ public function __construct() { $sources = func_get_args(); parent::__construct($sources); foreach ($sources as $source) { $this->setStatus(Utilities::tryGetValue($source, Resources::XTAG_STATUS, $this->getStatus())); $endpoints = Utilities::tryGetKeysChainValue($source, Resources::XTAG_ENDPOINTS, Resources::XTAG_ENDPOINT); $this->setBlobEndpointUri(Utilities::tryGetValue($endpoints, 0)); $this->setQueueEndpointUri(Utilities::tryGetValue($endpoints, 1)); $this->setTableEndpointUri(Utilities::tryGetValue($endpoints, 2)); } }