1
0
mirror of synced 2025-01-18 22:41:43 +03:00

private -> protected

This commit is contained in:
zYne 2007-06-12 19:45:28 +00:00
parent 2ddfc0726a
commit ffdf6637e4

View File

@ -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();