Class PresenterFactory
Default presenter loader.
-
Nette\Application\PresenterFactory
implements
Nette\Application\IPresenterFactory
uses
Nette\SmartObject
Methods summary
public
|
#
__construct( callable $factory = null )
Parameters
- $factory
- (string $class): IPresenter
|
public
Nette\Application\IPresenter
|
#
createPresenter( string $name )
Creates new presenter instance.
Creates new presenter instance.
Parameters
Returns
Implementation of
|
public
string
|
#
getPresenterClass( string & $name )
Generates and checks presenter class name.
Generates and checks presenter class name.
Parameters
Returns
string class name
Throws
Implementation of
|
public
Nette\Application\PresenterFactory
|
#
setMapping( array $mapping )
Sets mapping as pairs [module => mask]
Sets mapping as pairs [module => mask]
Returns
|
public
string
|
#
formatPresenterClass( string $presenter )
Formats presenter class name from its name.
Formats presenter class name from its name.
Parameters
Returns
string string
Internal
|
public
string|null
|
#
unformatPresenterClass( string $class )
Formats presenter name from class name.
Formats presenter name from class name.
Parameters
Returns
string|null string|null
Internal
|