示例#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()));
 }
示例#2
0
文件: Pager.php 项目: azole/WebUI
 /**
  *
  *
  * @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');
 }
示例#3
0
文件: MenuItem.php 项目: azole/WebUI
 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()));
 }
示例#4
0
文件: Span.php 项目: azole/WebUI
 public function __construct($attributes = array())
 {
     parent::__construct($this->tagName, $attributes);
 }
示例#5
0
文件: Menu.php 项目: azole/WebUI
 public function __construct(array $attributes = array())
 {
     Element::__construct('nav', array_merge(array("role" => "menubar", "itemscope" => NULL, "itemtype" => "http://schema.org/SiteNavigationElement"), $attributes));
 }
示例#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()));
 }
示例#7
0
 public function __construct($attrs = array())
 {
     parent::__construct('ul', $attrs);
 }