From 05fc10e717b45360b2c81ed699b8bf41c1ff882d Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Thu, 24 Feb 2011 22:42:15 -0300 Subject: [PATCH] Removed the Datasource::sources method that is used to PHP4. Changed the isInterfaceSupported to be case sensitive (PHP4 restriction). --- cake/libs/model/datasources/datasource.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/cake/libs/model/datasources/datasource.php b/cake/libs/model/datasources/datasource.php index 494ace324..c2bdfc018 100644 --- a/cake/libs/model/datasources/datasource.php +++ b/cake/libs/model/datasources/datasource.php @@ -119,19 +119,6 @@ class DataSource extends Object { return $this->_sources = $sources; } -/** - * Convenience method for DboSource::listSources(). Returns source names in lowercase. - * - * @param boolean $reset Whether or not the source list should be reset. - * @return array Array of sources available in this datasource - */ - public function sources($reset = false) { - if ($reset === true) { - $this->_sources = null; - } - return array_map('strtolower', $this->listSources()); - } - /** * Returns a Model description (metadata) or null if none found. * @@ -298,9 +285,9 @@ class DataSource extends Object { public function isInterfaceSupported($interface) { static $methods = false; if ($methods === false) { - $methods = array_map('strtolower', get_class_methods($this)); + $methods = get_class_methods($this); } - return in_array(strtolower($interface), $methods); + return in_array($interface, $methods); } /**