Exemple #1
0
 public function __construct($fieldName, $fieldInfo, $value)
 {
     if (!class_exists($fieldInfo['model'])) {
         throw new \NotFoundException('`model` attribute not found');
     }
     parent::__construct($fieldName, $fieldInfo, $value);
 }
Exemple #2
0
 public function __construct($fieldName, $fieldInfo, $value)
 {
     parent::__construct($fieldName, $fieldInfo, boolval($value));
     if (empty($this->aValue)) {
         $this->aValue = false;
     }
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 /**
  * 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;
 }
Exemple #8
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->orderable(false);
 }
 public function __construct(AlterTable $table, $name, $type = null)
 {
     $this->table = $table;
     parent::__construct($name, $type);
 }
Exemple #10
0
 function __construct($name, $format = 2, $custom = "")
 {
     parent::__construct($name);
     $this->format = $format;
     $this->custom = $custom;
 }