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

Classes

Interfaces

Exceptions

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class PresenterRequest

Presenter request. Immutable object.

Object
Extended by FreezableObject implements IFreezable
Extended by PresenterRequest
Package: Nette\Application
Author: David Grudl
Located at Application/Request.php
Methods summary
public
# __construct( string $name, string $method, array $params, 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 PresenterRequest
# setPresenterName( string $name )

Sets the presenter name.

Sets the presenter name.

Parameters

$name
string

Returns

PresenterRequest
public string
# getPresenterName( )

Retrieve the presenter name.

Retrieve the presenter name.

Returns

string
public PresenterRequest
# setParameters( array $params )

Sets variables provided to the presenter.

Sets variables provided to the presenter.

Returns

PresenterRequest
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
# setParams( array $params )

Deprecated

public
# getParams( )

Deprecated

public PresenterRequest
# setPost( array $params )

Sets variables provided to the presenter via POST.

Sets variables provided to the presenter via POST.

Returns

PresenterRequest
public array
# getPost( )

Returns all variables provided to the presenter via POST.

Returns all variables provided to the presenter via POST.

Returns

array
public PresenterRequest
# setFiles( array $files )

Sets all uploaded files.

Sets all uploaded files.

Returns

PresenterRequest
public array
# getFiles( )

Returns all uploaded files.

Returns all uploaded files.

Returns

array
public PresenterRequest
# setMethod( string $method )

Sets the method.

Sets the method.

Parameters

$method
string

Returns

PresenterRequest
public string
# getMethod( )

Returns the method.

Returns the method.

Returns

string
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 PresenterRequest
# setFlag( string $flag, boolean $value = TRUE )

Sets the flag.

Sets the flag.

Parameters

$flag
string
$value
boolean

Returns

PresenterRequest
public boolean
# hasFlag( string $flag )

Checks the flag.

Checks the flag.

Parameters

$flag
string

Returns

boolean
Methods inherited from FreezableObject
__clone(), freeze(), isFrozen(), updating()
Methods inherited from 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 string $presenterName
#
public array $parameters
#
public array $post
#
public array $files
#
public string $method
#
Magic properties inherited from FreezableObject
$frozen
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0