Function xc_is_callable
Equals is_callable() but also supports Core class extensions.
The support for attached methods requires Core\Object
to
implement __call()
, hence is_callable() always returns true
for objects of classes inherited from Core\Object
with any
method name. To circumvent this problem, this function checks whether
__call()
is implemented by a descendant of Object, and if not
tests whether a method of the tested name has been attached to the class.
Since:
3.1
Located at Boot.inc.php
Located at Boot.inc.php
Parameters summary
mixed |
$callback |
Name of method to test for. |
boolean |
$syntaxOnly = false |
<p>Test is based on syntax only, without actually testing an existing object.</p> |
string |
& $callableName = null |
Output of resolved name of callable method. |
Return value summary
boolean
|
true , if provided argument is callable, otherwise false .
|