- function item($actionName, $args, $label, $description, $id=null)
+ if (!is_null($tag)) {
+ $attrs['id'] = 'nav_' . $tag;
+ }
+
+ if (Event::handle('StartNav', array($this, &$tag, &$items))) {
+
+ $this->out->elementStart('ul', $attrs);
+
+ foreach ($items as $item) {
+ list($actionName, $args, $label, $description, $id) = $item;
+ $this->item($actionName, $args, $label, $description, $id);
+ }
+
+ $this->out->elementEnd('ul');
+
+ Event::handle('EndNav', array($this, $tag, $items));
+ }
+ }
+
+ function item($actionName, array $args, $label, $description, $id=null, $cls=null)