| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- class My_View_Helper_Navigation_Menu
- extends Zend_View_Helper_Navigation_HelperAbstract
- {
- /**
- * View helper entry point:
- * Retrieves helper and optionally sets container to operate on
- *
- * @param Zend_Navigation_Container $container [optional] container to
- * operate on
- * @return My_View_Helper_Navigation_Menu fluent interface,
- * returns self
- */
- public function menu(Zend_Navigation_Container $container = null)
- {
- if (null !== $container) {
- $this->setContainer($container);
- }
- return $this;
- }
-
- /**
- * Renders menu
- *
- * Implements {@link Zend_View_Helper_Navigation_Helper::render()}.
- *
- * @param Zend_Navigation_Container $container [optional] container to
- * render. Default is to
- * render the container
- * registered in the helper.
- * @return string helper output
- */
- public function render(Zend_Navigation_Container $container = null)
- {
- return '<menu/>';
- }
- }
|