Packages

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

Classes

  • NAppForm
  • NApplication
  • NCliRouter
  • NControl
  • NDownloadResponse
  • NForwardingResponse
  • NJsonResponse
  • NLink
  • NMultiRouter
  • NPresenter
  • NPresenterComponent
  • NPresenterLoader
  • NPresenterRequest
  • NRedirectingResponse
  • NRenderResponse
  • NRoute
  • NSimpleRouter

Interfaces

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

Exceptions

  • NAbortException
  • NApplicationException
  • NBadRequestException
  • NBadSignalException
  • NForbiddenRequestException
  • NInvalidLinkException
  • NInvalidPresenterException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Class NPresenterRequest

Presenter request. Immutable object.

NObject
Extended by NFreezableObject
Extended by NPresenterRequest
Final
Package: 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 NPresenterRequest
# setPresenterName( string $name )

Sets the presenter name.

Sets the presenter name.

Parameters

$name
string

Returns

NPresenterRequest
provides a fluent interface
public string
# getPresenterName( )

Retrieve the presenter name.

Retrieve the presenter name.

Returns

string
public NPresenterRequest
# setParams( array $params )

Sets variables provided to the presenter.

Sets variables provided to the presenter.

Parameters

$params
array

Returns

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

Sets variables provided to the presenter via POST.

Sets variables provided to the presenter via POST.

Parameters

$params
array

Returns

NPresenterRequest
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 NPresenterRequest
# setFiles( array $files )

Sets all uploaded files.

Sets all uploaded files.

Parameters

$files
array

Returns

NPresenterRequest
provides a fluent interface
public array
# getFiles( )

Returns all uploaded files.

Returns all uploaded files.

Returns

array
public NPresenterRequest
# setMethod( string $method )

Sets the method.

Sets the method.

Parameters

$method
string

Returns

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

Sets the flag.

Sets the flag.

Parameters

$flag
string
$value
boolean

Returns

NPresenterRequest
provides a fluent interface
public boolean
# hasFlag( string $flag )

Checks the flag.

Checks the flag.

Parameters

$flag
string

Returns

boolean
Methods inherited from NFreezableObject
__clone(), freeze(), isFrozen(), updating()
Methods inherited from NObject
__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 (for PHP 5.2) API documentation generated by ApiGen 2.3.0