Esempio n. 1
0
 /**
  * create new Recordset
  *
  * @param string $field ชื่อของ Field
  */
 public function __construct($field)
 {
     $this->field = new $field();
     parent::__construct($this->field->getConn());
     $this->sqls = array();
     $this->values = array();
     $this->field->initTableName($this->db);
     if (method_exists($this->field, 'getConfig')) {
         $result = $this->field->getConfig();
         foreach ($result as $key => $value) {
             $this->queryBuilder($key, $value);
         }
     }
 }
Esempio n. 2
0
 /**
  * Class constructor
  */
 public function __construct()
 {
     parent::__construct($this->conn);
 }