web/lib/Zend/Tool/Project/Profile/Resource/Container.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Tool
    16  * @package    Zend_Tool
    17  * @subpackage Framework
    17  * @subpackage Framework
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Container.php 20851 2010-02-02 21:45:51Z ralph $
    20  * @version    $Id: Container.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @see Zend_Tool_Project_Profile_Resource_SearchConstraints
    24  * @see Zend_Tool_Project_Profile_Resource_SearchConstraints
    25  */
    25  */
    28 /**
    28 /**
    29  * This class is an iterator that will iterate only over enabled resources
    29  * This class is an iterator that will iterate only over enabled resources
    30  *
    30  *
    31  * @category   Zend
    31  * @category   Zend
    32  * @package    Zend_Tool
    32  * @package    Zend_Tool
    33  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    33  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    35  */
    35  */
    36 class Zend_Tool_Project_Profile_Resource_Container implements RecursiveIterator, Countable
    36 class Zend_Tool_Project_Profile_Resource_Container implements RecursiveIterator, Countable
    37 {
    37 {
    38 
    38 
    48 
    48 
    49     /**
    49     /**
    50      * @var bool
    50      * @var bool
    51      */
    51      */
    52     protected $_appendable = true;
    52     protected $_appendable = true;
    53     
    53 
    54     /**
    54     /**
    55      * @var array
    55      * @var array
    56      */
    56      */
    57     protected $_attributes = array();
    57     protected $_attributes = array();
    58 
    58 
   251      */
   251      */
   252     public function getAttribute($name)
   252     public function getAttribute($name)
   253     {
   253     {
   254         return (array_key_exists($name, $this->_attributes)) ? $this->_attributes[$name] : null;
   254         return (array_key_exists($name, $this->_attributes)) ? $this->_attributes[$name] : null;
   255     }
   255     }
   256     
   256 
   257     /**
   257     /**
   258      * hasAttribute()
   258      * hasAttribute()
   259      * 
   259      *
   260      * @param string $name
   260      * @param string $name
   261      * @return bool
   261      * @return bool
   262      */
   262      */
   263     public function hasAttribute($name)
   263     public function hasAttribute($name)
   264     {
   264     {