示例#1
0
文件: File.php 项目: bersace/strass
 function __construct($path, $label, $value = NULL)
 {
     parent::__construct($path, $label);
     if ($value) {
         $this->retrieve($value);
     }
 }
示例#2
0
文件: Group.php 项目: bersace/strass
 function __construct($path, $label = NULL)
 {
     parent::__construct($path, $label, array());
 }
示例#3
0
文件: Enum.php 项目: bersace/strass
 /**
  *
  * @param string	Pathname
  * @param string	Descriptive label
  * @param string	Default value
  * @param array	Values => Label array
  * @param boolean	Wether to allow multiple selection
  */
 function __construct($path, $label, $value = null, $enum = array(), $multiple = FALSE)
 {
     parent::__construct($path, $label, $value);
     $this->enum = $enum;
     $this->multiple = $multiple;
 }
示例#4
0
文件: Bool.php 项目: bersace/strass
 function __construct($path, $label, $value = FALSE)
 {
     parent::__construct($path, $label, $value);
 }
示例#5
0
文件: String.php 项目: bersace/strass
 function __construct($path, $label, $value = '', $readonly = false)
 {
     parent::__construct($path, $label, $value, $readonly);
 }
示例#6
0
 function __construct($path, $label, $value, $min = 0, $max = PHP_INT_MAX)
 {
     parent::__construct($path, $label, $value);
 }
示例#7
0
文件: Date.php 项目: bersace/strass
 /**
  * @param value	Date au format SQL.
  */
 function __construct($path, $label, $value = NULL, $format = '%Y-%m-%d')
 {
     parent::__construct($path, $label, $value);
     $this->format = $format;
 }