34 $this->_template=include
'templates/tplNavbar.php';
35 $this->navZones=array ();
36 $this->
class=
"navbar-default";
63 $this->brandImage=
new HtmlImg(
"brand-img-".$this->_identifier,$imageSrc,$this->brand);
80 $this->navZones []=$zone;
87 $element->setMTagName(
"li");
88 $zone->addElement($element);
93 $zone->addElements($elements);
102 return parent::fromArray($array);
107 foreach (
$navZones as $zoneType => $zoneArray ) {
108 if (is_string($zoneType)) {
109 $zone=$this->
addZone($zoneType);
110 $zone->fromArray($zoneArray);
111 }
else if (is_string($zoneArray))
130 $zone=$this->navZones [$nb-1];
143 if (is_int($index)) {
145 $zone=$this->navZones [$index];
147 for($i=0; $i<$nb; $i++) {
149 $zone=$this->navZones [$i];
158 foreach ( $this->navZones as $zone ) {
161 if ($this->hasScrollspy) {
163 $this->
scrollspy->attach($this->scrollspyId);
164 $this->
scrollspy->setTarget(
"#".$this->identifier);
175 $this->hasScrollspy=
true;
176 $this->scrollspyId=$attachTo;
181 $this->fluid=
"container-fluid";
183 $this->fluid=
"container";
BaseHtml for HTML components.
Twitter Bootstrap HTML Navbar component.
getZoneToInsertIn($zone=NULL)
fromArray($array)
/* (non-PHPdoc)
Inner element for Twitter Bootstrap HTML Navbar component.
addZone($type="nav", $identifier=NULL)
adds a new zone of type $type
fromDatabaseObject($object, $function)
setBrandTarget($brandTarget)
addElement($element, HtmlNavzone $zone=NULL)
scrollspy($attachTo="body")
addElements($elements, HtmlNavzone $zone=NULL)
addToMember(&$name, $value, $separator=' ')
Twitter Bootstrap HTML Dropdown component.
__construct($identifier, $brand="Brand", $brandHref="#")