Exemplo n.º 1
0
 public function __construct($label, array $attributes = array(), $identity = null)
 {
     $this->setLabel($label);
     parent::__construct('li', array_merge(array("role" => "menuitem", "itemprop" => "itemListElement", "itemtype" => "http://schema.org/ItemList"), $attributes));
     $this->menuItemCollection = new MenuItemCollection();
     $this->setIdentity($identity ?: crc32(microtime()));
 }
Exemplo n.º 2
0
 /**
  *
  *
  * @param integer current page
  * @param integer total size
  * @param integer page size (optional)
  */
 public function __construct($currentPage, $totalPages)
 {
     $this->firstPageLabel = '«';
     $this->lastPageLabel = '»';
     $this->nextPageLabel = '›';
     $this->prevPageLabel = '‹';
     $this->currentPage = $currentPage;
     $this->totalPages = $totalPages;
     parent::__construct('ul');
 }
Exemplo n.º 3
0
 public function __construct($label, array $attributes = array(), $identity = null)
 {
     $this->setLabel($label);
     parent::__construct('li', array_merge(array("role" => "presentation", "itemprop" => "itemListElement", "itemscope" => NULL), $attributes));
     $this->setIdentity($identity ?: crc32(microtime()));
 }
Exemplo n.º 4
0
Arquivo: Span.php Projeto: azole/WebUI
 public function __construct($attributes = array())
 {
     parent::__construct($this->tagName, $attributes);
 }
Exemplo n.º 5
0
Arquivo: Menu.php Projeto: azole/WebUI
 public function __construct(array $attributes = array())
 {
     Element::__construct('nav', array_merge(array("role" => "menubar", "itemscope" => NULL, "itemtype" => "http://schema.org/SiteNavigationElement"), $attributes));
 }
Exemplo n.º 6
0
 public function __construct(array $attributes = array(), $identity = null)
 {
     Element::__construct('ul', array_merge(array("role" => "menu", "itemscope" => NULL, "itemtype" => "http://schema.org/ItemList"), $attributes));
     $this->setIdentity($identity ?: crc32(microtime()));
 }
Exemplo n.º 7
0
 public function __construct($attrs = array())
 {
     parent::__construct('ul', $attrs);
 }