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

Class: IsterMethodProxyRegister

Source Location: /IsterMethodProxyRegister.php

Class Overview

IsterObject
   |
   --IsterMethodProxyRegister

This class represents a register of objects.


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

This class represents a register of objects.

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


[ Top ]


Class Methods


constructor IsterMethodProxyRegister

IsterMethodProxyRegister IsterMethodProxyRegister( )

Constructor

[ Top ]

method addInstance

boolean addInstance( object &$instance, string $methodname)

Add an instance to the register.

Always refrences to instances are stored. If more than one instance are registered with the same method, these instances will be added to an IsterQueueFIFO.


Parameters:

object   &$instance  
string   $methodname  

[ Top ]

method free

boolean free( )

Free this object.

[ Top ]

method getNextInstance

object &getNextInstance( string $methodname, [string $class = null])

Return next instance with a specified method defined.

The method returns null if no instance is left, false on error. If a class name is specified via $class, only instances of that class are returned.

Note: You must not forget to write the '&' sign when fetching instances:

  1. $instance =& $register->getNextInstance('method');


Parameters:

string   $methodname  
string   $class  

[ Top ]

method reset

boolean reset( string $methodname)

Reset a queue for a given method.

Parameters:

string   $methodname  

[ Top ]


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