From 69a97d13be3e155c992d595f3440a62451b64835 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 16 Nov 2006 13:25:45 +0000 Subject: [PATCH] Updated some doc blocks --- lib/Doctrine/Configurable.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Configurable.php b/lib/Doctrine/Configurable.php index 80ad06891..ac38c9add 100644 --- a/lib/Doctrine/Configurable.php +++ b/lib/Doctrine/Configurable.php @@ -42,11 +42,22 @@ abstract class Doctrine_Configurable { */ private $parent; /** + * setAttribute * sets a given attribute * + * + * $manager->setAttribute(Doctrine::ATTR_PORTABILITY, Doctrine::PORTABILITY_ALL); + * + * // or + * + * $manager->setAttribute('portability', Doctrine::PORTABILITY_ALL); + * + * + * @param mixed $attribute either a Doctrine::ATTR_* integer constant or a string + * corresponding to a constant + * @param mixed $value the value of the attribute + * @see Doctrine::ATTR_* constants * @throws Doctrine_Exception if the value is invalid - * @param integer $attribute - * @param mixed $value * @return void */ public function setAttribute($attribute,$value) {