/**
  * Add a class to the element
  *
  * @param   string  $class  name of the class
  *
  * @return  \SxBootstrap\View\Helper\Bootstrap\AbstractElementHelper
  */
 public final function addClass($class)
 {
     // Set the class on the element
     $this->element->addClass($class);
     return $this;
 }
Beispiel #2
0
 /**
  * @param \Zend\Paginator\Paginator $paginator
  *
  * @return Pagination
  */
 public function __invoke(Paginator $paginator)
 {
     $paginationElement = new HtmlElement();
     $paginationElement->addClass('pagination');
     $this->setPaginator($paginator);
     $this->setElement($paginationElement);
     return clone $this;
 }