Text :: renderControl: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\Text :: renderControl()
//  /dist/bitrix/modules/bizproc/lib/basetype/text.php:28

    
protected static function renderControl(FieldType $fieldType, array $field$value$allowSelection$renderMode)
    {
        
$name = static::generateControlName($field);
        
$controlId = static::generateControlId($field);
        
$className = static::generateControlClassName($fieldType$field);

        
$ispublic = ($renderMode FieldType::RENDER_MODE_PUBLIC);

        
$renderResult =  '<textarea id="'.htmlspecialcharsbx($controlId).'" class="'
            
.htmlspecialcharsbx($className).'" placeholder="'.htmlspecialcharsbx($fieldType->getDescription()).'"'
            
.' rows="5" cols="40"  name="'.htmlspecialcharsbx($name).'"'
            
.($ispublic && $allowSelection ' data-role="inline-selector-target"' '')
            .
'>'.htmlspecialcharsbx((string) $value).'</textarea>';

        if (
$allowSelection && !$isPublic)
        {
            
$renderResult .= static::renderControlSelector($fieldnullfalse''$fieldType);
        }

        return 
$renderResult;
    }