~chroot64bit/zivios/gentoo-experimental

« back to all changes in this revision

Viewing changes to application/library/Zend/Controller/Router/Route/Abstract.php

  • Committer: Mustafa A. Hashmi
  • Date: 2008-12-04 13:32:21 UTC
  • Revision ID: mhashmi@zivios.org-20081204133221-0nd1trunwevijj38
Inclusion of new installation framework with ties to zend layout and dojo layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Zend Framework
 
4
 *
 
5
 * LICENSE
 
6
 *
 
7
 * This source file is subject to the new BSD license that is bundled
 
8
 * with this package in the file LICENSE.txt.
 
9
 * It is also available through the world-wide-web at this URL:
 
10
 * http://framework.zend.com/license/new-bsd
 
11
 * If you did not receive a copy of the license and are unable to
 
12
 * obtain it through the world-wide-web, please send an email
 
13
 * to license@zend.com so we can send you a copy immediately.
 
14
 *
 
15
 * @package    Zend_Controller
 
16
 * @subpackage Router
 
17
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
18
 * @version    $Id: Route.php 1847 2006-11-23 11:36:41Z martel $
 
19
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
20
 */
 
21
 
 
22
/** Zend_Controller_Router_Route_Interface */
 
23
require_once 'Zend/Controller/Router/Route/Interface.php';
 
24
 
 
25
/**
 
26
 * Abstract Route
 
27
 *
 
28
 * Implements interface and provides convenience methods
 
29
 *
 
30
 * @package    Zend_Controller
 
31
 * @subpackage Router
 
32
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
33
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
34
 */
 
35
abstract class Zend_Controller_Router_Route_Abstract implements Zend_Controller_Router_Route_Interface
 
36
{
 
37
 
 
38
    public function getVersion() {
 
39
        return 2;
 
40
    }
 
41
    
 
42
    public function chain(Zend_Controller_Router_Route_Interface $route, $separator = '/')
 
43
    {
 
44
        require_once 'Zend/Controller/Router/Route/Chain.php';
 
45
 
 
46
        $chain = new Zend_Controller_Router_Route_Chain();
 
47
        $chain->chain($this)->chain($route, $separator);
 
48
 
 
49
        return $chain;
 
50
    }
 
51
 
 
52
}