Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • AppForm
  • Application
  • CliRouter
  • Control
  • DownloadResponse
  • ForwardingResponse
  • JsonResponse
  • Link
  • MultiRouter
  • Presenter
  • PresenterComponent
  • PresenterLoader
  • PresenterRequest
  • RedirectingResponse
  • RenderResponse
  • Route
  • SimpleRouter

Interfaces

  • IPartiallyRenderable
  • IPresenter
  • IPresenterLoader
  • IPresenterResponse
  • IRenderable
  • IRouter
  • ISignalReceiver
  • IStatePersistent

Exceptions

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

Class PresenterRequest

Presenter request. Immutable object.

Nette\Object
Extended by Nette\FreezableObject
Extended by Nette\Application\PresenterRequest
Final
Namespace: Nette\Application
Author: David Grudl
Located at Application/PresenterRequest.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
public Nette\Application\PresenterRequest
# setPresenterName( string $name )

Sets the presenter name.

Sets the presenter name.

Parameters

$name
string

Returns

Nette\Application\PresenterRequest
provides a fluent interface
public string
# getPresenterName( )

Retrieve the presenter name.

Retrieve the presenter name.

Returns

string
public Nette\Application\PresenterRequest
# setParams( array $params )

Sets variables provided to the presenter.

Sets variables provided to the presenter.

Parameters

$params
array

Returns

Nette\Application\PresenterRequest
provides a fluent interface
public array
# getParams( )

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

Sets variables provided to the presenter via POST.

Sets variables provided to the presenter via POST.

Parameters

$params
array

Returns

Nette\Application\PresenterRequest
provides a fluent interface
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\PresenterRequest
# setFiles( array $files )

Sets all uploaded files.

Sets all uploaded files.

Parameters

$files
array

Returns

Nette\Application\PresenterRequest
provides a fluent interface
public array
# getFiles( )

Returns all uploaded files.

Returns all uploaded files.

Returns

array
public Nette\Application\PresenterRequest
# setMethod( string $method )

Sets the method.

Sets the method.

Parameters

$method
string

Returns

Nette\Application\PresenterRequest
provides a fluent interface
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 Nette\Application\PresenterRequest
# setFlag( string $flag, boolean $value = TRUE )

Sets the flag.

Sets the flag.

Parameters

$flag
string
$value
boolean

Returns

Nette\Application\PresenterRequest
provides a fluent interface
public boolean
# hasFlag( string $flag )

Checks the flag.

Checks the flag.

Parameters

$flag
string

Returns

boolean
Methods inherited from Nette\FreezableObject
__clone(), freeze(), isFrozen(), updating()
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

Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0