Beispiel #1
0
 /**
  * Render navigation entities to the HTML string.
  *
  * @param string|array|integer $filterOrPid Filter or parent ID.
  * @param string $order_by Order by column in the database 'id:asc' or 'id:desc'.
  *
  * @return string
  */
 public final function render($filterOrPid, $order_by = null)
 {
     if (!$this->prepared || is_integer($filterOrPid)) {
         $this->prepare($filterOrPid, $order_by);
     }
     return $this->renderElements($this->processor->get($filterOrPid));
 }
Beispiel #2
0
 /**
  * Render Navbars to the HTML string.
  *
  * @param  mixed  $tagOrPid  Tag that group navbars or parent ID.
  * @param  string  $titled  Order direction for ordering by title 'asc' or 'desc'.
  * @param  string  $positioned  Order direction for ordering by position 'asc' or 'desc'.
  *
  * @return string
  */
 public final function render($tagOrPid, $titled = null, $positioned = null)
 {
     if (!$this->prepared || is_integer($tagOrPid)) {
         $this->prepare($tagOrPid, $titled, $positioned);
     }
     return $this->renderElements($this->processor->get($tagOrPid));
 }