1
0
mirror of synced 2024-12-14 07:06:04 +03:00

updated doc blocks

This commit is contained in:
zYne 2007-05-21 20:36:07 +00:00
parent ad0c3e2c68
commit a7d1d643f0

View File

@ -492,7 +492,16 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
{ {
return $this->repository; return $this->repository;
} }
/**
* setOption
* sets an option and returns this object in order to
* allow flexible method chaining
*
* @see Doctrine_Table::$_options for available options
* @param string $name the name of the option to set
* @param mixed $value the value of the option
* @return Doctrine_Table this object
*/
public function setOption($name, $value) public function setOption($name, $value)
{ {
switch ($name) { switch ($name) {
@ -510,6 +519,13 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
} }
$this->options[$name] = $value; $this->options[$name] = $value;
} }
/**
* getOption
* returns the value of given option
*
* @param string $name the name of the option
* @return mixed the value of given option
*/
public function getOption($name) public function getOption($name)
{ {
if (isset($this->options[$name])) { if (isset($this->options[$name])) {