Source for file ListDomainsResult.php

Documentation is available at ListDomainsResult.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_ListDomainsResult
  32.  * 
  33.  * Properties:
  34.  * <ul>
  35.  * 
  36.  * <li>DomainName: string</li>
  37.  * <li>NextToken: string</li>
  38.  *
  39.  * </ul>
  40.  */ 
  41. {
  42.  
  43.  
  44.     /**
  45.      * Construct new Amazon_SimpleDB_Model_ListDomainsResult
  46.      * 
  47.      * @param mixed $data DOMElement or Associative Array to construct from.
  48.      * 
  49.      *  Valid properties:
  50.      *  <ul>
  51.      * 
  52.      *  <li>DomainName: string</li>
  53.      *  <li>NextToken: string</li>
  54.      *
  55.      *  </ul>
  56.      */
  57.     public function __construct($data null)
  58.     {
  59.         $this->_fields = array (
  60.         'DomainName' => array('FieldValue' => array()'FieldType' => array('string')),
  61.         'NextToken' => array('FieldValue' => null'FieldType' => 'string'),
  62.         );
  63.         parent::__construct($data);
  64.     }
  65.  
  66.         /**
  67.      * Gets the value of the DomainName .
  68.      * 
  69.      * @return array of string DomainName
  70.      */
  71.     public function getDomainName(
  72.     {
  73.         return $this->_fields['DomainName']['FieldValue'];
  74.     }
  75.  
  76.     /**
  77.      * Sets the value of the DomainName.
  78.      * 
  79.      * @param string or an array of string DomainName
  80.      * @return this instance
  81.      */
  82.     public function setDomainName($domainName
  83.     {
  84.         if (!$this->_isNumericArray($domainName)) {
  85.             $domainName =  array ($domainName);    
  86.         }
  87.         $this->_fields['DomainName']['FieldValue'$domainName;
  88.         return $this;
  89.     }
  90.   
  91.  
  92.     /**
  93.      * Sets single or multiple values of DomainName list via variable number of arguments.
  94.      * For example, to set the list with two elements, simply pass two values as arguments to this function
  95.      * <code>withDomainName($domainName1, $domainName2)</code>
  96.      * 
  97.      * @param string  $stringArgs one or more DomainName
  98.      * @return Amazon_SimpleDB_Model_ListDomainsResult  instance
  99.      */
  100.     public function withDomainName($stringArgs)
  101.     {
  102.         foreach (func_get_args(as $domainName{
  103.             $this->_fields['DomainName']['FieldValue'][$domainName;
  104.         }
  105.         return $this;
  106.     }  
  107.       
  108.  
  109.     /**
  110.      * Checks if DomainName list is non-empty
  111.      * 
  112.      * @return bool true if DomainName list is non-empty
  113.      */
  114.     public function isSetDomainName()
  115.     {
  116.         return count ($this->_fields['DomainName']['FieldValue']0;
  117.     }
  118.  
  119.     /**
  120.      * Gets the value of the NextToken property.
  121.      * 
  122.      * @return string NextToken
  123.      */
  124.     public function getNextToken(
  125.     {
  126.         return $this->_fields['NextToken']['FieldValue'];
  127.     }
  128.  
  129.     /**
  130.      * Sets the value of the NextToken property.
  131.      * 
  132.      * @param string NextToken
  133.      * @return this instance
  134.      */
  135.     public function setNextToken($value
  136.     {
  137.         $this->_fields['NextToken']['FieldValue'$value;
  138.         return $this;
  139.     }
  140.  
  141.     /**
  142.      * Sets the value of the NextToken and returns this instance
  143.      * 
  144.      * @param string $value NextToken
  145.      * @return Amazon_SimpleDB_Model_ListDomainsResult instance
  146.      */
  147.     public function withNextToken($value)
  148.     {
  149.         $this->setNextToken($value);
  150.         return $this;
  151.     }
  152.  
  153.  
  154.     /**
  155.      * Checks if NextToken is set
  156.      * 
  157.      * @return bool true if NextToken  is set
  158.      */
  159.     public function isSetNextToken()
  160.     {
  161.         return !is_null($this->_fields['NextToken']['FieldValue']);
  162.     }
  163.  
  164.  
  165.  
  166.  
  167. }

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