/**
  * @param string $identifier
  * @param array $elements
  * @param boolean $autoActive sets the last element's class to <b>active</b> if true
  * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
  */
 public function __construct($identifier, $elements = array(), $autoActive = true, $hrefFunction = NULL)
 {
     parent::__construct($identifier, "ol");
     $this->setProperty("class", "breadcrumb");
     $this->content = array();
     $this->autoActive = $autoActive;
     $this->absolutePaths;
     $this->_hrefFunction = function ($e) {
         return $e->getContent();
     };
     if (isset($hrefFunction)) {
         $this->_hrefFunction = $hrefFunction;
     }
     $this->addElements($elements);
 }
 /**
  * @param string $identifier
  */
 public function __construct($identifier, $from = 1, $to = 1, $active = NULL, $countVisible = NULL)
 {
     parent::__construct($identifier, "ul");
     $this->setProperty("class", "pagination");
     $this->active = $active;
     $this->from = $from;
     $this->to = $to;
     $this->urlMask = "%page%";
     if (!isset($countVisible)) {
         $this->countVisible = $to - $from + 1;
     } else {
         $this->countVisible = $countVisible;
     }
     $this->createContent();
 }