コード例 #1
0
ファイル: PrimaryKeyField.php プロジェクト: kalaomer/kahire
 /**
  * PrimaryKeyField constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->min(1)->readOnly(true)->required(false);
 }
コード例 #2
0
ファイル: Field.php プロジェクト: ricobl/frix
	function __construct ($name, $options = array()) {
		
		// Force some properties
		$options['null'] = false;
		$options['editable'] = false;
		
		// Call the default constructor
		parent::__construct($name, $options);
		
	}