Ejemplo n.º 1
0
 /**
  * @param string $type
  * @param bool $writable
  */
 public function __construct($type = null, $writable = false)
 {
     $this->writable = $writable;
     $this->type = $type ? $type : 'default';
     $this->adapter = waDbConnector::getConnection($this->type, $this->writable);
     if ($this->table && !$this->fields) {
         $this->getMetadata();
     }
 }