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: Registry.php 16972 2009-07-22 18:44:24Z ralph $
|
||||
* @version $Id: Registry.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -37,47 +37,47 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
* @var Zend_Tool_Framework_Loader_Abstract
|
||||
*/
|
||||
protected $_loader = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Client_Abstract
|
||||
*/
|
||||
protected $_client = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Client_Config
|
||||
*/
|
||||
protected $_config = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Client_Storage
|
||||
*/
|
||||
protected $_storage = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Action_Repository
|
||||
*/
|
||||
protected $_actionRepository = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Provider_Repository
|
||||
*/
|
||||
protected $_providerRepository = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Manifest_Repository
|
||||
*/
|
||||
protected $_manifestRepository = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Client_Request
|
||||
*/
|
||||
protected $_request = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Client_Response
|
||||
*/
|
||||
protected $_response = null;
|
||||
|
||||
|
||||
/**
|
||||
* reset() - Reset all internal properties
|
||||
*
|
||||
@ -91,12 +91,12 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
unset($this->_request);
|
||||
unset($this->_response);
|
||||
}
|
||||
|
||||
|
||||
// public function __construct()
|
||||
// {
|
||||
// // no instantiation from outside
|
||||
// // no instantiation from outside
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* Enter description here...
|
||||
*
|
||||
@ -111,7 +111,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getClient() return the client in the registry
|
||||
*
|
||||
@ -121,9 +121,9 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
{
|
||||
return $this->_client;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setConfig()
|
||||
* setConfig()
|
||||
*
|
||||
* @param Zend_Tool_Framework_Client_Config $config
|
||||
* @return Zend_Tool_Framework_Registry
|
||||
@ -133,7 +133,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
$this->_config = $config;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getConfig()
|
||||
*
|
||||
@ -145,12 +145,12 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Client/Config.php';
|
||||
$this->setConfig(new Zend_Tool_Framework_Client_Config());
|
||||
}
|
||||
|
||||
|
||||
return $this->_config;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setStorage()
|
||||
* setStorage()
|
||||
*
|
||||
* @param Zend_Tool_Framework_Client_Storage $storage
|
||||
* @return Zend_Tool_Framework_Registry
|
||||
@ -160,7 +160,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
$this->_storage = $storage;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getConfig()
|
||||
*
|
||||
@ -172,12 +172,12 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Client/Storage.php';
|
||||
$this->setStorage(new Zend_Tool_Framework_Client_Storage());
|
||||
}
|
||||
|
||||
|
||||
return $this->_storage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setLoader()
|
||||
* setLoader()
|
||||
*
|
||||
* @param Zend_Tool_Framework_Loader_Abstract $loader
|
||||
* @return Zend_Tool_Framework_Registry
|
||||
@ -190,7 +190,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getLoader()
|
||||
*
|
||||
@ -202,10 +202,10 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Loader/IncludePathLoader.php';
|
||||
$this->setLoader(new Zend_Tool_Framework_Loader_IncludePathLoader());
|
||||
}
|
||||
|
||||
|
||||
return $this->_loader;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setActionRepository()
|
||||
*
|
||||
@ -220,7 +220,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getActionRepository()
|
||||
*
|
||||
@ -232,10 +232,10 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Action/Repository.php';
|
||||
$this->setActionRepository(new Zend_Tool_Framework_Action_Repository());
|
||||
}
|
||||
|
||||
|
||||
return $this->_actionRepository;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setProviderRepository()
|
||||
*
|
||||
@ -250,7 +250,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getProviderRepository()
|
||||
*
|
||||
@ -262,10 +262,10 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Provider/Repository.php';
|
||||
$this->setProviderRepository(new Zend_Tool_Framework_Provider_Repository());
|
||||
}
|
||||
|
||||
|
||||
return $this->_providerRepository;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setManifestRepository()
|
||||
*
|
||||
@ -280,7 +280,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getManifestRepository()
|
||||
*
|
||||
@ -292,10 +292,10 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Manifest/Repository.php';
|
||||
$this->setManifestRepository(new Zend_Tool_Framework_Manifest_Repository());
|
||||
}
|
||||
|
||||
|
||||
return $this->_manifestRepository;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setRequest()
|
||||
*
|
||||
@ -307,7 +307,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
$this->_request = $request;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getRequest()
|
||||
*
|
||||
@ -319,10 +319,10 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Client/Request.php';
|
||||
$this->setRequest(new Zend_Tool_Framework_Client_Request());
|
||||
}
|
||||
|
||||
|
||||
return $this->_request;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setResponse()
|
||||
*
|
||||
@ -346,10 +346,10 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Client/Response.php';
|
||||
$this->setResponse(new Zend_Tool_Framework_Client_Response());
|
||||
}
|
||||
|
||||
|
||||
return $this->_response;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* __get() - Get a property via property call $registry->foo
|
||||
*
|
||||
@ -365,7 +365,7 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
throw new Zend_Tool_Framework_Registry_Exception('Property ' . $name . ' was not located in this registry.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* __set() - Set a property via the magic set $registry->foo = 'foo'
|
||||
*
|
||||
@ -379,10 +379,10 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
return;
|
||||
} else {
|
||||
require_once 'Zend/Tool/Framework/Registry/Exception.php';
|
||||
throw new Zend_Tool_Framework_Registry_Exception('Property ' . $name . ' was not located in this registry.');
|
||||
throw new Zend_Tool_Framework_Registry_Exception('Property ' . $name . ' was not located in this registry.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isObjectRegistryEnablable() - Check whether an object is registry enablable
|
||||
*
|
||||
@ -395,10 +395,10 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Registry/Exception.php';
|
||||
throw new Zend_Tool_Framework_Registry_Exception('isObjectRegistryEnablable() expects an object.');
|
||||
}
|
||||
|
||||
|
||||
return ($object instanceof Zend_Tool_Framework_Registry_EnabledInterface);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* enableRegistryOnObject() - make an object registry enabled
|
||||
*
|
||||
@ -411,9 +411,9 @@ class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Inter
|
||||
require_once 'Zend/Tool/Framework/Registry/Exception.php';
|
||||
throw new Zend_Tool_Framework_Registry_Exception('Object provided is not registry enablable, check first with Zend_Tool_Framework_Registry::isObjectRegistryEnablable()');
|
||||
}
|
||||
|
||||
|
||||
$object->setRegistry($this);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user