31 $isPublic = ($renderMode & FieldType::RENDER_MODE_PUBLIC);
33 if ($allowSelection && !$isPublic)
35 return static::renderControlSelector($field, $value,
'combine',
'', $fieldType);
38 $name = static::generateControlName($field);
39 $controlId = static::generateControlId($field);
40 $className = static::generateControlClassName($fieldType, $field);
42 $selectorAttributes =
'';
43 if ($isPublic && $allowSelection)
45 $selectorAttributes = sprintf(
46 'data-role="inline-selector-target" data-property="%s" ',
47 htmlspecialcharsbx(Main\Web\Json::encode($fieldType->
getProperty()))
52 '<textarea id="%s" class="%s" placeholder="%s" rows="5" cols="40" name="%s" %s>%s</textarea>',
53 htmlspecialcharsbx($controlId),
54 htmlspecialcharsbx($className),
56 htmlspecialcharsbx($name),
58 htmlspecialcharsbx((
string)$value)