Path

ez components / documentation / api reference / 2008.2.1 / mvctools


eZ Components 2008.2.1

MvcTools: ezcMvcResult

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcMvcResult

This struct contains the result data to be formatted by a response writer. [source]

Parents

ezcBaseStruct
   |
   --ezcMvcResult

Member Variables

public ezcMvcResultCache $cache
Contains cache control settings
public ezcMvcResultContent $content
Contains content meta-data, such as language, type, charset.
public array(ezcMvcResultCookie) $cookies
Contains all the cookies to be set
public DateTime $date
Date of the result
public string $generator
Generator string, f.e. "eZ Components MvcTools"
public int $status
Result status
public array(mixed) $variables
Result variables

Method Summary

public ezcMvcResult __construct( [$status = 0], [$date = null], [$generator = ''], [$cache = null], [$cookies = array()], [$content = null], [$variables = array()] )
Constructs a new ezcMvcResult.
public static ezcMvcResult __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcMvcResult __construct( [int $status = 0], [DateTime $date = null], [string $generator = ''], [ezcMvcResultCache $cache = null], [array(ezcMvcResultCookie) $cookies = array()], [ezcMvcResultContent $content = null], [array(mixed) $variables = array()] )
Constructs a new ezcMvcResult.

Parameters

Name Type Description
$status int  
$date DateTime  
$generator string  
$cache ezcMvcResultCache  
$cookies array(ezcMvcResultCookie)  
$content ezcMvcResultContent  
$variables array(mixed)  

__set_state

ezcMvcResult __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Parameters

Name Type Description
$array array(string=>mixed)  

Last updated: Mon, 09 Feb 2009