Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Application
  • LinkGenerator
  • PresenterFactory
  • Request

Interfaces

  • IPresenter
  • IPresenterFactory
  • IResponse
  • IRouter

Exceptions

  • AbortException
  • ApplicationException
  • BadRequestException
  • ForbiddenRequestException
  • InvalidPresenterException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class PresenterFactory

Default presenter loader.

Nette\Object
Extended by Nette\Application\PresenterFactory implements Nette\Application\IPresenterFactory
Namespace: Nette\Application
Located at Application/PresenterFactory.php
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

$name
name

Returns

Nette\Application\IPresenter
IPresenter

Implementation of

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

Generates and checks presenter class name.

Generates and checks presenter class name.

Parameters

$name
name

Returns

string
class name

Throws

Nette\Application\InvalidPresenterException
InvalidPresenterException

Implementation of

Nette\Application\IPresenterFactory::getPresenterClass()
public Nette\Application\PresenterFactory
# setMapping( array $mapping )

Sets mapping as pairs [module => mask]

Sets mapping as pairs [module => mask]

Returns

Nette\Application\PresenterFactory
self
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
public boolean $caseSensitive

Deprecated

#TRUE
Magic properties inherited from Nette\Object
$reflection
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0