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: Base.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Base.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -31,16 +31,16 @@ require_once 'Zend/Tool/Framework/Action/Interface.php';
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Framework_Action_Base implements Zend_Tool_Framework_Action_Interface
|
||||
class Zend_Tool_Framework_Action_Base implements Zend_Tool_Framework_Action_Interface
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_name = null;
|
||||
|
||||
|
||||
/**
|
||||
* constructor -
|
||||
* constructor -
|
||||
*
|
||||
* @param unknown_type $options
|
||||
*/
|
||||
@ -53,7 +53,7 @@ class Zend_Tool_Framework_Action_Base implements Zend_Tool_Framework_Action_Inte
|
||||
// implement $options here in the future if this is needed
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setName()
|
||||
*
|
||||
@ -65,7 +65,7 @@ class Zend_Tool_Framework_Action_Base implements Zend_Tool_Framework_Action_Inte
|
||||
$this->_name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -78,7 +78,7 @@ class Zend_Tool_Framework_Action_Base implements Zend_Tool_Framework_Action_Inte
|
||||
}
|
||||
return $this->_name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* _parseName - internal method to determine the name of an action when one is not explicity provided.
|
||||
*
|
||||
@ -91,5 +91,5 @@ class Zend_Tool_Framework_Action_Base implements Zend_Tool_Framework_Action_Inte
|
||||
$actionName = substr($className, strrpos($className, '_')+1);
|
||||
return $actionName;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -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: Exception.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Exception.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -33,5 +33,5 @@ require_once 'Zend/Tool/Framework/Exception.php';
|
||||
*/
|
||||
class Zend_Tool_Framework_Action_Exception extends Zend_Tool_Framework_Exception
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
@ -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: Repository.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Repository.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
|
||||
@ -28,20 +28,20 @@ require_once 'Zend/Tool/Framework/Registry/EnabledInterface.php';
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Framework_Action_Repository
|
||||
class Zend_Tool_Framework_Action_Repository
|
||||
implements Zend_Tool_Framework_Registry_EnabledInterface, IteratorAggregate, Countable
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Framework_Registry_Interface
|
||||
*/
|
||||
protected $_registry = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $_actions = array();
|
||||
|
||||
|
||||
/**
|
||||
* setRegistry()
|
||||
*
|
||||
@ -51,7 +51,7 @@ class Zend_Tool_Framework_Action_Repository
|
||||
{
|
||||
$this->_registry = $registry;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* addAction()
|
||||
*
|
||||
@ -66,10 +66,10 @@ class Zend_Tool_Framework_Action_Repository
|
||||
require_once 'Zend/Tool/Framework/Action/Exception.php';
|
||||
throw new Zend_Tool_Framework_Action_Exception('An action name for the provided action could not be determined.');
|
||||
}
|
||||
|
||||
|
||||
if (!$overrideExistingAction && array_key_exists(strtolower($actionName), $this->_actions)) {
|
||||
require_once 'Zend/Tool/Framework/Action/Exception.php';
|
||||
throw new Zend_Tool_Framework_Action_Exception('An action by the name ' . $actionName
|
||||
throw new Zend_Tool_Framework_Action_Exception('An action by the name ' . $actionName
|
||||
. ' is already registered and $overrideExistingAction is set to false.');
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ class Zend_Tool_Framework_Action_Repository
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getActions() - get all actions in the repository
|
||||
*
|
||||
@ -111,7 +111,7 @@ class Zend_Tool_Framework_Action_Repository
|
||||
|
||||
return $this->_actions[strtolower($actionName)];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* count() required by the Countable interface
|
||||
*
|
||||
@ -121,7 +121,7 @@ class Zend_Tool_Framework_Action_Repository
|
||||
{
|
||||
return count($this->_actions);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getIterator() - get all actions, this supports the IteratorAggregate interface
|
||||
*
|
||||
|
Reference in New Issue
Block a user