import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Resource.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Resource.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -32,7 +32,7 @@ require_once 'Zend/Tool/Project/Context/Repository.php';
|
||||
|
||||
/**
|
||||
* This class is an iterator that will iterate only over enabled resources
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -40,12 +40,12 @@ require_once 'Zend/Tool/Project/Context/Repository.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Profile_Resource extends Zend_Tool_Project_Profile_Resource_Container
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Project_Profile
|
||||
*/
|
||||
protected $_profile = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Project_Profile_Resource
|
||||
*/
|
||||
@ -107,7 +107,7 @@ class Zend_Tool_Project_Profile_Resource extends Zend_Tool_Project_Profile_Resou
|
||||
|
||||
/**
|
||||
* getName() - Get the resource name
|
||||
*
|
||||
*
|
||||
* Name is derived from the context name
|
||||
*
|
||||
* @return string
|
||||
@ -164,7 +164,7 @@ class Zend_Tool_Project_Profile_Resource extends Zend_Tool_Project_Profile_Resou
|
||||
*
|
||||
* @param bool $enabled
|
||||
* @return Zend_Tool_Project_Profile_Resource
|
||||
*/
|
||||
*/
|
||||
public function setEnabled($enabled = true)
|
||||
{
|
||||
// convert fuzzy types to bool
|
||||
@ -203,7 +203,7 @@ class Zend_Tool_Project_Profile_Resource extends Zend_Tool_Project_Profile_Resou
|
||||
{
|
||||
return $this->_deleted;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* initializeContext()
|
||||
*
|
||||
@ -217,15 +217,15 @@ class Zend_Tool_Project_Profile_Resource extends Zend_Tool_Project_Profile_Resou
|
||||
if (is_string($this->_context)) {
|
||||
$this->_context = Zend_Tool_Project_Context_Repository::getInstance()->getContext($this->_context);
|
||||
}
|
||||
|
||||
|
||||
if (method_exists($this->_context, 'setResource')) {
|
||||
$this->_context->setResource($this);
|
||||
}
|
||||
|
||||
|
||||
if (method_exists($this->_context, 'init')) {
|
||||
$this->_context->init();
|
||||
}
|
||||
|
||||
|
||||
$this->_isContextInitialized = true;
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user