API Documentation

Controller/Request/Abstract.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Controller
version
$Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Controller_Request_Abstract

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Controller_Request_Abstract

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Controller
Properties
$_dispatched
$_module
$_moduleKey
$_controller
$_controllerKey
$_action
$_actionKey
$_params
Methods
getModuleName
setModuleName
getControllerName
setControllerName
getActionName
setActionName
getModuleKey
setModuleKey
getControllerKey
setControllerKey
getActionKey
setActionKey
getParam
getUserParams
getUserParam
setParam
getParams
setParams
clearParams
setDispatched
isDispatched

Description

Properties

$_action

string $_action = ''

Action

Details

$_action
string
visibility
protected
default
final
false
static
false

$_actionKey

string $_actionKey = 'action'

Action key for retrieving action from params

Details

$_actionKey
string
visibility
protected
default
action
final
false
static
false

$_controller

string $_controller = ''

Controller

Details

$_controller
string
visibility
protected
default
final
false
static
false

$_controllerKey

string $_controllerKey = 'controller'

Controller key for retrieving controller from params

Details

$_controllerKey
string
visibility
protected
default
controller
final
false
static
false

$_dispatched

boolean $_dispatched = 'false'

Has the action been dispatched?

Details

$_dispatched
boolean
visibility
protected
default
false
final
false
static
false

$_module

string $_module = ''

Module

Details

$_module
string
visibility
protected
default
final
false
static
false

$_moduleKey

string $_moduleKey = 'module'

Module key for retrieving module from params

Details

$_moduleKey
string
visibility
protected
default
module
final
false
static
false

$_params

array $_params = 'array'

Request parameters

Details

$_params
array
visibility
protected
default
array
final
false
static
false

Methods

clearParams

clearParams( ) : Zend_Controller_Request_Abstract

Unset all user parameters

Details
visibility
public
final
false
static
false

getActionKey

getActionKey( ) : string

Retrieve the action key

Output
string
Details
visibility
public
final
false
static
false

getActionName

getActionName( ) : string

Retrieve the action name

Output
string
Details
visibility
public
final
false
static
false

getControllerKey

getControllerKey( ) : string

Retrieve the controller key

Output
string
Details
visibility
public
final
false
static
false

getControllerName

getControllerName( ) : string

Retrieve the controller name

Output
string
Details
visibility
public
final
false
static
false

getModuleKey

getModuleKey( ) : string

Retrieve the module key

Output
string
Details
visibility
public
final
false
static
false

getModuleName

getModuleName( ) : string

Retrieve the module name

Output
string
Details
visibility
public
final
false
static
false

getParam

getParam( string $key, mixed $default = null ) : mixed

Get an action parameter

Arguments
$key
string
$default
mixed
Default value to use if key not found
Output
mixed
Details
visibility
public
final
false
static
false

getParams

getParams( ) : array

Get all action parameters

Output
array
Details
visibility
public
final
false
static
false

getUserParam

getUserParam( string $key, string $default = null ) : mixed

Retrieve a single user param (i.e, a param specific to the object and not the environment)

Arguments
$key
string
$default
string
Default value to use if key not found
Output
mixed
Details
visibility
public
final
false
static
false

getUserParams

getUserParams( ) : array

Retrieve only user params (i.e, any param specific to the object and not the environment)

Output
array
Details
visibility
public
final
false
static
false

isDispatched

isDispatched( ) : boolean

Determine if the request has been dispatched

Output
boolean
Details
visibility
public
final
false
static
false

setActionKey

setActionKey( string $key ) : Zend_Controller_Request_Abstract

Set the action key

Arguments
$key
string
Details
visibility
public
final
false
static
false

setActionName

setActionName( string $value ) : Zend_Controller_Request_Abstract

Set the action name

Arguments
$value
string
Details
visibility
public
final
false
static
false

setControllerKey

setControllerKey( string $key ) : Zend_Controller_Request_Abstract

Set the controller key

Arguments
$key
string
Details
visibility
public
final
false
static
false

setControllerName

setControllerName( string $value ) : Zend_Controller_Request_Abstract

Set the controller name to use

Arguments
$value
string
Details
visibility
public
final
false
static
false

setDispatched

setDispatched( boolean $flag = true ) : Zend_Controller_Request_Abstract

Set flag indicating whether or not request has been dispatched

Arguments
$flag
boolean
Details
visibility
public
final
false
static
false

setModuleKey

setModuleKey( string $key ) : Zend_Controller_Request_Abstract

Set the module key

Arguments
$key
string
Details
visibility
public
final
false
static
false

setModuleName

setModuleName( string $value ) : Zend_Controller_Request_Abstract

Set the module name to use

Arguments
$value
string
Details
visibility
public
final
false
static
false

setParam

setParam( string $key, mixed $value ) : Zend_Controller_Request_Abstract

Set an action parameter

A $value of null will unset the $key if it exists

Arguments
$key
string
$value
mixed
Details
visibility
public
final
false
static
false

setParams

setParams( array $array ) : Zend_Controller_Request_Abstract

Set action parameters en masse; does not overwrite

Null values will unset the associated key.

Arguments
$array
array
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.