Menu.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. class My_View_Helper_Navigation_Menu
  3. extends Zend_View_Helper_Navigation_HelperAbstract
  4. {
  5. /**
  6. * View helper entry point:
  7. * Retrieves helper and optionally sets container to operate on
  8. *
  9. * @param Zend_Navigation_Container $container [optional] container to
  10. * operate on
  11. * @return My_View_Helper_Navigation_Menu fluent interface,
  12. * returns self
  13. */
  14. public function menu(Zend_Navigation_Container $container = null)
  15. {
  16. if (null !== $container) {
  17. $this->setContainer($container);
  18. }
  19. return $this;
  20. }
  21. /**
  22. * Renders menu
  23. *
  24. * Implements {@link Zend_View_Helper_Navigation_Helper::render()}.
  25. *
  26. * @param Zend_Navigation_Container $container [optional] container to
  27. * render. Default is to
  28. * render the container
  29. * registered in the helper.
  30. * @return string helper output
  31. */
  32. public function render(Zend_Navigation_Container $container = null)
  33. {
  34. return '<menu/>';
  35. }
  36. }