public function __construct($fieldName, $fieldInfo, $value) { if (!class_exists($fieldInfo['model'])) { throw new \NotFoundException('`model` attribute not found'); } parent::__construct($fieldName, $fieldInfo, $value); }
public function __construct($fieldName, $fieldInfo, $value) { parent::__construct($fieldName, $fieldInfo, boolval($value)); if (empty($this->aValue)) { $this->aValue = false; } }
public function __construct($fieldName, $fieldInfo, $value) { if (empty($value)) { if (!empty($_SERVER['REMOTE_ADDR'])) { $value = $_SERVER['REMOTE_ADDR']; } else { $value = '127.0.0.1'; } } if ($value == '::1') { $value = '127.0.0.1'; } parent::__construct($fieldName, $fieldInfo, $value); }
/** * Constructor * * @param CreateTable $table * @param string $name * @param string $type */ public function __construct(CreateTable $table, $name, $type) { $this->table = $table; parent::__construct($name, $type); }
function __construct($name, $text) { parent::__construct($name); $this->text = $text; }
public function __construct() { parent::__construct(); $this->setOrderable(false); $this->setAttribute('class', 'row-control'); }
function __construct($name, $callable) { parent::__construct($name); $this->callable = $callable; }
/** * */ function __construct() { parent::__construct(); $this->orderable(false); }
public function __construct(AlterTable $table, $name, $type = null) { $this->table = $table; parent::__construct($name, $type); }
function __construct($name, $format = 2, $custom = "") { parent::__construct($name); $this->format = $format; $this->custom = $custom; }