Returns a new Semantic label
@see http://phpmv-ui.kobject.net/index/direct/main/46
@see http://semantic-ui.com/elements/label.html
@param string $identifier
@param string $content
@param string $tagName
@return HtmlLabel
766901
public function htmlLabel($identifier, $content="", $icon=NULL,$tagName="div") {
		return $this->addHtmlComponent(new HtmlLabel($identifier, $content,$icon, $tagName));
	}
1193547
public function searchTranslationUnit(string $identifier): ?XmlElement
    {
        if ('' === $identifier) {
            throw new \InvalidArgumentException('Empty Id passed.', 0);
        }

        if ($this->documentElement
            && $this->documentElement->isDefaultNamespace(self::XLIFF_NS)
            && $transUnit = $this->getXPathFirstItem(
                '/xlf:xliff/xlf:file/xlf:body/xlf:trans-unit[@id=\'' . $identifier . '\']'
            )) {
            /** @var XmlElement $transUnit */
            return $transUnit;
        }

        if ($transUnit = $this->getXPathFirstItem(
            '/xlf:xliff/xlf:file/xlf:body/xlf:trans-unit[@xlf:id=\'' . $identifier . '\']'
        )) {
            /** @var XmlElement $transUnit */
            return $transUnit;
        }

        return null;
    }
1101213
public function htmlPanel($identifier, $content=NULL, $header=NULL, $footer=NULL) {
		return $this->addHtmlComponent(new HtmlPanel($identifier, $content, $header, $footer));
	}
132856
private function createLabel(string $text, string $name): Markup
    {
        return HtmlTag::createElement('label')
            ->set('for', $name)
            ->text($text);
    }
1171283
public static function quoteIdentifier($identifier, $tableName = null)
    {
        if ($identifier === null || $identifier === '') {
            return '';
        }

        if (!is_string($identifier)) {
            throw new InvalidArgumentException(sprintf(
                'Field Name must be a string, received %s',
                is_object($identifier) ? get_class($identifier) : gettype($identifier)
            ));
        }

        if ($tableName !== null) {
            if (!is_string($tableName)) {
                throw new InvalidArgumentException(sprintf(
                    'Table Name must be a string, received %s',
                    is_object($tableName) ? get_class($tableName) : gettype($tableName)
                ));
            }

            if ($tableName === '') {
                throw new InvalidArgumentException(
                    'Table Name can not be empty.'
                );
            }

            if ($identifier === '*') {
                $template = '%1$s.*';
            } else {
                $template = '%1$s.`%2$s`';
            }

            return sprintf($template, $tableName, $identifier);
        }

        if ($identifier === '*') {
            return $identifier;
        } else {
            return sprintf('`%1$s`', $identifier);
        }
    }
265652
public Javadoc addBlockTag(String tagName, String parameter, String content) {
        return addBlockTag(tagName, parameter + " " + content);
    }
6815
public function newContentTypeCreateStruct($identifier = null)
    {
        return $this->contentTypeService->newContentTypeCreateStruct(
            $identifier ?: $identifier = str_replace('.', '', uniqid('content_type_', true))
        );
    }
975727
protected function syntaxHighlighterContent($tag, $language, $content) {

        $attributes = [];

        $attributes["class"][] = "brush:";
        $attributes["class"][] = $language;

        return static::coreHTMLElement($tag, implode("", ["\n", htmlentities($content), "\n"]), $attributes);
    }
300477
public static function appendLabel($uri, $label)
    {
        $host = new Host(self::filterUri($uri)->getHost());
        if ($host->isDomain()) {
            return $uri->withHost((string) (new Domain($host))->append($label));
        }

        if ($host->isIpv4()) {
            $label = ltrim((string) new Host($label), '.');

            return $uri->withHost((string) $host->withContent($host->getContent().'.'.$label));
        }

        throw new SyntaxError(sprintf('The URI host %s can not be appended', (string) $host));
    }
456392
public function nodeTagForIdentifier(string $identifier, NodeInterface $contextNode = null): string
    {
        $workspaceTag = '';
        if ($contextNode instanceof NodeInterface) {
            $workspaceTag = $this->renderWorkspaceTagForContextNode($contextNode->getContext()->getWorkspace()->getName()) .'_';
        }

        return 'Node_' . $workspaceTag . $identifier;
    }
512628
public function tag($name, $content, $htmlOptions = array()) {
        $element = "<$name ";
        foreach ($htmlOptions as $k => $v) {
            $element .= "$k=\"" . self::encode($v) . "\" ";
        }
        return $element . '>' . $content . '</' . $name . '>';
    }
492580
public function _if($tag,$content) {
        $condition  =   $this->parseCondition($tag['condition']);
        $parseStr   =   '<?php if('.$condition.'): ?>'.$content.'<?php endif; ?>';
        return $parseStr;
    }
1195065
public function duplicateContent(ContentInterface $content, $contentId = null)
    {
        $newContent = $this->cloneContent($content);
        $newContent->setContentId($contentId);
        $newContent->setName($this->duplicateLabel($content->getName()));
        $newContent = $this->setVersionName($newContent);

        return $newContent;
    }
675770
public function htmlModal($identifier, $header="", $content="", $actions=array()) {
		return $this->addHtmlComponent(new HtmlModal($identifier, $header,$content,$actions));
	}
545312
public static function getTagNumber($identifier)
    {
        $firstOctet = self::makeNumeric($identifier);
        $tagNumber = $firstOctet & self::LONG_FORM;

        if ($tagNumber < self::LONG_FORM) {
            return $tagNumber;
        }

        if (is_numeric($identifier)) {
            $identifier = chr($identifier);
        }
        return Base128::decode(substr($identifier, 1));
    }
648444
public function serializeToDom($data, string $tagName = null): \DOMDocument
    {
        return $this->xmlSerializer->serialize($data, $this->xmlStreamWriter, $tagName)
               ->asDOM();
    }
963445
public function label($id, $valAlias, $content = '')
    {
        $class = implode(' ', array(
            $this->_jbSrt($this->_type . '-lbl'),
            $this->_jbSrt('label-' . $valAlias),
        ));

        return '<label for="' . $id . '" class="' . $class . '">' . $content . '</label>';
    }