Apache Zeta Components Manual :: File Source for result_content.php

Source for file result_content.php

Documentation is available at result_content.php

  1. <?php
  2. /**
  3.  * File containing the ezcMvcResultContent class
  4.  *
  5.  * Licensed to the Apache Software Foundation (ASF) under one
  6.  * or more contributor license agreements.  See the NOTICE file
  7.  * distributed with this work for additional information
  8.  * regarding copyright ownership.  The ASF licenses this file
  9.  * to you under the Apache License, Version 2.0 (the
  10.  * "License"); you may not use this file except in compliance
  11.  * with the License.  You may obtain a copy of the License at
  12.  * 
  13.  *   http://www.apache.org/licenses/LICENSE-2.0
  14.  * 
  15.  * Unless required by applicable law or agreed to in writing,
  16.  * software distributed under the License is distributed on an
  17.  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18.  * KIND, either express or implied.  See the License for the
  19.  * specific language governing permissions and limitations
  20.  * under the License.
  21.  *
  22.  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  23.  * @version //autogentag//
  24.  * @filesource
  25.  * @package MvcTools
  26.  */
  27.  
  28. /**
  29.  * This struct contains content meta-data
  30.  *
  31.  * @package MvcTools
  32.  * @version //autogentag//
  33.  */
  34. {
  35.     /**
  36.      * The content's language
  37.      *
  38.      * @var string 
  39.      */
  40.     public $language;
  41.  
  42.     /**
  43.      * The content's mime-type
  44.      *
  45.      * @var string 
  46.      */
  47.     public $type;
  48.  
  49.     /**
  50.      * The character set
  51.      *
  52.      * @var string 
  53.      */
  54.     public $charset;
  55.  
  56.     /**
  57.      * The content "encoding" (gzip, etc).
  58.      *
  59.      * @var string 
  60.      */
  61.     public $encoding;
  62.  
  63.     /**
  64.      * The content disposition information
  65.      *
  66.      * @var ezcMvcResultContentDisposition 
  67.      */
  68.     public $disposition;
  69.  
  70.     /**
  71.      * Constructs a new ezcMvcResultContent.
  72.      *
  73.      * @param string $language 
  74.      * @param string $type 
  75.      * @param string $charset 
  76.      * @param string $encoding 
  77.      * @param ezcMvcResultContentDisposition $disposition 
  78.      */
  79.     public function __construct$language ''$type '',
  80.         $charset ''$encoding ''$disposition null )
  81.     {
  82.         $this->language = $language;
  83.         $this->type = $type;
  84.         $this->charset = $charset;
  85.         $this->encoding = $encoding;
  86.         $this->disposition = $disposition;
  87.     }
  88.  
  89.     /**
  90.      * Returns a new instance of this class with the data specified by $array.
  91.      *
  92.      * $array contains all the data members of this class in the form:
  93.      * array('member_name'=>value).
  94.      *
  95.      * __set_state makes this class exportable with var_export.
  96.      * var_export() generates code, that calls this method when it
  97.      * is parsed with PHP.
  98.      *
  99.      * @param array(string=>mixed) $array 
  100.      * @return ezcMvcResultContent 
  101.      */
  102.     static public function __set_statearray $array )
  103.     {
  104.         return new ezcMvcResultContent$array['language']$array['type'],
  105.             $array['charset']$array['encoding']$array['disposition');
  106.     }
  107. }
  108. ?>
Documentation generated by phpDocumentor 1.4.3