Файл: concrete5.7.5.6/concrete/attributes/text/controller.php
Строк: 28
<?php
namespace ConcreteAttributeText;
use Loader;
use ConcreteCoreFoundationObject;
use ConcreteCoreAttributeDefaultController;
class Controller extends DefaultController {
protected $searchIndexFieldDefinition = array('type' => 'text', 'options' => array('length' => 4294967295, 'default' => null, 'notnull' => false));
public function form() {
if (is_object($this->attributeValue)) {
$value = Loader::helper('text')->entities($this->getAttributeValue()->getValue());
}
print Loader::helper('form')->text($this->field('value'), $value);
}
public function composer() {
if (is_object($this->attributeValue)) {
$value = Loader::helper('text')->entities($this->getAttributeValue()->getValue());
}
print Loader::helper('form')->text($this->field('value'), $value, array('class' => 'span5'));
}
}