class Doctrine_Record_Listener_Chain extends Doctrine_Access implements Doctrine_Record_Listener_Interface (View source)

Doctrine_Record_Listener_Chain this class represents a chain of different listeners, useful for having multiple listeners listening the events at the same time

Properties

protected Doctrine_Locator $_locator from Doctrine_Locator_Injectable
protected array $_resources from Doctrine_Locator_Injectable
static protected Doctrine_Null $_null from Doctrine_Locator_Injectable
protected array $_listeners
protected array $_options

Methods

setLocator(Doctrine_Locator $locator)

setLocator this method can be used for setting the locator object locally

getLocator()

getLocator returns the locator associated with this object

mixed
locate(string $name)

locate locates a resource by given name and returns it

bind($name, $resource)

bind binds a resource to a name

static void
initNullObject(Doctrine_Null $null)

initNullObject initializes the null object

static Doctrine_Null
getNullObject()

getNullObject returns the null object associated with this object

setArray(array $array)

Set an entire aray to the data

void
__set($name, $value)

Set key and value to data

mixed
__get(mixed $name)

Get key from data

boolean
__isset(string $name)

Check if key exists in data

void
__unset(string $name)

Remove key from data

boolean
offsetExists(mixed $offset)

Check if an offset axists

mixed
offsetGet(mixed $offset)

An alias of get()

void
offsetSet(mixed $offset, mixed $value)

Sets $offset to $value

offsetUnset(mixed $offset)

Unset a given offset

boolean
remove(mixed $offset)

Remove the element with the specified offset

mixed
get(mixed $key)

returns a Doctrine_Record_Listener on success and null on failure

set(mixed $key, Doctrine_Record_Listener $listener)

set

boolean
contains(mixed $offset)

Check if the specified offset exists

void
add(object $listener, string $name = null)

add adds a listener to the chain of listeners

setOption($name, $value = null)

setOption sets an option in order to allow flexible listener chaining

getOption($name)

getOption returns the value of given option

getOptions()

Get array of configured options

preSerialize(Doctrine_Event $event)

No description

postSerialize(Doctrine_Event $event)

No description

preUnserialize(Doctrine_Event $event)

No description

postUnserialize(Doctrine_Event $event)

No description

preDqlSelect(Doctrine_Event $event)

No description

preSave(Doctrine_Event $event)

No description

postSave(Doctrine_Event $event)

No description

preDqlDelete(Doctrine_Event $event)

No description

preDelete(Doctrine_Event $event)

No description

postDelete(Doctrine_Event $event)

No description

preDqlUpdate(Doctrine_Event $event)

No description

preUpdate(Doctrine_Event $event)

No description

postUpdate(Doctrine_Event $event)

No description

preInsert(Doctrine_Event $event)

No description

postInsert(Doctrine_Event $event)

No description

preHydrate(Doctrine_Event $event)

No description

postHydrate(Doctrine_Event $event)

No description

preValidate(Doctrine_Event $event)

No description

postValidate(Doctrine_Event $event)

No description

Details

Doctrine_Locator_Injectable setLocator(Doctrine_Locator $locator)

setLocator this method can be used for setting the locator object locally

Parameters

Doctrine_Locator $locator the locator object

Return Value

Doctrine_Locator_Injectable this instance

Doctrine_Locator getLocator()

getLocator returns the locator associated with this object

if there are no locator locally associated then this method tries to fetch the current global locator

Return Value

Doctrine_Locator

mixed locate(string $name)

locate locates a resource by given name and returns it

if the resource cannot be found locally this method tries to use the global locator for finding the resource

Parameters

string $name the name of the resource

Return Value

mixed the located resource

Exceptions

Doctrine_Locator_Exception if the resource could not be found

See also

Doctrine_Locator::locate

Doctrine_Locator bind($name, $resource)

bind binds a resource to a name

Parameters

$name
$resource

Return Value

Doctrine_Locator this object

static void initNullObject(Doctrine_Null $null)

initNullObject initializes the null object

Parameters

Doctrine_Null $null

Return Value

void

static Doctrine_Null getNullObject()

getNullObject returns the null object associated with this object

Return Value

Doctrine_Null

Doctrine_Access setArray(array $array)

Set an entire aray to the data

Parameters

array $array An array of key => value pairs

Return Value

Doctrine_Access

void __set($name, $value)

Set key and value to data

Parameters

$name
$value

Return Value

void

See also

set, offsetSet

mixed __get(mixed $name)

Get key from data

Parameters

mixed $name

Return Value

mixed

See also

get, offsetGet

boolean __isset(string $name)

Check if key exists in data

Parameters

string $name

Return Value

boolean whether or not this object contains $name

void __unset(string $name)

Remove key from data

Parameters

string $name

Return Value

void

boolean offsetExists(mixed $offset)

Check if an offset axists

Parameters

mixed $offset

Return Value

boolean Whether or not this object contains $offset

mixed offsetGet(mixed $offset)

An alias of get()

Parameters

mixed $offset

Return Value

mixed

See also

get, __get

void offsetSet(mixed $offset, mixed $value)

Sets $offset to $value

Parameters

mixed $offset
mixed $value

Return Value

void

See also

set, __set

offsetUnset(mixed $offset)

Unset a given offset

Parameters

mixed $offset

See also

set, offsetSet, __set

boolean remove(mixed $offset)

Remove the element with the specified offset

Parameters

mixed $offset The offset to remove

Return Value

boolean True if removed otherwise false

mixed get(mixed $key)

returns a Doctrine_Record_Listener on success and null on failure

Parameters

mixed $key

Return Value

mixed

set(mixed $key, Doctrine_Record_Listener $listener)

set

Parameters

mixed $key
Doctrine_Record_Listener $listener listener to be added

boolean contains(mixed $offset)

Check if the specified offset exists

Parameters

mixed $offset The offset to check

Return Value

boolean True if exists otherwise false

void add(object $listener, string $name = null)

add adds a listener to the chain of listeners

Parameters

object $listener
string $name

Return Value

void

setOption($name, $value = null)

setOption sets an option in order to allow flexible listener chaining

Parameters

$name
$value

getOption($name)

getOption returns the value of given option

Parameters

$name

getOptions()

Get array of configured options

preSerialize(Doctrine_Event $event)

Parameters

Doctrine_Event $event

postSerialize(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preUnserialize(Doctrine_Event $event)

Parameters

Doctrine_Event $event

postUnserialize(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preDqlSelect(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preSave(Doctrine_Event $event)

Parameters

Doctrine_Event $event

postSave(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preDqlDelete(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preDelete(Doctrine_Event $event)

Parameters

Doctrine_Event $event

postDelete(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preDqlUpdate(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preUpdate(Doctrine_Event $event)

Parameters

Doctrine_Event $event

postUpdate(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preInsert(Doctrine_Event $event)

Parameters

Doctrine_Event $event

postInsert(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preHydrate(Doctrine_Event $event)

Parameters

Doctrine_Event $event

postHydrate(Doctrine_Event $event)

Parameters

Doctrine_Event $event

preValidate(Doctrine_Event $event)

Parameters

Doctrine_Event $event

postValidate(Doctrine_Event $event)

Parameters

Doctrine_Event $event