/**
  * @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();
 }
 public function contentAsString()
 {
     if ($this->autoActive) {
         $this->setActive();
     }
     return parent::contentAsString();
 }