From 290bccedb47fee9706f0d17227ab596ebeee9ade Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Sat, 25 Aug 2018 23:19:26 +0200 Subject: [PATCH] Add missing method definitions --- lib/Cake/Model/Datasource/DboSource.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index cc59edbb3..8c2383849 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -272,6 +272,16 @@ class DboSource extends DataSource { } } +/** + * Connects to the database. + * + * @return bool + */ + public function connect() { + // This method is implemented in subclasses + return $this->connected; + } + /** * Reconnects to database server with optional new settings * @@ -619,6 +629,16 @@ class DboSource extends DataSource { } } +/** + * Builds a map of the columns contained in a result + * + * @param array|PDOStatement $results The results to format. + * @return void + */ + public function resultSet($results) { + // This method is implemented in subclasses + } + /** * Returns a row from current resultset as an array *