forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67ec863
commit 7a75fa4
Showing
3 changed files
with
125 additions
and
4 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
library/Zend/Controller/Router/Rewrite/Route/AbstractRoute.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php | ||
/** | ||
* Zend Framework | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://framework.zend.com/license/new-bsd | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_Controller | ||
* @subpackage Router | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @version $Id$ | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
/** | ||
* @namespace | ||
*/ | ||
namespace Zend\Controller\Router\Rewrite\Route; | ||
use Zend\Controller\Request\HTTP as HTTPRequest; | ||
|
||
/** | ||
* Route interface | ||
* | ||
* @package Zend_Controller | ||
* @subpackage Router | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @see http://manuals.rubyonrails.com/read/chapter/65 | ||
*/ | ||
abstract class AbstractRoute implements Route | ||
{ | ||
/** | ||
* match(): defined by Route interface | ||
* | ||
* @see Route::match() | ||
* @param HTTPRequest $request | ||
* @return boolean | ||
*/ | ||
public function match(HTTPRequest $request, $pathOffset) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* assemble(): Defined by Route interface | ||
* | ||
* @see Route::assemble() | ||
* @param array $params | ||
* @param array $options | ||
* @return string | ||
*/ | ||
public function assemble(array $params = null, array $options = null) | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
/** | ||
* Zend Framework | ||
* | ||
* LICENSE | ||
* | ||
* This source file is subject to the new BSD license that is bundled | ||
* with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://framework.zend.com/license/new-bsd | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_Controller | ||
* @subpackage Router | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @version $Id$ | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
||
/** | ||
* @namespace | ||
*/ | ||
namespace Zend\Controller\Router\Rewrite\Route; | ||
use Zend\Controller\Request\HTTP as HTTPRequest; | ||
|
||
/** | ||
* Route interface | ||
* | ||
* @package Zend_Controller | ||
* @subpackage Router | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @see http://manuals.rubyonrails.com/read/chapter/65 | ||
*/ | ||
interface Route | ||
{ | ||
/** | ||
* Match a request | ||
* | ||
* @param HTTPRequest $request | ||
* @return boolean | ||
*/ | ||
public function match(HTTPRequest $request, $pathOffset); | ||
|
||
/** | ||
* Assemble an URL | ||
* | ||
* @param array $params | ||
* @param array $options | ||
* @return string | ||
*/ | ||
public function assemble(array $params = null, array $options = null); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters