/Zend/Service/DeveloperGarden/Request/LocalSearch/LocalSearchRequest.php

https://github.com/MontmereLimited/ZendFramework-v1 · PHP · 113 lines · 36 code · 10 blank · 67 comment · 0 complexity · 67a17e334aa25b12eedc1089c9fb5fdf MD5 · raw file

  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 license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Service
  17. * @subpackage DeveloperGarden
  18. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id: LocalSearchRequest.php 23775 2011-03-01 17:25:24Z ralph $
  21. */
  22. /**
  23. * @see Zend_Service_DeveloperGarden_RequestAbstract
  24. */
  25. // // // // // // // // require_once 'Zend/Service/DeveloperGarden/Request/RequestAbstract.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Service
  29. * @subpackage DeveloperGarden
  30. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @author Marco Kaiser
  32. * @license http://framework.zend.com/license/new-bsd New BSD License
  33. */
  34. class Zend_Service_DeveloperGarden_Request_LocalSearch_LocalSearchRequest
  35. extends Zend_Service_DeveloperGarden_Request_RequestAbstract
  36. {
  37. /**
  38. * array of search parameters
  39. *
  40. * @var array
  41. */
  42. public $searchParameters = null;
  43. /**
  44. * original object
  45. *
  46. * @var Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
  47. */
  48. private $_searchParameters = null;
  49. /**
  50. * account id
  51. *
  52. * @var integer
  53. */
  54. public $account = null;
  55. /**
  56. * constructor give them the environment and the sessionId
  57. *
  58. * @param integer $environment
  59. * @param Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters
  60. * @param integer $account
  61. * @return Zend_Service_DeveloperGarden_Request_RequestAbstract
  62. */
  63. public function __construct($environment,
  64. Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters,
  65. $account = null
  66. ) {
  67. parent::__construct($environment);
  68. $this->setSearchParameters($searchParameters)
  69. ->setAccount($account);
  70. }
  71. /**
  72. * @param integer $account
  73. */
  74. public function setAccount($account = null)
  75. {
  76. $this->account = $account;
  77. return $this;
  78. }
  79. /**
  80. * @return integer
  81. */
  82. public function getAccount()
  83. {
  84. return $this->account;
  85. }
  86. /**
  87. * @param Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters
  88. */
  89. public function setSearchParameters(
  90. Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters
  91. ) {
  92. $this->searchParameters = $searchParameters->getSearchParameters();
  93. $this->_searchParameters = $searchParameters;
  94. return $this;
  95. }
  96. /**
  97. * @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
  98. */
  99. public function getSearchParameters()
  100. {
  101. return $this->_searchParameters;
  102. }
  103. }