Source for file Query.php

Documentation is available at Query.php

  1. <?php
  2. /** 
  3.  *  PHP Version 5
  4.  *
  5.  *  @category    Amazon
  6.  *  @package     Amazon_SimpleDB
  7.  *  @copyright   Copyright 2007 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: Wed Jul 23 00:24:22 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_Query
  32.  * 
  33.  * Properties:
  34.  * <ul>
  35.  * 
  36.  * <li>DomainName: string</li>
  37.  * <li>QueryExpression: string</li>
  38.  * <li>MaxNumberOfItems: int</li>
  39.  * <li>NextToken: string</li>
  40.  *
  41.  * </ul>
  42.  */ 
  43. {
  44.  
  45.  
  46.     /**
  47.      * Construct new Amazon_SimpleDB_Model_Query
  48.      * 
  49.      * @param mixed $data DOMElement or Associative Array to construct from.
  50.      * 
  51.      *  Valid properties:
  52.      *  <ul>
  53.      * 
  54.      *  <li>DomainName: string</li>
  55.      *  <li>QueryExpression: string</li>
  56.      *  <li>MaxNumberOfItems: int</li>
  57.      *  <li>NextToken: string</li>
  58.      *
  59.      *  </ul>
  60.      */
  61.     public function __construct($data null)
  62.     {
  63.         $this->_fields = array (
  64.         'DomainName' => array('FieldValue' => null'FieldType' => 'string'),
  65.         'QueryExpression' => array('FieldValue' => null'FieldType' => 'string'),
  66.         'MaxNumberOfItems' => array('FieldValue' => null'FieldType' => 'int'),
  67.         'NextToken' => array('FieldValue' => null'FieldType' => 'string'),
  68.         );
  69.         parent::__construct($data);
  70.     }
  71.  
  72.         /**
  73.      * Gets the value of the DomainName property.
  74.      * 
  75.      * @return string DomainName
  76.      */
  77.     public function getDomainName(
  78.     {
  79.         return $this->_fields['DomainName']['FieldValue'];
  80.     }
  81.  
  82.     /**
  83.      * Sets the value of the DomainName property.
  84.      * 
  85.      * @param string DomainName
  86.      * @return this instance
  87.      */
  88.     public function setDomainName($value
  89.     {
  90.         $this->_fields['DomainName']['FieldValue'$value;
  91.         return $this;
  92.     }
  93.  
  94.     /**
  95.      * Sets the value of the DomainName and returns this instance
  96.      * 
  97.      * @param string $value DomainName
  98.      * @return Amazon_SimpleDB_Model_Query instance
  99.      */
  100.     public function withDomainName($value)
  101.     {
  102.         $this->setDomainName($value);
  103.         return $this;
  104.     }
  105.  
  106.  
  107.     /**
  108.      * Checks if DomainName is set
  109.      * 
  110.      * @return bool true if DomainName  is set
  111.      */
  112.     public function isSetDomainName()
  113.     {
  114.         return !is_null($this->_fields['DomainName']['FieldValue']);
  115.     }
  116.  
  117.     /**
  118.      * Gets the value of the QueryExpression property.
  119.      * 
  120.      * @return string QueryExpression
  121.      */
  122.     public function getQueryExpression(
  123.     {
  124.         return $this->_fields['QueryExpression']['FieldValue'];
  125.     }
  126.  
  127.     /**
  128.      * Sets the value of the QueryExpression property.
  129.      * 
  130.      * @param string QueryExpression
  131.      * @return this instance
  132.      */
  133.     public function setQueryExpression($value
  134.     {
  135.         $this->_fields['QueryExpression']['FieldValue'$value;
  136.         return $this;
  137.     }
  138.  
  139.     /**
  140.      * Sets the value of the QueryExpression and returns this instance
  141.      * 
  142.      * @param string $value QueryExpression
  143.      * @return Amazon_SimpleDB_Model_Query instance
  144.      */
  145.     public function withQueryExpression($value)
  146.     {
  147.         $this->setQueryExpression($value);
  148.         return $this;
  149.     }
  150.  
  151.  
  152.     /**
  153.      * Checks if QueryExpression is set
  154.      * 
  155.      * @return bool true if QueryExpression  is set
  156.      */
  157.     public function isSetQueryExpression()
  158.     {
  159.         return !is_null($this->_fields['QueryExpression']['FieldValue']);
  160.     }
  161.  
  162.     /**
  163.      * Gets the value of the MaxNumberOfItems property.
  164.      * 
  165.      * @return int MaxNumberOfItems
  166.      */
  167.     public function getMaxNumberOfItems(
  168.     {
  169.         return $this->_fields['MaxNumberOfItems']['FieldValue'];
  170.     }
  171.  
  172.     /**
  173.      * Sets the value of the MaxNumberOfItems property.
  174.      * 
  175.      * @param int MaxNumberOfItems
  176.      * @return this instance
  177.      */
  178.     public function setMaxNumberOfItems($value
  179.     {
  180.         $this->_fields['MaxNumberOfItems']['FieldValue'$value;
  181.         return $this;
  182.     }
  183.  
  184.     /**
  185.      * Sets the value of the MaxNumberOfItems and returns this instance
  186.      * 
  187.      * @param int $value MaxNumberOfItems
  188.      * @return Amazon_SimpleDB_Model_Query instance
  189.      */
  190.     public function withMaxNumberOfItems($value)
  191.     {
  192.         $this->setMaxNumberOfItems($value);
  193.         return $this;
  194.     }
  195.  
  196.  
  197.     /**
  198.      * Checks if MaxNumberOfItems is set
  199.      * 
  200.      * @return bool true if MaxNumberOfItems  is set
  201.      */
  202.     public function isSetMaxNumberOfItems()
  203.     {
  204.         return !is_null($this->_fields['MaxNumberOfItems']['FieldValue']);
  205.     }
  206.  
  207.     /**
  208.      * Gets the value of the NextToken property.
  209.      * 
  210.      * @return string NextToken
  211.      */
  212.     public function getNextToken(
  213.     {
  214.         return $this->_fields['NextToken']['FieldValue'];
  215.     }
  216.  
  217.     /**
  218.      * Sets the value of the NextToken property.
  219.      * 
  220.      * @param string NextToken
  221.      * @return this instance
  222.      */
  223.     public function setNextToken($value
  224.     {
  225.         $this->_fields['NextToken']['FieldValue'$value;
  226.         return $this;
  227.     }
  228.  
  229.     /**
  230.      * Sets the value of the NextToken and returns this instance
  231.      * 
  232.      * @param string $value NextToken
  233.      * @return Amazon_SimpleDB_Model_Query instance
  234.      */
  235.     public function withNextToken($value)
  236.     {
  237.         $this->setNextToken($value);
  238.         return $this;
  239.     }
  240.  
  241.  
  242.     /**
  243.      * Checks if NextToken is set
  244.      * 
  245.      * @return bool true if NextToken  is set
  246.      */
  247.     public function isSetNextToken()
  248.     {
  249.         return !is_null($this->_fields['NextToken']['FieldValue']);
  250.     }
  251.  
  252.  
  253.  
  254.  
  255. }

Documentation generated on Wed, 23 Jul 2008 00:47:42 -0700 by phpDocumentor 1.4.2