util 
[ doc home ] [ class tree: util ] [ index: util ] [ all elements ]

Class: IsterMethodCaller

Source Location: /IsterMethodCaller.php

Class Overview

IsterObject
   |
   --IsterMethodCaller

An object capable to register and invoke callback methods.


Author(s): Ingo Schramm   

Copyright: Copyright (c) 2005 Ister.ORG Ingo Schramm

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: IsterObject

IsterObject::IsterObject()
Constructor
IsterObject::abstractMethodError()
Report attempt to call an abstract method.
IsterObject::addLogger()
Add an IsterLogger to process log messages.
IsterObject::deleteLogger()
Delete an already registered IsterLogger.
IsterObject::getLoggerNames()
Fetch the names of all currently registered IsterLoggers.
IsterObject::getMem()
Return maximum amount of memory an application has allocated at this point.
IsterObject::log()
Trigger a log message.
IsterObject::passPHPmessage()
Catch PHP E_WARNING and E_NOTICE messages.
IsterObject::serialize()
Serialize the object.
IsterObject::setLogLocal()
Set logging local for the current object.
IsterObject::setupLogger()
Setup a logger.
IsterObject::triggerError()
Alias for log();
IsterObject::unserialize()
Unserialize the object.
IsterObject::__sleep()
Executed prior to serialize().
IsterObject::__wakeup()
Executed prior to unserialize().

Class Details

An object capable to register and invoke callback methods.

Note: Use of this class is depricated. Try IsterMethodProxy instead.


copyright:  Copyright (c) 2005 Ister.ORG Ingo Schramm
author:  Ingo Schramm
see:  IsterMethodProxy


[ Top ]


Class Methods


constructor IsterMethodCaller

IsterMethodCaller IsterMethodCaller( )

Constructor

[ Top ]

method callbackDefined

boolean callbackDefined( string $key)

Check whether a callback has been registered.

Parameters:

string   $key   Key (name) to call the method.

[ Top ]

method cloneCallbacks

boolean cloneCallbacks( IsterMethodCaller &$object)

Clone the registered methods of the given $object into $this.

Parameters:

IsterMethodCaller   $object  

[ Top ]

method getCallbacks

array getCallbacks( )

Fetch an array containing definitions of the registered callbacks.

[ Top ]

method invokeCallbackMethod

mixed invokeCallbackMethod( mixed $key, [array $params = array()])

Invoke a registered callback method.

return:  The value the callback returned.

Parameters:

mixed   $key   Key (name) to call the method.
array   $params   Array of parameters to pass to the method.

[ Top ]

method registerCallbackMethod

boolean registerCallbackMethod( string $keys, string $method, object Object $object)

Register a callback method.

Parameters:

string   $keys   Either key string or array of key strings to call the method.
string   $method   Name of the method to register.
object Object   $object   Owner object of the method (instance).

[ Top ]

method registerObject

boolean registerObject( object Object &$object, [string $prefix = 'f_'])

Register methods of an object instance.

Parameters:

object Object   &$object  
string   $prefix   Prefix of methods to register.

[ Top ]


Documentation generated on Tue, 20 Dec 2005 11:20:59 +0100 by phpDocumentor 1.3.0RC4