root/branches/0.11/src/filter/AgaviDispatchFilter.class.php

Revision 2258, 2.0 KB (checked in by david, 11 months ago)

bumped and fixed copyright years, closes #664

  • Property svn:keywords set to Id
Line 
1<?php
2
3// +---------------------------------------------------------------------------+
4// | This file is part of the Agavi package.                                   |
5// | Copyright (c) 2005-2008 the Agavi Project.                                |
6// | Based on the Mojavi3 MVC Framework, Copyright (c) 2003-2005 Sean Kerr.    |
7// |                                                                           |
8// | For the full copyright and license information, please view the LICENSE   |
9// | file that was distributed with this source code. You can also view the    |
10// | LICENSE file online at http://www.agavi.org/LICENSE.txt                   |
11// |   vi: set noexpandtab:                                                    |
12// |   Local Variables:                                                        |
13// |   indent-tabs-mode: t                                                     |
14// |   End:                                                                    |
15// +---------------------------------------------------------------------------+
16
17/**
18 * AgaviExecutionTimeFilter tracks the length of time it takes for an entire
19 * request to be served starting with the dispatch and ending when the last
20 * action request has been served.
21 *
22 * @package    agavi
23 * @subpackage filter
24 *
25 * @author     David Zülke <dz@bitxtender.com>
26 * @copyright  Authors
27 * @copyright  The Agavi Project
28 *
29 * @since      0.11.0
30 *
31 * @version    $Id$
32 */
33class AgaviDispatchFilter extends AgaviFilter implements AgaviIGlobalFilter
34{
35  /**
36   * Execute this filter.
37   *
38   * The DispatchFilter executes the execution container.
39   *
40   * @param      AgaviFilterChain        The filter chain.
41   * @param      AgaviExecutionContainer The current execution container.
42   *
43   * @throws     <b>AgaviFilterException</b> If an error occurs during execution.
44   *
45   * @author     David Zülke <dz@bitxtender.com>
46   * @since      0.11.0
47   */
48  public function execute(AgaviFilterChain $filterChain, AgaviExecutionContainer $container)
49  {
50    $container->setResponse($container->execute());
51  }
52}
53
54?>
Note: See TracBrowser for help on using the browser.