API documentation :: Docs For Class arbitViewManager
Packages:Interfaces:
Classes:
|
Core::View::arbitViewManagerClass arbitViewManagerView manager, which handles a set of configured views and displays them using the configured view handler. View manager, which handles a set of configured views and displays them using the configured view handler. ezcMvcView | --arbitViewManagerAuthor(s):
Member Variables
Method Summary
Methods__construct
void
__construct(
$request
,
$result
)
Construct view handler Construct view handler Parameters:
createResponse
void
createResponse(
[
$result
= null] )
Display controller result Lets the router parse the given URL and calls the controller depending on the router results. Display controller result Lets the router parse the given URL and calls the controller depending on the router results. The sending of headers may be supressed by setting the optional third parameter to false, but this should normally only be used during testing. Optionally a ezcMvcResult may be passed, which then is processed instead of the result passed to the constructor. Parameters:
createZones
array(ezcMvcViewHandler)
createZones(
bool
$layout
)
The user-implemented that returns the zones. The user-implemented that returns the zones. This method creates all the zones that are needed to render a view. A zone is an array of elements that implement a view handler. The view handlers do not have to be of the same type, as long as they implement the ezcMvcViewHandler interface. The $layout parameter can be used to determine whether a "page layout" should be added to the list of zones. This can be useful in case you're incorporating many different applications. The $layout parameter will be set to true automatically for the top level createZones() method, which can then chose to add zones from other views as well. The createZones() methods from those other views should have the $layout parameter set to false. Parameters:
getClientEncoding
string
getClientEncoding(
$supported
, string
$default
)
Get preferred encoding Check if the client support UTF-8, and uses it. a value we and the client supports. Get preferred encoding Check if the client support UTF-8, and uses it. Otherwise we will use to a value we and the client supports. Once determined the encoding value is stored in the session, so that we know about it, when we need to decode client input values. Parameters:
getPreferred
string
getPreferred(
$supported
,
$available
, string
$default
)
Get preferred accept header value Matches the user provided priorized accept header list against the list of available mimtyoes / encodings /. the best matching value, or the default one, if no proper matches were found. Get preferred accept header value Matches the user provided priorized accept header list against the list of available mimtyoes / encodings /... specific renderers and returns the best matching value, or the default one, if no proper matches were found. Parameters:
setViewHandler
void
setViewHandler(
string
$mimetype
, string
$handler
)
Set view handler for mimetype Set the view handler for a specific mimetype, like a renderer for text/xhtml content, or a renderer for text/xml or application/json. Set view handler for mimetype Set the view handler for a specific mimetype, like a renderer for text/xhtml content, or a renderer for text/xml or application/json. Parameters:
Documentation generated on Mon, 05 Apr 2010 14:02:03 +0200 by phpDocumentor 1.4.3
|