Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enhancement: replaced privete with protected in order to have MySQLDa…

…tabase class extensible
  • Loading branch information...
commit 6618507823e5b1b10015608c2ed9d7337c116d75 1 parent 358988e
g4b0 authored g4b0 committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 model/MySQLDatabase.php
View
12 model/MySQLDatabase.php
@@ -12,19 +12,19 @@ class MySQLDatabase extends SS_Database {
* Connection to the DBMS.
* @var resource
*/
- private $dbConn;
+ protected $dbConn;
/**
* True if we are connected to a database.
* @var boolean
*/
- private $active;
+ protected $active;
/**
* The name of the database.
* @var string
*/
- private $database;
+ protected $database;
/**
* @config
@@ -32,7 +32,7 @@ class MySQLDatabase extends SS_Database {
*/
private static $connection_charset = null;
- private $supportsTransactions = true;
+ protected $supportsTransactions = true;
/**
* Sets the character set for the MySQL database connection.
@@ -1221,13 +1221,13 @@ class MySQLQuery extends SS_Query {
* The MySQLDatabase object that created this result set.
* @var MySQLDatabase
*/
- private $database;
+ protected $database;
/**
* The internal MySQL handle that points to the result set.
* @var resource
*/
- private $handle;
+ protected $handle;
/**
* Hook the result-set given into a Query class, suitable for use by SilverStripe.
Please sign in to comment.
Something went wrong with that request. Please try again.