~ubuntu-branches/ubuntu/vivid/zendframework/vivid

« back to all changes in this revision

Viewing changes to library/Zend/Tool/Project/Profile/Resource/Container.php

  • Committer: Bazaar Package Importer
  • Author(s): Frank Habermann
  • Date: 2010-04-28 20:10:00 UTC
  • mfrom: (1.3.1 upstream) (9.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100428201000-o347bj5qb5i3tpot
Tags: 1.10.4-1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * @subpackage Framework
18
18
 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19
19
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20
 
 * @version    $Id: Container.php 20096 2010-01-06 02:05:09Z bkarwin $
 
20
 * @version    $Id: Container.php 20967 2010-02-07 18:17:49Z ralph $
21
21
 */
22
22
 
23
23
/**
50
50
     * @var bool
51
51
     */
52
52
    protected $_appendable = true;
 
53
    
 
54
    /**
 
55
     * @var array
 
56
     */
 
57
    protected $_attributes = array();
53
58
 
54
59
    /**
55
60
     * Finder method to be able to find resources by context name
248
253
    {
249
254
        return (array_key_exists($name, $this->_attributes)) ? $this->_attributes[$name] : null;
250
255
    }
 
256
    
 
257
    /**
 
258
     * hasAttribute()
 
259
     * 
 
260
     * @param string $name
 
261
     * @return bool
 
262
     */
 
263
    public function hasAttribute($name)
 
264
    {
 
265
        return array_key_exists($name, $this->_attributes);
 
266
    }
251
267
 
252
268
    /**
253
269
     * setAppendable()