本文整理汇总了PHP中Zend_Service_WindowsAzure_Storage_TableEntity::getAzureValues方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Service_WindowsAzure_Storage_TableEntity::getAzureValues方法的具体用法?PHP Zend_Service_WindowsAzure_Storage_TableEntity::getAzureValues怎么用?PHP Zend_Service_WindowsAzure_Storage_TableEntity::getAzureValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Service_WindowsAzure_Storage_TableEntity
的用法示例。
在下文中一共展示了Zend_Service_WindowsAzure_Storage_TableEntity::getAzureValues方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAzureValues
/**
* Get Azure values
*
* @return array
*/
public function getAzureValues()
{
return array_merge(array_values($this->_dynamicProperties), parent::getAzureValues());
}
示例2: _resolveAttributes
/**
* Resolve table values to attributes
*
* @param Zend_Service_WindowsAzure_Storage_TableEntity $entity
* @return array
*/
protected function _resolveAttributes(Zend_Service_WindowsAzure_Storage_TableEntity $entity)
{
$result = array();
foreach ($entity->getAzureValues() as $attr) {
$result[$attr->Name] = $attr->Value;
}
return $result;
}
示例3: _generateAzureRepresentation
/**
* Generate Azure representation from entity (creates atompub markup from properties)
*
* @param Zend_Service_WindowsAzure_Storage_TableEntity $entity
* @return string
*/
protected function _generateAzureRepresentation(Zend_Service_WindowsAzure_Storage_TableEntity $entity = null)
{
// Generate Azure representation from entity
$azureRepresentation = array();
$azureValues = $entity->getAzureValues();
foreach ($azureValues as $azureValue) {
$value = array();
$value[] = '<d:' . $azureValue->Name;
if ($azureValue->Type != '') {
$value[] = ' m:type="' . $azureValue->Type . '"';
}
if (is_null($azureValue->Value)) {
$value[] = ' m:null="true"';
}
$value[] = '>';
if (!is_null($azureValue->Value)) {
if (strtolower($azureValue->Type) == 'edm.boolean') {
$value[] = $azureValue->Value == true ? '1' : '0';
} else {
if (strtolower($azureValue->Type) == 'edm.datetime') {
$value[] = $this->_convertToEdmDateTime($azureValue->Value);
} else {
$value[] = htmlspecialchars($azureValue->Value);
}
}
}
$value[] = '</d:' . $azureValue->Name . '>';
$azureRepresentation[] = implode('', $value);
}
return implode('', $azureRepresentation);
}