Can't overrwrite Callable in modern php
This commit is contained in:
parent
09f83d42ad
commit
4edd18227d
|
|
@ -218,7 +218,7 @@ abstract class HelpableSingleton {
|
||||||
return call_user_func_array(array($obj, $name), $args);
|
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);
|
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
|
* 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);
|
||||||
/*
|
/*
|
||||||
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));
|
throw new AppException('Unknown method '.$name.' in '.__CLASS__.', '.implode(', ',$arr));
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
*
|
*
|
||||||
* Database helper to give Models (or other classes) database capabilities
|
* 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 $db;
|
||||||
protected $qry;
|
protected $qry;
|
||||||
|
|
@ -646,4 +646,4 @@ class DbQueryHelper {
|
||||||
return $db->escapeString($param);
|
return $db->escapeString($param);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue