2
0

Interface.php 2.0 KB

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