/library/Zend/Application/Bootstrap/ResourceBootstrapper.php

https://bitbucket.org/hamidrezas/melobit · PHP · 95 lines · 12 code · 8 blank · 75 comment · 0 complexity · cb6e3b77e510491dfaff34a2468692df 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_Application
  17. * @subpackage Bootstrap
  18. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id: ResourceBootstrapper.php 24594 2012-01-05 21:27:01Z matthew $
  21. */
  22. /**
  23. * Interface for bootstrap classes that utilize resource plugins
  24. *
  25. * @category Zend
  26. * @package Zend_Application
  27. * @subpackage Bootstrap
  28. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  29. * @license http://framework.zend.com/license/new-bsd New BSD License
  30. */
  31. interface Zend_Application_Bootstrap_ResourceBootstrapper
  32. {
  33. /**
  34. * Register a resource with the bootstrap
  35. *
  36. * @param string|Zend_Application_Resource_Resource $resource
  37. * @param null|array|Zend_Config $options
  38. * @return Zend_Application_Bootstrap_ResourceBootstrapper
  39. */
  40. public function registerPluginResource($resource, $options = null);
  41. /**
  42. * Unregister a resource from the bootstrap
  43. *
  44. * @param string|Zend_Application_Resource_Resource $resource
  45. * @return Zend_Application_Bootstrap_ResourceBootstrapper
  46. */
  47. public function unregisterPluginResource($resource);
  48. /**
  49. * Is the requested resource registered?
  50. *
  51. * @param string $resource
  52. * @return bool
  53. */
  54. public function hasPluginResource($resource);
  55. /**
  56. * Retrieve resource
  57. *
  58. * @param string $resource
  59. * @return Zend_Application_Resource_Resource
  60. */
  61. public function getPluginResource($resource);
  62. /**
  63. * Get all resources
  64. *
  65. * @return array
  66. */
  67. public function getPluginResources();
  68. /**
  69. * Get just resource names
  70. *
  71. * @return array
  72. */
  73. public function getPluginResourceNames();
  74. /**
  75. * Set plugin loader to use to fetch resources
  76. *
  77. * @param Zend_Loader_PluginLoader_Interface Zend_Loader_PluginLoader
  78. * @return Zend_Application_Bootstrap_ResourceBootstrapper
  79. */
  80. public function setPluginLoader(Zend_Loader_PluginLoader_Interface $loader);
  81. /**
  82. * Retrieve plugin loader for resources
  83. *
  84. * @return Zend_Loader_PluginLoader
  85. */
  86. public function getPluginLoader();
  87. }