web/lib/Zend/Rest/Controller.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Rest
    16  * @package    Zend_Rest
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: Controller.php 20096 2010-01-06 02:05:09Z bkarwin $
    19  * @version    $Id: Controller.php 25024 2012-07-30 15:08:15Z rob $
    20  */
    20  */
    21 
    21 
    22 /** Zend_Controller_Action */
    22 /** Zend_Controller_Action */
    23 require_once 'Zend/Controller/Action.php';
    23 require_once 'Zend/Controller/Action.php';
    24 
    24 
    27  * Zend_Rest_Route.
    27  * Zend_Rest_Route.
    28  *
    28  *
    29  * @category   Zend
    29  * @category   Zend
    30  * @package Zend_Rest
    30  * @package Zend_Rest
    31  * @see Zend_Rest_Route
    31  * @see Zend_Rest_Route
    32  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    32  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    33  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    33  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    34  */
    34  */
    35 abstract class Zend_Rest_Controller extends Zend_Controller_Action
    35 abstract class Zend_Rest_Controller extends Zend_Controller_Action
    36 {
    36 {
    37     /**
    37     /**
    44      * The get action handles GET requests and receives an 'id' parameter; it
    44      * The get action handles GET requests and receives an 'id' parameter; it
    45      * should respond with the server resource state of the resource identified
    45      * should respond with the server resource state of the resource identified
    46      * by the 'id' value.
    46      * by the 'id' value.
    47      */
    47      */
    48     abstract public function getAction();
    48     abstract public function getAction();
       
    49 
       
    50     /**
       
    51      * The head action handles HEAD requests and receives an 'id' parameter; it
       
    52      * should respond with the server resource state of the resource identified
       
    53      * by the 'id' value.
       
    54      */
       
    55     abstract public function headAction();
    49 
    56 
    50     /**
    57     /**
    51      * The post action handles POST requests; it should accept and digest a
    58      * The post action handles POST requests; it should accept and digest a
    52      * POSTed resource representation and persist the resource state.
    59      * POSTed resource representation and persist the resource state.
    53      */
    60      */