ZenMagick 0.9.8


org.zenmagick.mvc.view.ZMSavantView
\mvc\view\ZMSavantView.php at line 31

Class ZMSavantView

ZMObject
└─ZMView
└─ZMSavantView

public class ZMSavantView
extends ZMView

A Savant(3) view.

Author:
DerManoMann
Version:
$Id: ZMSavantView.php 2792 2009-12-29 02:23:34Z dermanomann $

Constructor Summary

ZMSavantView()

Create new instance.

Method Summary
string

fetch(mixed request, string template, request The)

{@inheritDoc}

void

getResourcePath(ZMRequest request)

Get the array of locations to search for resources.

protected Savant3

getSavant(ZMRequest request)

Get a preconfigured Savant3 instance.

void

getTemplatePath(ZMRequest request)

Get the array of locations to search for templates.

void

setConfig(mixed config)

Set savant specific configuration options.

Methods inherited from org.zenmagick.mvc.view.ZMView
fetch, generate, getContentType, getEncoding, getTemplate, getVars, getViewId, isValid, setTemplate, setVar, setVars, setViewId
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\mvc\view\ZMSavantView.php at line 39

ZMSavantView

public ZMSavantView()

Create new instance.


Method Detail

\mvc\view\ZMSavantView.php at line 113

fetch

public string fetch(mixed request, string template, request The)

Parameters:
The - current request.
template - The template name.
Returns:
The contents.

\mvc\view\ZMSavantView.php at line 70

getResourcePath

public void getResourcePath(ZMRequest request)

Get the array of locations to search for resources.

This default implementation will just return getTemplatePath($request).

Parameters:
request - The current request.

\mvc\view\ZMSavantView.php at line 95

getSavant

protected Savant3 getSavant(ZMRequest request)

Get a preconfigured Savant3 instance.

Parameters:
request - The current request.
Returns:
A ready-to-use instance.

\mvc\view\ZMSavantView.php at line 58

getTemplatePath

public void getTemplatePath(ZMRequest request)

Get the array of locations to search for templates.

Parameters:
request - The current request.

\mvc\view\ZMSavantView.php at line 79

setConfig

public void setConfig(mixed config)

Set savant specific configuration options.

Parameters:
config - Anything that can be converted into a map.

ZenMagick 0.9.8