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