Double::renderControl: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\Double :: renderControl()
//  /dist/bitrix/modules/bizproc/lib/basetype/double.php:111

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

        if (
$renderMode FieldType::RENDER_MODE_PUBLIC)
        {
            
$renderResult '<input type="text" class="'.htmlspecialcharsbx($className)
                .
'" name="'.htmlspecialcharsbx($name).'" value="'.htmlspecialcharsbx((string) $value)
                .
'" placeholder="'.htmlspecialcharsbx($fieldType->getDescription()).'" value="'.htmlspecialcharsbx((string) $value).'"'
                
.($allowSelection ' data-role="inline-selector-target"' '')
                .
'/>';
        }
        else
        {
            
$renderResult '<input type="text" class="'.htmlspecialcharsbx($className)
                .
'" size="10" id="'.htmlspecialcharsbx($controlId).'" name="'
                
.htmlspecialcharsbx($name).'" value="'.htmlspecialcharsbx((string) $value).'"/>';
        }

        if (
$allowSelection && !($renderMode FieldType::RENDER_MODE_PUBLIC))
        {
            
$renderResult .= static::renderControlSelector($fieldnullfalse''$fieldType);
        }
        return 
$renderResult;
    }