Call registered method
string
call
(string $name)
-
string
$name: API method name
Auto-recognize and register API handler(s)
bool
register
([object|string|array $handler = null], [string $prefix = ''])
-
object|string|array
$handler: Object, class or callable to be registered
-
string
$prefix: Prefix for object and class methods (use '$' to insert class name)
Register class
bool
registerClass
(string $className, [string $prefix = ''])
-
string
$className: Class with static methods to be registered as API handlers
-
string
$prefix: Prefix for object and class methods (use '$' to insert class name)
Register classes that implement QAPI_Interface
bool
registerClasses
([string $prefix = ''])
-
string
$prefix: Prefix for object and class methods (use '$' to insert class name)
Register callable as API handler
bool
registerFunction
(string|array $funcName, [string $name = null])
-
string|array
$funcName: Callable API handler
-
string
$name: Name for API method
Register object method
bool
registerMethod
(object $object, string $methodName, [string $name = null])
-
object
$object: Object with method to be registered as API handler
-
string
$methodName: Name of method to be registered
-
string
$name: Name for API method
Register object
bool
registerObject
(object $object, [string $prefix = ''])
-
object
$object: Object with methods to be registered as API handlers
-
string
$prefix: Prefix for object and class methods (use '$' to insert class name)
Register global objects that implement QAPI_Interface
bool
registerObjects
([string $prefix = ''])
-
string
$prefix: Prefix for object and class methods (use '$' to insert class name)
Register class static method
bool
registerStatic
(string $className, string $methodName, [string $name = null])
-
string
$className: Class with static method to be registered as API handler
-
string
$methodName: Name of method to be registered
-
string
$name: Name for API method