Namespaces

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

Classes

  • Application
  • PresenterFactory
  • Request

Interfaces

  • IPresenter
  • IPresenterFactory
  • IResponse
  • IRouter

Exceptions

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

Class Request

Presenter request.

Nette\Object
Extended by Nette\Application\Request
Namespace: Nette\Application
Author: David Grudl
Located at Application/Request.php
Methods summary
public
# __construct( string $name, string $method = NULL, array $params = array(), array $post = array(), array $files = array(), array $flags = array() )

Parameters

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

Sets the presenter name.

Sets the presenter name.

Parameters

$name
string

Returns

Nette\Application\Request
public string
# getPresenterName( )

Retrieve the presenter name.

Retrieve the presenter name.

Returns

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

Sets variables provided to the presenter.

Sets variables provided to the presenter.

Returns

Nette\Application\Request
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
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
public array
# getPost( )

Returns all variables provided to the presenter via POST.

Returns all variables provided to the presenter via POST.

Returns

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

Sets all uploaded files.

Sets all uploaded files.

Returns

Nette\Application\Request
public array
# getFiles( )

Returns all uploaded files.

Returns all uploaded files.

Returns

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

Sets the method.

Sets the method.

Parameters

$method
string|null

Returns

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

Returns the method.

Returns the method.

Returns

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
string

Returns

boolean
public boolean
# isPost( )

Checks if the method is POST.

Checks if the method is POST.

Returns

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

Sets the flag.

Sets the flag.

Parameters

$flag
string
$value
boolean

Returns

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

Checks the flag.

Checks the flag.

Parameters

$flag
string

Returns

boolean
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string FORWARD 'FORWARD'
#

method

method

string SECURED 'secured'
#

flag

flag

string RESTORED 'restored'
#

flag

flag

Magic properties summary
public array $parameters
#
public array $post
#
public array $files
#
public string|null $method
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.2 API documentation generated by ApiGen 2.8.0