Interface.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_Loader
  17. * @subpackage PluginLoader
  18. * @copyright Copyright (c) 2005-2015 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. * Plugin class loader interface
  24. *
  25. * @category Zend
  26. * @package Zend_Loader
  27. * @subpackage PluginLoader
  28. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  29. * @license http://framework.zend.com/license/new-bsd New BSD License
  30. */
  31. interface Zend_Loader_PluginLoader_Interface
  32. {
  33. /**
  34. * Add prefixed paths to the registry of paths
  35. *
  36. * @param string $prefix
  37. * @param string $path
  38. * @return Zend_Loader_PluginLoader
  39. */
  40. public function addPrefixPath($prefix, $path);
  41. /**
  42. * Remove a prefix (or prefixed-path) from the registry
  43. *
  44. * @param string $prefix
  45. * @param string $path OPTIONAL
  46. * @return Zend_Loader_PluginLoader
  47. */
  48. public function removePrefixPath($prefix, $path = null);
  49. /**
  50. * Whether or not a Helper by a specific name
  51. *
  52. * @param string $name
  53. * @return Zend_Loader_PluginLoader
  54. */
  55. public function isLoaded($name);
  56. /**
  57. * Return full class name for a named helper
  58. *
  59. * @param string $name
  60. * @return string
  61. */
  62. public function getClassName($name);
  63. /**
  64. * Load a helper via the name provided
  65. *
  66. * @param string $name
  67. * @return string
  68. */
  69. public function load($name);
  70. }