phpDocumentor Naos_Controller
[ class tree: Naos_Controller ] [ index: Naos_Controller ] [ all elements ]

Class: Naos_Controller_Dispatcher

Source Location: /Controller/Dispatcher.php

Class Naos_Controller_Dispatcher

Class Overview

Naos_Controller_Dispatcher

Located in /Controller/Dispatcher.php [line 24]

Zend_Controller_Dispatcher_Standard
   |
   --Naos_Controller_Dispatcher
Author(s):
Information Tags:
Copyright:  Copyright (c) 2008 Jupiter GmbH
License:  http://www.naos-framework.com/website.naos.framework/en/license

Methods

[ Top ]
Method Summary
void   __construct()   Constructor
string   classToFilename()   Convert a class name to a filename
string   formatModuleName()   Format the module name.
string|false   getControllerClass()   Get controller class name
string   loadClass()   Load a controller class

[ Top ]
Methods
Constructor __construct  [line 32]

  void __construct( [ $params = array()]  )

Constructor

Parameters:
array   $params: 

API Tags:
Access:  public


[ Top ]
classToFilename  [line 72]

  string classToFilename( string $class  )

Convert a class name to a filename

Parameters:
string   $class: 

API Tags:
Access:  public


[ Top ]
formatModuleName  [line 43]

  string formatModuleName( string $unformatted  )

Format the module name.

Parameters:
string   $unformatted: 

API Tags:
Access:  public


[ Top ]
getControllerClass  [line 54]

  string|false getControllerClass( $request  )

Get controller class name

Parameters:
Zend_Controller_Request_Abstract   $request: 

API Tags:
Return:  Returns class name on success
Access:  public


[ Top ]
loadClass  [line 92]

  string loadClass( string $className  )

Load a controller class

Attempts to load the controller class file from getControllerDirectory(). If the controller belongs to a module, looks for the module prefix to the controller class.

Parameters:
string   $className: 

API Tags:
Return:  Class name loaded
Access:  public

Information Tags:
Throws:  Zend_Controller_Dispatcher_Exception if class not loaded

[ Top ]

Documentation generated on Sat, 13 Sep 2008 01:40:45 -0400 by phpDocumentor 1.4.0