[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/DeveloperGarden/Request/ConferenceCall/ -> GetConferenceListRequest.php (source)

   1  <?php
   2  /**
   3   * Zend Framework
   4   *
   5   * LICENSE
   6   *
   7   * This source file is subject to the new BSD license that is bundled
   8   * with this package in the file LICENSE.txt.
   9   * It is also available through the world-wide-web at this URL:
  10   * http://framework.zend.com/license/new-bsd
  11   * If you did not receive a copy of the license and are unable to
  12   * obtain it through the world-wide-web, please send an email
  13   * to [email protected] so we can send you a copy immediately.
  14   *
  15   * @category   Zend
  16   * @package    Zend_Service
  17   * @subpackage DeveloperGarden
  18   * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  19   * @license    http://framework.zend.com/license/new-bsd     New BSD License
  20   * @version    $Id$
  21   */
  22  
  23  /**
  24   * @see Zend_Service_DeveloperGarden_Request_RequestAbstract
  25   */
  26  require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.php';
  27  
  28  /**
  29   * @category   Zend
  30   * @package    Zend_Service
  31   * @subpackage DeveloperGarden
  32   * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  33   * @author     Marco Kaiser
  34   * @license    http://framework.zend.com/license/new-bsd     New BSD License
  35   */
  36  class Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest
  37      extends Zend_Service_DeveloperGarden_Request_RequestAbstract
  38  {
  39      /**
  40       * @var integer
  41       */
  42      public $what = null;
  43  
  44      /**
  45       * possible what values
  46       *
  47       * @var array
  48       */
  49      private $_whatValues = array(
  50          0 => 'all conferences',
  51          1 => 'just ad-hoc conferences',
  52          2 => 'just planned conferences',
  53          3 => 'just failed conferences',
  54      );
  55  
  56      /**
  57       * unique owner id
  58       *
  59       * @var string
  60       */
  61      public $ownerId = null;
  62  
  63      /**
  64       * constructor
  65       *
  66       * @param integer $environment
  67       * @param integer $what
  68       * @param string $ownerId
  69       */
  70      public function __construct($environment, $what = 0, $ownerId = null)
  71      {
  72          parent::__construct($environment);
  73          $this->setWhat($what)
  74               ->setOwnerId($ownerId);
  75      }
  76  
  77      /**
  78       * sets $what
  79       *
  80       * @param integer $what
  81       * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest
  82       */
  83      public function setWhat($what)
  84      {
  85          if (!array_key_exists($what, $this->_whatValues)) {
  86              require_once 'Zend/Service/DeveloperGarden/Request/Exception.php';
  87              throw new Zend_Service_DeveloperGarden_Request_Exception('What value not allowed.');
  88          }
  89          $this->what = $what;
  90          return $this;
  91      }
  92  
  93      /**
  94       * sets $ownerId
  95       *
  96       * @param $ownerId
  97       * @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest
  98       */
  99      public function setOwnerId($ownerId)
 100      {
 101          $this->ownerId = $ownerId;
 102          return $this;
 103      }
 104  }


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1