Renders the opening tag of the field container.

@return string the rendering result.
353601
public function begin()
    {
        $this->form->beforeFieldRender($this);

        $inputID = $this->getInputId();
        $attribute = Html::getAttributeName($this->attribute);
        $options = $this->options;
        $class = isset($options['class']) ? (array) $options['class'] : [];
        $class[] = "field-$inputID";
        if ($this->model->isAttributeRequired($attribute)) {
            $class[] = $this->form->requiredCssClass;
        }
        $options['class'] = implode(' ', $class);
        if ($this->form->validationStateOn === ActiveForm::VALIDATION_STATE_ON_CONTAINER) {
            $this->addErrorClassIfNeeded($options);
        }
        $tag = ArrayHelper::remove($options, 'tag', 'div');

        return Html::beginTag($tag, $options);
    }
981753
public function render()
	{
		return 
			$this->tagCharset().
			$this->tagTitle().
			$this->tagDescription().
			$this->tagMeta().
			$this->tagLink().
			$this->tagScript().
			$this->tagMisc();
	}
727574
public function render()
    {
        if (empty($this->tagName)) {
            return '';
        }
        $output = '<' . $this->tagName;
        foreach ($this->attributes as $attributeName => $attributeValue) {
            $output .= ' ' . $attributeName . '="' . $attributeValue . '"';
        }
        if ($this->hasContent() || $this->forceClosingTag) {
            $output .= '>' . $this->content . '</' . $this->tagName . '>';
        } else {
            $output .= ' />';
        }
        return $output;
    }
592036
protected function outputOpeningTag()
    {
        echo '<', htmlspecialchars($this->_tag);
        foreach ($this->_attributes as $name => $value) {
            echo ' ', htmlspecialchars($name), '="', htmlspecialchars($value), '"';
        }
        echo '>';
        if ($this->_tag == 'html' || $this->_tag == 'head' || $this->_tag == 'body') {
            echo "\n";
        }
    }
943787
public function render()
    {
        $results = '';

        foreach ($this->getParser()->toArray() as $name => $types) {
            $results .= $this->getStub($this->getFieldType($types), $name).PHP_EOL;
        }

        return $results;
    }
694169
public function render()
    {
        if (!$this->checkAnsiAwareSystem()) {
            return $this->str;
        }

        if ($this->has_tags) {
            return $this->tag_format->parse($this->str);
        } elseif (!empty($this->str)) {
            $this->output->useEffect($this->format);
            return $this->output->build();
        }

        return $this->str;
    }
1102196
public function show()
    {
        $out = '';
        foreach ($this->fields as $attrib) {
            $out .= self::tag($this->tagname, array('type' => $this->type) + $attrib);
        }

        return $out;
    }
1189307
public function render()
    {
        $output[] = $this->open();

        if ($this->subText instanceof Element) {
            $this->header->childNodes->push($this->subText);
        }

        $output[] = $this->header;
        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }
275029
public function render(): string
    {
        $elementKey = $this->arguments['elementKey'];
        $fieldKey = $this->arguments['fieldKey'];
        $field = $this->arguments['field'];
        $table = $this->arguments['table'];

        $this->fieldHelper = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('MASK\\Mask\\Helper\\FieldHelper');
        // if we have the whole field configuration
        if ($field) {
            // check if this field is in an repeating field
            if ($field["inlineParent"]) {
                // if yes, the label is in the configuration
                $label = $field["label"];
            } else {
                // otherwise the type can only be tt_content or pages
                if ($table) {
                    // if we have table param, the type must be the table
                    $type = $table;
                } else {
                    // otherwise try to get the label, set param $excludeInlineFields to true
                    $type = $this->fieldHelper->getFieldType($fieldKey, $elementKey, true);
                }
                $label = $this->fieldHelper->getLabel($elementKey, $fieldKey, $type);
            }
        } else {
            // if we don't have the field configuration, try the best to fetch the type and the correct label
            $type = $this->fieldHelper->getFieldType($fieldKey, $elementKey, false);
            $label = $this->fieldHelper->getLabel($elementKey, $fieldKey, $type);
        }
        return $label;
    }
554682
public function render()
    {
        $selfClosingTags = [
            'area',
            'base',
            'br',
            'col',
            'command',
            'embed',
            'hr',
            'img',
            'input',
            'keygen',
            'link',
            'meta',
            'param',
            'source',
            'track',
            'wbr',
        ];

        if (in_array($this->tagName, $selfClosingTags)) {
            $attr = $this->attributes;
            unset($attr[ 'realpath' ]);

            if ($this->hasAttributes()) {
                return '<' . $this->tagName . ' ' . trim($this->attributes->__toString()) . '>';
            }

            return '<' . $this->tagName . '>';
        } else {
            $output[] = $this->open();

            if ($this->hasTextContent()) {
                $output[] = PHP_EOL . implode('', $this->textContent->getArrayCopy()) . PHP_EOL;
            }

            if ($this->hasChildNodes()) {
                if ( ! $this->hasTextContent()) {
                    $output[] = PHP_EOL;
                }

                foreach ($this->childNodes as $childNode) {
                    $output[] = $childNode . PHP_EOL;
                }
            }
        }

        $output[] = $this->close();

        return implode('', $output);
    }
820002
public function renderBegin()
	{
		if($this->getParent() instanceof self)
			return '';
		else
		{
			$options=$this->activeForm;
			if(isset($options['class']))
			{
				$class=$options['class'];
				unset($options['class']);
			}
			else
				$class='CActiveForm';
			$options['action']=$this->action;
			$options['method']=$this->method;
			if(isset($options['htmlOptions']))
			{
				foreach($this->attributes as $name=>$value)
					$options['htmlOptions'][$name]=$value;
			}
			else
				$options['htmlOptions']=$this->attributes;
			ob_start();
			$this->_activeForm=$this->getOwner()->beginWidget($class, $options);
			return ob_get_clean() . "<div style=\"display:none\">".CHtml::hiddenField($this->getUniqueID(),1)."</div>\n";
		}
	}
