コード例 #1
0
ファイル: HasOne.php プロジェクト: gudwin/extasy
 public function __construct($fieldName, $fieldInfo, $value)
 {
     if (!class_exists($fieldInfo['model'])) {
         throw new \NotFoundException('`model` attribute not found');
     }
     parent::__construct($fieldName, $fieldInfo, $value);
 }
コード例 #2
0
ファイル: Boolean.php プロジェクト: gudwin/extasy
 public function __construct($fieldName, $fieldInfo, $value)
 {
     parent::__construct($fieldName, $fieldInfo, boolval($value));
     if (empty($this->aValue)) {
         $this->aValue = false;
     }
 }
コード例 #3
0
ファイル: IP.php プロジェクト: gudwin/extasy
 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);
 }
コード例 #4
0
ファイル: CreateColumn.php プロジェクト: opis/database
 /**
  * Constructor
  * 
  * @param   CreateTable $table
  * @param   string      $name
  * @param   string      $type
  */
 public function __construct(CreateTable $table, $name, $type)
 {
     $this->table = $table;
     parent::__construct($name, $type);
 }
コード例 #5
0
 function __construct($name, $text)
 {
     parent::__construct($name);
     $this->text = $text;
 }
コード例 #6
0
 public function __construct()
 {
     parent::__construct();
     $this->setOrderable(false);
     $this->setAttribute('class', 'row-control');
 }
コード例 #7
0
 function __construct($name, $callable)
 {
     parent::__construct($name);
     $this->callable = $callable;
 }
コード例 #8
0
ファイル: Control.php プロジェクト: argentum88/phad
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->orderable(false);
 }
コード例 #9
0
ファイル: AlterColumn.php プロジェクト: Textalk/opis-database
 public function __construct(AlterTable $table, $name, $type = null)
 {
     $this->table = $table;
     parent::__construct($name, $type);
 }
コード例 #10
0
ファイル: DateColumn.php プロジェクト: summer11123/Datatable
 function __construct($name, $format = 2, $custom = "")
 {
     parent::__construct($name);
     $this->format = $format;
     $this->custom = $custom;
 }