コード例 #1
0
ファイル: element.php プロジェクト: fchaose/qeephp
 /**
  * 构造函数
  *
  * @param string $id
  * @param string $type
  * @param array $props
  * @param boolean $bind_enabled
  */
 function __construct($id, $type, array $props = null, $bind_enabled = true)
 {
     parent::__construct($id, $type, $props);
     $this->_bind_enabled = $bind_enabled;
 }
コード例 #2
0
ファイル: group.php プロジェクト: fchaose/qeephp
 /**
  * 构造函数
  *
  * @param string $id
  * @param string $label
  * @param array $props
  */
 function __construct($id, $label = '', array $props = null)
 {
     parent::__construct($id, 'group', $props);
     $this->_elements = new QColl('QForm_Item_Abstract');
     $this->set('label', !empty($label) ? $label : $id);
 }