Return a new Bootstrap Html Navbar
@param string $identifier
@param string $brand
@param string $brandHref
@return HtmlNavbar
199752
public function htmlNavbar($identifier, $brand="Brand", $brandHref="#") {
		return $this->addHtmlComponent(new HtmlNavbar($identifier, $brand, $brandHref));
	}
336496
public function init() {
		
		if ($this->brand !== false) {
			if (!isset($this->brand)) {
				$this->brand = CHtml::encode(Yii::app()->name);
			}

			if (!isset($this->brandUrl)) {
				$this->brandUrl = Yii::app()->homeUrl;
			}

			$this->brandOptions['href'] = CHtml::normalizeUrl($this->brandUrl);

			if (isset($this->brandOptions['class'])) {
				$this->brandOptions['class'] .= ' navbar-brand';
			} else {
				$this->brandOptions['class'] = 'navbar-brand';
			}
		}

		$classes = array('navbar');

		if (isset($this->type) && in_array($this->type, array(self::TYPE_DEFAULT, self::TYPE_INVERSE))) {
			$classes[] = 'navbar-' . $this->type;
		} else {
			$classes[] = 'navbar-' . self::TYPE_DEFAULT;
		}

		if ($this->fixed !== false && in_array($this->fixed, array(self::FIXED_TOP, self::FIXED_BOTTOM))) {
			$classes[] = 'navbar-fixed-' . $this->fixed;
		}

		if (!empty($classes)) {
			$classes = implode(' ', $classes);
			if (isset($this->htmlOptions['class'])) {
				$this->htmlOptions['class'] .= ' ' . $classes;
			} else {
				$this->htmlOptions['class'] = $classes;
			}
		}
		
		if ($this->collapse) {
			if (!isset($this->toggleButtonWidgetOptions['label'])) {
				$this->toggleButtonWidgetOptions['label'] = '<span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>';
			}
			if (!isset($this->toggleButtonWidgetOptions['encodeLabel'])) {
				$this->toggleButtonWidgetOptions['encodeLabel'] = false;
			}
			if (!isset($this->toggleButtonWidgetOptions['htmlOptions'])) {
				$this->toggleButtonWidgetOptions['htmlOptions'] = array(
					'class' => 'navbar-toggle',
					'data-toggle' => 'collapse',
					'data-target' => '#'.self::CONTAINER_PREFIX.$this->id,
				);
			}
		}
	}
1347706
public function newAction()
    {
        $entity = new Brand();
        $form   = $this->createCreateForm($entity);

        return array(
            'entity' => $entity,
            'form'   => $form->createView(),
        );
    }
263271
protected function magic_get_navbar() {
        if ($this->_navbar === null) {
            $this->_navbar = new navbar($this);
        }
        return $this->_navbar;
    }
823397
public function getVenue(Identifier $identifier)
    {
        $url = $this->getUrl(sprintf('venues/%s', urlencode($identifier)));

        $response = $this->httpClient->get($url, $this->getDefaultHeaders());

        $content = $this->parseResponse($response);

        if (!isset($content->response->venue)) {
            throw InvalidResponseException::invalidResponseBody($response, 'response.venue');
        }

        return $this->venueFactory->create(new Description($content->response->venue));
    }
401783
protected function createCache(string $identifier): void
    {
        $frontend = isset($this->cacheConfigurations[$identifier]['frontend']) ? $this->cacheConfigurations[$identifier]['frontend'] : $this->cacheConfigurations['Default']['frontend'];
        $backend = isset($this->cacheConfigurations[$identifier]['backend']) ? $this->cacheConfigurations[$identifier]['backend'] : $this->cacheConfigurations['Default']['backend'];
        $backendOptions = isset($this->cacheConfigurations[$identifier]['backendOptions']) ? $this->cacheConfigurations[$identifier]['backendOptions'] : $this->cacheConfigurations['Default']['backendOptions'];
        $persistent = isset($this->cacheConfigurations[$identifier]['persistent']) ? $this->cacheConfigurations[$identifier]['persistent'] : $this->cacheConfigurations['Default']['persistent'];
        $cache = $this->cacheFactory->create($identifier, $frontend, $backend, $backendOptions, $persistent);
        $this->registerCache($cache, $persistent);
    }
1230765
public function mapDeviceBrandName(?string $brandName, ?string $deviceName = null): ?string
    {
        $mapper    = new DeviceBrandnameMapper();
        $brandname = $mapper->mapDeviceName($deviceName);

        if (null === $brandname) {
            $brandname = $mapper->mapDeviceBrandName($brandName);
        }

        return $brandname;
    }
970820
public function navbar(Closure $builder = null)
    {
        if (is_null($builder)) {
            return $this->getNavbar();
        }

        call_user_func($builder, $this->getNavbar());
    }
