コード例 #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
ファイル: Integer.php プロジェクト: bersace/strass
 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;
 }