コード例 #1
0
 /**
  * Converts this object to array with XML tags
  * 
  * @return array. 
  */
 public function toArray()
 {
     $array = array('Version' => $this->_version, 'Enabled' => Utilities::booleanToString($this->_enabled));
     if ($this->_enabled) {
         $array['IncludeAPIs'] = Utilities::booleanToString($this->_includeAPIs);
     }
     $array['RetentionPolicy'] = !empty($this->_retentionPolicy) ? $this->_retentionPolicy->toArray() : null;
     return $array;
 }
コード例 #2
0
 /**
  * Converts this object to array with XML tags.
  * 
  * @return array.
  */
 public function toArray()
 {
     return array('Version' => $this->_version, 'Delete' => Utilities::booleanToString($this->_delete), 'Read' => Utilities::booleanToString($this->_read), 'Write' => Utilities::booleanToString($this->_write), 'RetentionPolicy' => !empty($this->_retentionPolicy) ? $this->_retentionPolicy->toArray() : null);
 }