private function load() { $stmt = DatabaseConnection::sharedConnection()->statement('show columns from ' . $this->name); $stmt->exec(); while ($record = $stmt->fetchIndexedNextRow()) { $this->fields[] = $record[0]; } }
public function __construct() { $this->connection = DatabaseConnection::sharedConnection('127.0.0.1', 'ResourceManager', 'root', ''); }