Source for file Response.php

Documentation is available at Response.php

  1. <?php
  2. /**
  3.  * Teeple2 - PHP5 Web Application Framework inspired by Seasar2
  4.  *
  5.  * PHP versions 5
  6.  *
  7.  * LICENSE: This source file is subject to version 3.0 of the PHP license
  8.  * that is available through the world-wide-web at the following URI:
  9.  * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
  10.  * the PHP License and are unable to obtain it through the web, please
  11.  * send a note to license@php.net so we can mail you a copy immediately.
  12.  *
  13.  * @package     teeple
  14.  * @author      Mitsutaka Sato <miztaka@gmail.com>
  15.  * @license     http://www.php.net/license/3_0.txt  PHP License 3.0
  16.  */
  17.  
  18. /**
  19.  * 出力を補助するクラス
  20.  *
  21.  * @package     teeple
  22.  */
  23. {
  24.     /**
  25.      * @var Content-dispositionを保持する 
  26.      *
  27.      * @access  private
  28.      * @since   3.0.0
  29.      */
  30.     var $_contentDisposition;
  31.  
  32.     /**
  33.      * @var Content-Typeを保持する 
  34.      *
  35.      * @access  private
  36.      * @since   3.0.0
  37.      */
  38.     var $_contentType;
  39.  
  40.     /**
  41.      * @var Resultを保持する 
  42.      *
  43.      * @access  private
  44.      * @since   3.0.0
  45.      */
  46.     var $_result;
  47.  
  48.     /**
  49.      * @var Viewを保持する 
  50.      *
  51.      * @access  private
  52.      * @since   3.0.0
  53.      */
  54.     var $_view;
  55.  
  56.     /**
  57.      * @var redirect先を保持する 
  58.      *
  59.      * @access  private
  60.      * @since   3.0.0
  61.      */
  62.     var $_redirect;
  63.  
  64.     /**
  65.      * コンストラクター
  66.      *
  67.      * @access  public
  68.      * @since   3.0.0
  69.      */
  70.     function __construct()
  71.     {
  72.         $this->_contentDisposition NULL;
  73.         $this->_contentType        NULL;
  74.         $this->_result             NULL;
  75.         $this->_view               NULL;
  76.         $this->_redirect           NULL;
  77.     }
  78.  
  79.     /**
  80.      * contentDispositionの値を返却
  81.      *
  82.      * @return  string  contentDispositionの値
  83.      * @access  public
  84.      * @since   3.0.0
  85.      */
  86.     function getContentDisposition()
  87.     {
  88.         return $this->_contentDisposition;
  89.     }
  90.  
  91.     /**
  92.      * contentDispositionの値をセット
  93.      *
  94.      * @param   string  $contentDisposition contentDispositionの値
  95.      * @access  public
  96.      * @since   3.0.0
  97.      */
  98.     function setContentDisposition($contentDisposition)
  99.     {
  100.         $this->_contentDisposition $contentDisposition;
  101.     }
  102.  
  103.     /**
  104.      * contentTypeの値を返却
  105.      *
  106.      * @return  string  contentTypeの値
  107.      * @access  public
  108.      * @since   3.0.0
  109.      */
  110.     function getContentType()
  111.     {
  112.         return $this->_contentType;
  113.     }
  114.  
  115.     /**
  116.      * contentTypeの値をセット
  117.      *
  118.      * @param   string  $contentType    contentTypeの値
  119.      * @access  public
  120.      * @since   3.0.0
  121.      */
  122.     function setContentType($contentType)
  123.     {
  124.         $this->_contentType $contentType;
  125.     }
  126.  
  127.     /**
  128.      * resultの値を返却
  129.      *
  130.      * @return  string  resultの値
  131.      * @access  public
  132.      * @since   3.0.0
  133.      */
  134.     function getResult()
  135.     {
  136.         return $this->_result;
  137.     }
  138.  
  139.     /**
  140.      * resultの値をセット
  141.      *
  142.      * @param   string  $result resultの値
  143.      * @access  public
  144.      * @since   3.0.0
  145.      */
  146.     function setResult($result)
  147.     {
  148.         $this->_result $result;
  149.     }
  150.  
  151.     /**
  152.      * viewの値を返却
  153.      *
  154.      * @return  string  viewの値
  155.      * @access  public
  156.      * @since   3.0.0
  157.      */
  158.     function getView()
  159.     {
  160.         return $this->_view;
  161.     }
  162.  
  163.     /**
  164.      * viewの値をセット
  165.      *
  166.      * @param   string  $view   viewの値
  167.      * @access  public
  168.      * @since   3.0.0
  169.      */
  170.     function setView($view)
  171.     {
  172.         $this->_view $view;
  173.     }
  174.  
  175.     /**
  176.      * Redirectの値を返却
  177.      *
  178.      * @return  string  redirectの値
  179.      * @access  public
  180.      * @since   3.0.0
  181.      */
  182.     function getRedirect()
  183.     {
  184.         return $this->_redirect;
  185.     }
  186.  
  187.     /**
  188.      * Redirectの値をセット
  189.      *
  190.      * @param   string  $redirect   redirectの値
  191.      * @access  public
  192.      * @since   3.0.0
  193.      */
  194.     function setRedirect($redirect)
  195.     {
  196.         $this->_redirect $redirect;
  197.     }
  198.  
  199. }
  200. ?>

Documentation generated on Mon, 26 Apr 2010 08:59:56 +0900 by phpDocumentor 1.4.3