Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • NApplication
  • NPresenterFactory
  • NPresenterRequest

Interfaces

  • IPresenter
  • IPresenterFactory
  • IPresenterResponse
  • IRouter

Exceptions

  • NAbortException
  • NApplicationException
  • NBadRequestException
  • NForbiddenRequestException
  • NInvalidPresenterException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class NPresenterFactory

Default presenter loader.

NPresenterFactory implements IPresenterFactory
Package: Nette\Application
Author: David Grudl
Located at Application/PresenterFactory.php
Methods summary
public
# __construct( string $baseDir, NDIContainer $container )

Parameters

$baseDir
string
$container
public IPresenter
# createPresenter( string $name )

Create new presenter instance.

Create new presenter instance.

Parameters

$name
string
presenter name

Returns

IPresenter

Implementation of

IPresenterFactory::createPresenter()
public string
# getPresenterClass( string & $name )

Parameters

$name
string
presenter name

Returns

string
class name

Throws

NInvalidPresenterException

Implementation of

IPresenterFactory::getPresenterClass()
public string
# formatPresenterClass( string $presenter )

Formats presenter class name from its name.

Formats presenter class name from its name.

Parameters

$presenter
string

Returns

string
public string
# unformatPresenterClass( string $class )

Formats presenter name from class name.

Formats presenter name from class name.

Parameters

$class
string

Returns

string
public string
# formatPresenterFile( string $presenter )

Formats presenter class file name.

Formats presenter class file name.

Parameters

$presenter
string

Returns

string
Properties summary
public boolean $caseSensitive FALSE
#
Nette Framework 2.0.7 (for PHP 5.2, prefixed) API API documentation generated by ApiGen 2.8.0