Source for file DeleteDomainResponse.php

Documentation is available at DeleteDomainResponse.php

  1. <?php
  2. /** 
  3.  *  PHP Version 5
  4.  *
  5.  *  @category    Amazon
  6.  *  @package     Amazon_SimpleDB
  7.  *  @copyright   Copyright 2008 Amazon Technologies, Inc.
  8.  *  @link        http://aws.amazon.com
  9.  *  @license     http://aws.amazon.com/apache2.0  Apache License, Version 2.0
  10.  *  @version     2007-11-07
  11.  */
  12. /******************************************************************************* 
  13.  *    __  _    _  ___ 
  14.  *   (  )( \/\/ )/ __)
  15.  *   /__\ \    / \__ \
  16.  *  (_)(_) \/\/  (___/
  17.  * 
  18.  *  Amazon Simple DB PHP5 Library
  19.  *  Generated: Thu Aug 28 06:20:51 PDT 2008
  20.  * 
  21.  */
  22.  
  23. /**
  24.  *  @see Amazon_SimpleDB_Model
  25.  */
  26. require_once ('Amazon/SimpleDB/Model.php');  
  27.  
  28.     
  29.  
  30. /**
  31.  * Amazon_SimpleDB_Model_DeleteDomainResponse
  32.  * 
  33.  * Properties:
  34.  * <ul>
  35.  * 
  36.  * <li>ResponseMetadata: Amazon_SimpleDB_Model_ResponseMetadata</li>
  37.  *
  38.  * </ul>
  39.  */ 
  40. {
  41.  
  42.  
  43.     /**
  44.      * Construct new Amazon_SimpleDB_Model_DeleteDomainResponse
  45.      * 
  46.      * @param mixed $data DOMElement or Associative Array to construct from.
  47.      * 
  48.      *  Valid properties:
  49.      *  <ul>
  50.      * 
  51.      *  <li>ResponseMetadata: Amazon_SimpleDB_Model_ResponseMetadata</li>
  52.      *
  53.      *  </ul>
  54.      */
  55.     public function __construct($data null)
  56.     {
  57.         $this->_fields = array (
  58.         'ResponseMetadata' => array('FieldValue' => null'FieldType' => 'Amazon_SimpleDB_Model_ResponseMetadata'),
  59.         );
  60.         parent::__construct($data);
  61.     }
  62.  
  63.        
  64.     /**
  65.      * Construct Amazon_SimpleDB_Model_DeleteDomainResponse from XML string
  66.      * 
  67.      * @param string $xml XML string to construct from
  68.      * @return Amazon_SimpleDB_Model_DeleteDomainResponse 
  69.      */
  70.     public static function fromXML($xml)
  71.     {
  72.         $dom new DOMDocument();
  73.         $dom->loadXML($xml);
  74.         $xpath new DOMXPath($dom);
  75.         $xpath->registerNamespace('a''http://sdb.amazonaws.com/doc/2007-11-07/');
  76.         $response $xpath->query('//a:DeleteDomainResponse');
  77.         if ($response->length == 1{
  78.             return new Amazon_SimpleDB_Model_DeleteDomainResponse(($response->item(0)))
  79.         else {
  80.             throw new Exception ("Unable to construct Amazon_SimpleDB_Model_DeleteDomainResponse from provided XML. 
  81.                                   Make sure that DeleteDomainResponse is a root element");
  82.         }
  83.           
  84.     }
  85.     
  86.     /**
  87.      * Gets the value of the ResponseMetadata.
  88.      * 
  89.      * @return ResponseMetadata ResponseMetadata
  90.      */
  91.     public function getResponseMetadata(
  92.     {
  93.         return $this->_fields['ResponseMetadata']['FieldValue'];
  94.     }
  95.  
  96.     /**
  97.      * Sets the value of the ResponseMetadata.
  98.      * 
  99.      * @param ResponseMetadata ResponseMetadata
  100.      * @return void 
  101.      */
  102.     public function setResponseMetadata($value
  103.     {
  104.         $this->_fields['ResponseMetadata']['FieldValue'$value;
  105.         return;
  106.     }
  107.  
  108.     /**
  109.      * Sets the value of the ResponseMetadata  and returns this instance
  110.      * 
  111.      * @param ResponseMetadata $value ResponseMetadata
  112.      * @return Amazon_SimpleDB_Model_DeleteDomainResponse instance
  113.      */
  114.     public function withResponseMetadata($value)
  115.     {
  116.         $this->setResponseMetadata($value);
  117.         return $this;
  118.     }
  119.  
  120.  
  121.     /**
  122.      * Checks if ResponseMetadata  is set
  123.      * 
  124.      * @return bool true if ResponseMetadata property is set
  125.      */
  126.     public function isSetResponseMetadata()
  127.     {
  128.         return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
  129.  
  130.     }
  131.  
  132.  
  133.  
  134.     /**
  135.      * XML Representation for this object
  136.      * 
  137.      * @return string XML for this object
  138.      */
  139.     public function toXML(
  140.     {
  141.         $xml "";
  142.         $xml .= "<DeleteDomainResponse xmlns=\"http://sdb.amazonaws.com/doc/2007-11-07/\">";
  143.         $xml .= $this->_toXMLFragment();
  144.         $xml .= "</DeleteDomainResponse>";
  145.         return $xml;
  146.     }
  147.  
  148. }

Documentation generated on Thu, 28 Aug 2008 06:35:46 -0700 by phpDocumentor 1.4.2