Exemplo n.º 1
0
 /**
  * Prepare navigation entities for rendering.
  *
  * @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 \Zablose\Navbar\NavbarBuilderCore
  */
 public final function prepare($filterOrPid = null, $order_by = null)
 {
     $this->prepared = true;
     $this->processor->prepare($filterOrPid, $order_by);
     return $this;
 }
Exemplo n.º 2
0
 /**
  *
  * @param  mixed  $tagOrPid  Tag(s) 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 NavbarBuilder
  */
 public final function prepare($tagOrPid = null, $titled = null, $positioned = null)
 {
     $this->prepared = true;
     $this->processor->prepare($tagOrPid, $titled, $positioned);
     return $this;
 }