144463
public function htmlGlyphButton($identifier, $glyphIcon=0, $value="", $cssStyle=NULL, $onClick=NULL) {
		return $this->addHtmlComponent(new HtmlGlyphButton($identifier, $glyphIcon, $value, $cssStyle, $onClick));
	}
613413
public function getRouteByIdentifier(int $identifier)
    {
        return isset($this->routes[$identifier])
            ? $this->routes[$identifier]
            : null;
    }
1200433
public static function buildBlockType(string $identifier, array $config, BlockDefinitionInterface $blockDefinition): BlockType
    {
        return BlockType::fromArray(
            [
                'identifier' => $identifier,
                'isEnabled' => $config['enabled'],
                'name' => $config['name'],
                'icon' => $config['icon'],
                'definition' => $blockDefinition,
                'defaults' => $config['defaults'],
            ]
        );
    }
740205
public function createLink($label, $href = null, $position = self::NAVBAR_LEFT)
    {
        if ( ! is_object($label) && isset($href)) {
            $label = new Link($label, $href);
        }

        switch ($position) {
            default:
            case self::NAVBAR_LEFT:
                $node = $this->left->createList($label);
                break;

            case self::NAVBAR_RIGHT:
                $node = $this->right->createList($label);
                break;
        }

        return $node;
    }
689
public function build()
    {
        // Create brand
        $html = $this->content instanceof Img ? $this->page->build() : $this->content;

        // Brand wrapped by a link
        if ($this->link instanceof A) {

            $this->link->addCss('navbar-brand');
            $this->link->setInner($html);

            $html = $this->link->build();
        }

        return $html;
    }
965124
public function getClassTemplates(ObjectIdentifier $identifier)
    {
        $templates = array();

        //Identifier
        $component = $this->getObject('object.bootstrapper')
            ->getComponentIdentifier($identifier->package, $identifier->domain);

        //Fallback
        if($namespaces = $this->getIdentifierNamespaces($component))
        {
            foreach($namespaces as $namespace)
            {
                //Handle class prefix vs class namespace
                if(strpos($namespace, '\\')) {
                    $namespace .= '\\';
                }

                $templates[] = $namespace.'<Class>';
                $templates[] = $namespace.'<Package><Path><File>';
            }
        }

        $templates = array_merge($templates, parent::getClassTemplates($identifier));

        return $templates;
    }
1101213
public function htmlPanel($identifier, $content=NULL, $header=NULL, $footer=NULL) {
		return $this->addHtmlComponent(new HtmlPanel($identifier, $content, $header, $footer));
	}
1047380
public function run()
    {
        $brand = $this->brandLabel !== false
            ? TbHtml::navbarBrandLink($this->brandLabel, $this->brandUrl, $this->brandOptions)
            : '';
        ob_start();
        foreach ($this->items as $item) {
            if (is_string($item)) {
                echo $item;
            } else {
                $widgetClassName = TbArray::popValue('class', $item);
                if ($widgetClassName !== null) {
                    $this->controller->widget($widgetClassName, $item);
                }
            }
        }
        $items = ob_get_clean();
        ob_start();
        if ($this->collapse !== false) {
            TbHtml::addCssClass('navbar-collapse', $this->collapseOptions);
            ob_start();
            /* @var TbCollapse $collapseWidget */
            $collapseWidget = $this->controller->widget(
                '\TbCollapse',
                array(
                    'toggle' => false, // navbars are collapsed by default
                    'content' => $items,
                    'htmlOptions' => $this->collapseOptions,
                )
            );
            $collapseContent = ob_get_clean();
            echo TbHtml::tag(
                'div', array('class' => 'navbar-header'),
                TbHtml::navbarCollapseLink('#' . $collapseWidget->getId()) . $brand
            );
            echo $collapseContent;

        } else {
            echo TbHtml::tag('div', array('class' => 'navbar-header'), $brand);
            echo $items;
        }
        $containerContent = ob_get_clean();
        $containerOptions = TbArray::popValue('containerOptions', $this->htmlOptions, array());
        TbHtml::addCssClass($this->fluid ? 'container-fluid' : 'container', $containerOptions);
        ob_start();
        echo TbHtml::openTag('div', $containerOptions);
        echo $containerContent;
        echo '</div>';
        $content = ob_get_clean();
        echo TbHtml::navbar($content, $this->htmlOptions);
    }
457940
public static function dropdown($identifier,$value,$items=[],$asCombo=false,$icon=null){
		$result=new HtmlButtonGroups($identifier,[$value]);
		$dd=$result->addDropdown($items,$asCombo);
		if(isset($icon) && $dd instanceof HtmlDropdown)
			$dd->setIcon($icon);
		return $result;
	}