diff --git a/lib/class/helpable.php b/lib/class/helpable.php index 2a6b71c..2711cfe 100644 --- a/lib/class/helpable.php +++ b/lib/class/helpable.php @@ -218,7 +218,7 @@ abstract class HelpableSingleton { return call_user_func_array(array($obj, $name), $args); } } - if (is_a($obj, 'Callable')) { + if (is_a($obj, 'Callable2')) { return call_user_func_array(array($obj, $name), $args); } } @@ -231,7 +231,7 @@ abstract class HelpableSingleton { * * class implementing this will be able to send calls to other nested classes */ -interface Callable { +interface Callable2 { public function __call($name, $args); /* public function __call($name, $args) { @@ -244,4 +244,4 @@ interface Callable { throw new AppException('Unknown method '.$name.' in '.__CLASS__.', '.implode(', ',$arr)); } */ -} \ No newline at end of file +} diff --git a/lib/helper/db.php b/lib/helper/db.php index f323891..b5f5da5 100644 --- a/lib/helper/db.php +++ b/lib/helper/db.php @@ -14,7 +14,7 @@ * * Database helper to give Models (or other classes) database capabilities */ -class DbHelper extends Helper implements Callable { +class DbHelper extends Helper implements Callable2 { protected $db; protected $qry; @@ -646,4 +646,4 @@ class DbQueryHelper { return $db->escapeString($param); } -} \ No newline at end of file +}