Zend Framework  1.12
Public Member Functions | List of all members
Zend_Rest_Controller Class Reference

Public Member Functions

 indexAction ()
 The index action handles index/list requests; it should respond with a list of the requested resources.
 
 getAction ()
 The get action handles GET requests and receives an 'id' parameter; it should respond with the server resource state of the resource identified by the 'id' value.
 
 headAction ()
 The head action handles HEAD requests and receives an 'id' parameter; it should respond with the server resource state of the resource identified by the 'id' value.
 
 postAction ()
 The post action handles POST requests; it should accept and digest a POSTed resource representation and persist the resource state.
 
 putAction ()
 The put action handles PUT requests and receives an 'id' parameter; it should update the server resource state of the resource identified by the 'id' value.
 
 deleteAction ()
 The delete action handles DELETE requests and receives an 'id' parameter; it should update the server resource state of the resource identified by the 'id' value.
 
- Public Member Functions inherited from Zend_Controller_Action
 __construct (Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs=array())
 Class constructor.
 
 init ()
 Initialize object.
 
 initView ()
 Initialize View object.
 
 render ($action=null, $name=null, $noController=false)
 Render a view.
 
 renderScript ($script, $name=null)
 Render a given view script.
 
 getViewScript ($action=null, $noController=null)
 Construct view script path.
 
 getRequest ()
 Return the Request object.
 
 setRequest (Zend_Controller_Request_Abstract $request)
 Set the Request object.
 
 getResponse ()
 Return the Response object.
 
 setResponse (Zend_Controller_Response_Abstract $response)
 Set the Response object.
 
 getInvokeArgs ()
 Return the array of constructor arguments (minus the Request object)
 
 getInvokeArg ($key)
 Return a single invocation argument.
 
 getHelper ($helperName)
 Get a helper by name.
 
 getHelperCopy ($helperName)
 Get a clone of a helper by name.
 
 setFrontController (Zend_Controller_Front $front)
 Set the front controller instance.
 
 getFrontController ()
 Retrieve Front Controller.
 
 preDispatch ()
 Pre-dispatch routines.
 
 postDispatch ()
 Post-dispatch routines.
 
 __call ($methodName, $args)
 Proxy for undefined methods.
 
 dispatch ($action)
 Dispatch the requested action.
 
 run (Zend_Controller_Request_Abstract $request=null, Zend_Controller_Response_Abstract $response=null)
 Call the action specified in the request object, and return a response.
 
 getParam ($paramName, $default=null)
 Gets a parameter from the Request object.
 
 setParam ($paramName, $value)
 Set a parameter in the Request object.
 
 hasParam ($paramName)
 Determine whether a given parameter exists in the Request object.
 
 getAllParams ()
 Return all parameters in the Request object as an associative array.
 
 forward ($action, $controller=null, $module=null, array $params=null)
 Forward to another controller/action.
 
 redirect ($url, array $options=array())
 Redirect to another URL.
 

Additional Inherited Members

- Public Attributes inherited from Zend_Controller_Action
 $viewSuffix = 'phtml'
 
 $view
 
- Protected Member Functions inherited from Zend_Controller_Action
 _setInvokeArgs (array $args=array())
 Set invocation arguments.
 
 _getParam ($paramName, $default=null)
 Gets a parameter from the Request object.
 
 _setParam ($paramName, $value)
 Set a parameter in the Request object.
 
 _hasParam ($paramName)
 Determine whether a given parameter exists in the Request object.
 
 _getAllParams ()
 Return all parameters in the Request object as an associative array.
 
 _forward ($action, $controller=null, $module=null, array $params=null)
 Forward to another controller/action.
 
 _redirect ($url, array $options=array())
 Redirect to another URL.
 
- Protected Attributes inherited from Zend_Controller_Action
 $_classMethods
 
 $_delimiters
 
 $_invokeArgs = array()
 
 $_frontController
 
 $_request = null
 
 $_response = null
 
 $_helper = null
 

Member Function Documentation

deleteAction ( )
abstract

The delete action handles DELETE requests and receives an 'id' parameter; it should update the server resource state of the resource identified by the 'id' value.

getAction ( )
abstract

The get action handles GET requests and receives an 'id' parameter; it should respond with the server resource state of the resource identified by the 'id' value.

headAction ( )
abstract

The head action handles HEAD requests and receives an 'id' parameter; it should respond with the server resource state of the resource identified by the 'id' value.

indexAction ( )
abstract

The index action handles index/list requests; it should respond with a list of the requested resources.

postAction ( )
abstract

The post action handles POST requests; it should accept and digest a POSTed resource representation and persist the resource state.

putAction ( )
abstract

The put action handles PUT requests and receives an 'id' parameter; it should update the server resource state of the resource identified by the 'id' value.