1254223
public function render()
    {
        $key = $this->arguments['key'];
        $elementKey = $this->arguments['elementKey'];

        $this->fieldHelper = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('MASK\\Mask\\Helper\\FieldHelper');
        $type = $this->fieldHelper->getFieldType($key, $elementKey);

        return $this->fieldHelper->getElementsWhichUseField($key, $type);
    }
1241122
public function render()
    {
        $nameAttribute = $this->getName();
        $this->registerFieldNameForFormTokenGeneration($nameAttribute);

        $output = '';
        $resource = $this->getUploadedResource();
        if ($resource !== null) {
            $resourceIdentityAttribute = '';
            if ($this->hasArgument('id')) {
                $resourceIdentityAttribute = ' id="' . htmlspecialchars($this->arguments['id']) . '-resource-identity"';
            }
            $output .= '<input type="hidden" name="'. htmlspecialchars($nameAttribute) . '[originallySubmittedResource][__identity]" value="' . $this->persistenceManager->getIdentifierByObject($resource) . '"' . $resourceIdentityAttribute . ' />';
        }

        if ($this->hasArgument('collection') && $this->arguments['collection'] !== false && $this->arguments['collection'] !== '') {
            $output .= '<input type="hidden" name="'. htmlspecialchars($nameAttribute) . '[__collectionName]" value="' . htmlspecialchars($this->arguments['collection']) . '" />';
        }

        $this->tag->addAttribute('type', 'file');
        $this->tag->addAttribute('name', $nameAttribute);

        $this->addAdditionalIdentityPropertiesIfNeeded();
        $this->setErrorClassAttribute();

        $output .= $this->tag->render();
        return $output;
    }
1257759
public function render()
    {
        $field = $this->getParameter('field');

        $mode = $this->getParameter('mode');
        $mode = $mode == null ? 'list' : $mode;

        $css = $this->getParameter('css');

        $prefix = $this->getParameter('prefix');
        $prefix = $prefix == null ? '' : $prefix;

        $postfix = $this->getParameter('postfix');
        $postfix = $postfix == null ? '' : $postfix;

        $errors = $this->getGlobal('Errors'); //array of FieldValidationError or ValidationError


        if(empty($errors)) return '';


        if(empty($field)) {

            $s = '';

            if($mode == 'list') {
                $s = "<ul";
                if(!empty($css))
                    $s .= " class=\"{$css}\"";
                $s .= ">\n";
            }

            $cnt = 0;
            foreach($errors as $error) {
                if(!($error instanceof ValidationError)) continue;

                $msg = $this->errorCodeResolver->resolveMessageCode(
                    $error->getErrorCode(),
                    null,
                    null,
                    null,
                    $error->getDefaultErrorMessage());

                if($mode == 'br')
                    $s .= "{$prefix}{$msg}{$postfix}<br/>\n";
                else if($mode == 'list')
                    $s .= "<li>{$prefix}{$msg}{$postfix}</li>\n";
                $cnt++;
            }

            //none of the errors were global errors, try specifying the 'field' parameter
            if($cnt == 0)
                return '';

            if($mode == 'list')
                $s .= "</ul>\n";

            return $s;

        } else {

            foreach($errors as $error) {
                if(!($error instanceof FieldValidationError)) continue;

                if($field == $error->getFailureCode()) {

                    $msg = $this->errorCodeResolver->resolveMessageCode(
                        $error->getFailureCode(),
                        $error->getFieldResolved(),
                        $error->getFieldType(),
                        array(
                            $error->getFieldTitle(),
                            $error->getValue(),
                            $error->getFieldType()
                        ),
                        $error->getDefaultErrorMessage());

                    if(!empty($css))
                        return "<span class=\"{$css}\">{$msg}</span>";

                    return $msg;
                }
            }

        }

        return '';
    }
299550
public function render()
    {
        $output[] = $this->open();

        if ($this->title instanceof Element) {
            $this->title->attributes->addAttributeClass('card-title');
            $output[] = $this->title;
        }

        if ($this->subTitle instanceof Element) {
            $this->subTitle->attributes->addAttributeClass('card-subtitle');
            $output[] = $this->subTitle;
        }

        if ($this->paragraphs instanceof ArrayIterator) {
            if ($this->paragraphs->count()) {
                foreach ($this->paragraphs as $paragraph) {
                    $paragraph->attributes->addAttributeClass('card-text');
                    $output[] = $paragraph;
                }
            }
        }

        if ($this->hasTextContent()) {
            $output[] = implode('', $this->textContent);
        }

        if ($this->hasChildNodes()) {
            $output[] = implode(PHP_EOL, $this->childNodes);
        }

        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }
1106762
public function render() {
        $rendered = '';
        foreach ($this->elements as $element) {
            if (!method_exists($this, 'openTag')) {
                $element->name = $this->multiple ?
                        $element->name . '[]' :
                        $this->getName() . '[' . $element->name . ']';

                $element->parent = $this->getName();
            }
            $rendered .= $element->render();
        }
        return $rendered;
    }
1116158
public function getOpeningTag(): string
    {
        $attributes = [];

        foreach ($this->attributes as $name => $value) {
            $attributes[] = self::getHtmlAttribute($name, $value);
        }

        $attributes = implode(' ', array_filter($attributes));

        return sprintf('<%s%s>', $this->nodeName, $attributes === '' ? '' : " {$attributes}");
    }