CustomMethods
trait CustomMethods (View source)
Allows an object to declare a set of custom methods
Methods
Attempts to locate and call a method dynamically added to a class at runtime if a default cannot be located
Return TRUE if a method exists on this object
Return the names of all the methods available on this object
Details
mixed
__call(string $method, array $arguments)
Attempts to locate and call a method dynamically added to a class at runtime if a default cannot be located
You can add extra methods to a class using {@link Extensions}, {@link Object::createMethod()} or {@link Object::addWrapperMethod()}
bool
hasMethod(string $method)
Return TRUE if a method exists on this object
This should be used rather than PHP's inbuild method_exists() as it takes into account methods added via extensions
array
allMethodNames(bool $custom = false)
Return the names of all the methods available on this object