From ffdf6637e4c0f7dac7a220aa00c14958a56bd797 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 12 Jun 2007 19:45:28 +0000 Subject: [PATCH] private -> protected --- lib/Doctrine/Configurable.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/Configurable.php b/lib/Doctrine/Configurable.php index 2d73e5446..6b1e77cec 100644 --- a/lib/Doctrine/Configurable.php +++ b/lib/Doctrine/Configurable.php @@ -33,15 +33,14 @@ */ abstract class Doctrine_Configurable { - /** * @var array $attributes an array of containing all attributes */ - private $attributes = array(); + protected $attributes = array(); /** * @var $parent the parents of this component */ - private $parent; + protected $parent; /** * setAttribute * sets a given attribute @@ -175,7 +174,7 @@ abstract class Doctrine_Configurable */ public function addListener($listener, $name = null) { - if ( ! isset($this->attributes[Doctrine::ATTR_LISTENER]) || + if ( ! isset($this->attributes[Doctrine::ATTR_LISTENER]) || ! ($this->attributes[Doctrine::ATTR_LISTENER] instanceof Doctrine_EventListener_Chain)) { $this->attributes[Doctrine::ATTR_LISTENER] = new Doctrine_EventListener_Chain();