[ Index ] |
|
Code source de CakePHP 1.1.13.4450 |
[Code source] [Imprimer] [Statistiques]
Dispatcher takes the URL information, parses it for paramters and tells the involved controllers what to do. This is the heart of Cake's operation.
Copyright: | Copyright 2005-2007, Cake Software Foundation, Inc. |
License: | http://www.opensource.org/licenses/mit-license.php The MIT License |
Version: | $Revision: 4409 $ |
Poids: | 432 lignes (13 kb) |
Inclus ou requis: | 2 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Dispatcher:: (7 méthodes):
__construct()
dispatch()
_invoke()
start()
parseParams()
baseUrl()
_restructureParams()
Classe: Dispatcher - X-Ref
Dispatcher translates URLs to controller-action-paramter triads.__construct() X-Ref |
Constructor. |
dispatch($url, $additionalParams=array() X-Ref |
Dispatches and invokes given URL, handing over control to the involved controllers, and then renders the results (if autoRender is set). If no controller of given name can be found, invoke() shows error messages in the form of Missing Controllers information. It does the same with Actions (methods of Controllers are called Actions). param: string $url URL information to work on. param: array $additionalParams Settings array ("bare", "return"), return: boolean Success |
_invoke(&$controller, $params, $missingAction = false) X-Ref |
Invokes given controller's render action if autoRender option is set. Otherwise the contents of the operation are returned as a string. param: object $controller param: array $params param: boolean $missingAction return: string |
start(&$controller) X-Ref |
Starts up a controller param: object $controller |
parseParams($from_url) X-Ref |
Returns array of GET and POST parameters. GET parameters are taken from given URL. param: string $from_url URL to mine for parameter information. return: array Parameters found in POST and GET. |
baseUrl() X-Ref |
Returns a base URL. return: string Base URL |
_restructureParams($params) X-Ref |
Enter description here... param: unknown_type $params return: unknown |
Généré le : Sun Feb 25 19:27:47 2007 | par Balluche grâce à PHPXref 0.7 |