Doctrine 1.2.4
Doctrine_Search_Listener Class Reference

Inherits Doctrine_Record_Listener.

Public Member Functions

 getOption ($name)
 
 getOptions ()
 
 setOption ($name, $value=null)
 

Detailed Description

Definition at line 33 of file Listener.php.

Member Function Documentation

Doctrine_Record_Listener::getOption (   $name)
inherited

getOption returns the value of given option

Parameters
string$namethe name of the option
Returns
mixed the value of given option

Definition at line 74 of file Listener.php.

{
if (isset($this->_options[$name])) {
return $this->_options[$name];
}
return null;
}
Doctrine_Record_Listener::getOptions ( )
inherited

getOptions returns all options of this template and the associated values

Returns
array all options and their values

Definition at line 62 of file Listener.php.

{
return $this->_options;
}
Doctrine_Record_Listener::setOption (   $name,
  $value = null 
)
inherited

setOption sets an option in order to allow flexible listener

Parameters
mixed$namethe name of the option to set
mixed$valuethe value of the option

Definition at line 47 of file Listener.php.

{
if (is_array($name)) {
$this->_options = Doctrine_Lib::arrayDeepMerge($this->_options, $name);
} else {
$this->_options[$name] = $value;
}
}

The documentation for this class was generated from the following file: