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())); }
/** * * * @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'); }
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())); }
public function __construct($attributes = array()) { parent::__construct($this->tagName, $attributes); }
public function __construct(array $attributes = array()) { Element::__construct('nav', array_merge(array("role" => "menubar", "itemscope" => NULL, "itemtype" => "http://schema.org/SiteNavigationElement"), $attributes)); }
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())); }
public function __construct($attrs = array()) { parent::__construct('ul', $attrs); }