Class QAPI

Description

Main class for API methods manipulation

Located in /QAPI.class.php (line 12)


	
			
Method Summary
string call (string $name)
bool register ([object|string|array $handler = null], [string $prefix = ''])
bool registerClass (string $className, [string $prefix = ''])
bool registerClasses ([string $prefix = ''])
bool registerFunction (string|array $funcName, [string $name = null])
bool registerMethod (object $object, string $methodName, [string $name = null])
bool registerObject (object $object, [string $prefix = ''])
bool registerObjects ([string $prefix = ''])
bool registerStatic (string $className, string $methodName, [string $name = null])
Methods
call (line 177)

Call registered method

string call (string $name)
  • string $name: API method name
register (line 155)

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)
registerClass (line 98)

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)
registerClasses (line 116)

Register classes that implement QAPI_Interface

bool registerClasses ([string $prefix = ''])
  • string $prefix: Prefix for object and class methods (use '$' to insert class name)
registerFunction (line 23)

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
registerMethod (line 47)

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
registerObject (line 78)

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)
registerObjects (line 135)

Register global objects that implement QAPI_Interface

bool registerObjects ([string $prefix = ''])
  • string $prefix: Prefix for object and class methods (use '$' to insert class name)
registerStatic (line 63)

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

Documentation generated on Tue, 04 Jan 2010 16:04:25 +0200 by phpDocumentor 1.4.3