【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“Abstract.php”一文,供大家参考学习!
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to version 1.0 of the Zend Framework
* license, that is bundled with this package in the file LICENSE, and
* is available through the world-wide-web at the following URL:
* http://www.zend.com/license/framework/1_0.txt. If you did not receive
* a copy of the Zend Framework license and are unable to obtain it
* through the world-wide-
web, please send a note to license@zend.com
* so we can mail you a copy immediately.
*
* @package Zend_Controller
* @subpackage Plugins
* @copyright Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://www.zend.com/license/framework/1_0.txt Zend Framework License version 1.0
*/
/** Zend_Controller_Plugin_Interface */
require_once 'Zend/Controller/Plugin/Interface.php';
/**
* @package Zend_Controller
* @subpackage Plugins
* @copyright Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://www.zend.com/license/framework/1_0.txt Zend Framework License version 1.0
*/
abstract class Zend_Controller_Plugin_Abstract implements Zend_Controller_Plugin_Interface
{
/**
* Called before Zend_Controller_Front begins evaluating the
* request against its routes.
*
* @return void
*/
public function routeStartup()
{}
/**
* Called after Zend_Controller_Router exits.
*
* This callback allows for proxy or filter behavior. The
* $action must be returned for the Zend_Controller_Dispatcher_Token
* to enter the dispatch loop. To abort before the dispatch loop is
* entered, return FALSE.
*
* @param Zend_Controller_Dispatcher_Token|boolean $action
* @return Zend_Controller_Dispatcher_Token|boolean
*/
public function routeShutdown($action)
{
return $action;
}
/**
* Called before Zend_Controller_Front enters its dispatch loop.
* During the dispatch loop.
*
* This callback allows for proxy or filter behavior. The
* $action must be returned for the Zend_Controller_Dispatcher_Token
* to enter the dispatch loop. To abort before the dispatch loop is
* entered, return FALSE.
*
* @param Zend_Controller_Dispatcher_Token|boolean $action
* @return Zend_Controller_Dispatcher_Token|boolean
*/
public function dispatchLoopStartup($action)
{
return $action;
}
/**
* Called before an action is dispatched by Zend_Controller_Dispatcher.
*
* This callback allows for proxy or filter behavior. The
* $action must be returned for the Zend_Controller_Dispatcher_Token
* to be dispatched. To abort the dispatch, return FALSE.
*
* @param Zend_Controller_Dispatcher_Token|boolean $action
* @return Zend_Controller_Dispatcher_Token|boolean
*/
public function preDispatch($action)
{
return $action;
}
/**
* Called after an action is dispatched by Zend_Controller_Dispatcher.
*
* This callback allows for proxy or filter behavior. The
* $action must be returned, otherwise the next action
* will not be dispatched. To exit the dispatch loop without
* dispatching the action, return FALSE.
*
* @param Zend_Controller_Dispatcher_Token|boolean $action
* @return Zend_Controller_Dispatcher_Token|boolean
*/
public function postDispatch($action)
{
return $action;
}
/**
* Called before Zend_Controller_Front exists its dispatch loop.
*
* @return void
*/
public function dispatchLoopShutdown()
{}
}