예제 #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);
 }