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
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • Application
  • Helpers
  • LinkGenerator
  • PresenterFactory
  • Request

Interfaces

  • IPresenter
  • IPresenterFactory
  • IResponse
  • IRouter

Exceptions

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

Class Request

Presenter request.

Nette\Application\Request uses Nette\SmartObject
Namespace: Nette\Application
Located at Application/Request.php
Methods summary
public
# __construct( string $name, string $method = null, array $params = [], array $post = [], array $files = [], array $flags = [] )

Parameters

$name
qualified presenter name (module:module:presenter)
$method
method
$params
provided to the presenter usually via URL
$post
provided to the presenter via POST
$files
uploaded files
$flags
flags
public Nette\Application\Request
# setPresenterName( string $name )

Sets the presenter name.

Sets the presenter name.

Parameters

$name

Returns

Nette\Application\Request
static
public string
# getPresenterName( )

Retrieve the presenter name.

Retrieve the presenter name.

Returns

string
string
public Nette\Application\Request
# setParameters( array $params )

Sets variables provided to the presenter.

Sets variables provided to the presenter.

Returns

Nette\Application\Request
static
public array
# getParameters( )

Returns all variables provided to the presenter (usually via URL).

Returns all variables provided to the presenter (usually via URL).

Returns

array
array
public mixed
# getParameter( string $key )

Returns a parameter provided to the presenter.

Returns a parameter provided to the presenter.

Parameters

$key

Returns

mixed
mixed
public Nette\Application\Request
# setPost( array $params )

Sets variables provided to the presenter via POST.

Sets variables provided to the presenter via POST.

Returns

Nette\Application\Request
static
public mixed
# getPost( string $key = null )

Returns a variable provided to the presenter via POST. If no key is passed, returns the entire array.

Returns a variable provided to the presenter via POST. If no key is passed, returns the entire array.

Parameters

$key

Returns

mixed
mixed
public Nette\Application\Request
# setFiles( array $files )

Sets all uploaded files.

Sets all uploaded files.

Returns

Nette\Application\Request
static
public array
# getFiles( )

Returns all uploaded files.

Returns all uploaded files.

Returns

array
array
public Nette\Application\Request
# setMethod( string|null $method )

Sets the method.

Sets the method.

Parameters

$method

Returns

Nette\Application\Request
static
public string|null
# getMethod( )

Returns the method.

Returns the method.

Returns

string|null
string|null
public boolean
# isMethod( string $method )

Checks if the method is the given one.

Checks if the method is the given one.

Parameters

$method

Returns

boolean
bool
public Nette\Application\Request
# setFlag( string $flag, boolean $value = true )

Sets the flag.

Sets the flag.

Parameters

$flag
$value

Returns

Nette\Application\Request
static
public boolean
# hasFlag( string $flag )

Checks the flag.

Checks the flag.

Parameters

$flag

Returns

boolean
bool
Methods used from Nette\SmartObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string FORWARD

method

method

#'FORWARD'
string SECURED

flag

flag

#'secured'
string RESTORED

flag

flag

#'restored'
string VARYING

flag

flag

#'varying'
Magic properties summary
public string $presenterName
public array $parameters
public array $post
public array $files
public string|null $method
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0