ZenMagick 0.9.10


zenmagick.store.sf.mvc.view\SavantView
mvc\views\SavantView.php at line 30

Class SavantView

ZMObject
└─ZMView
└─ZMSavantView
└─SavantView

public class SavantView
extends ZMSavantView

A Savant(3) view with theme support and adjustment for theme folder structures (viewDir).

Author:
DerManoMann

Method Summary
void

__construct()

Create new instance.

array

getResourcePath(ZMRequest request)

Get the array of locations to search for resources. This default implementation will just return getTemplatePath($request). Same as template path.

array

getTemplatePath(ZMRequest request)

Get the array of locations to search for templates. The template path will contain each active plugin's base directory, the default theme's content directory and the active theme's content directory.

Methods inherited from org.zenmagick.mvc.view\ZMSavantView
__construct, asUrl, exists, fetch, generate, getFilterList, getFilters, getLayout, getResourcePath, getSavant, getTemplate, getTemplatePath, getViewDir, getViewUtils, path, setConfig, setFilters, setLayout, setViewDir
Methods inherited from org.zenmagick.mvc.view\ZMView
__construct, asUrl, exists, fetch, generate, getContentType, getEncoding, getTemplate, getVar, getVars, getViewId, getViewUtils, isValid, path, setTemplate, setVar, setVars, setViewId
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\views\SavantView.php at line 35

__construct

public void __construct()

Create new instance.


mvc\views\SavantView.php at line 78

getResourcePath

public array getResourcePath(ZMRequest request)

Get the array of locations to search for resources.

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

Same as template path.

Parameters:
request - The current request.
Returns:
List of locations to look for resources.

mvc\views\SavantView.php at line 53

getTemplatePath

public array getTemplatePath(ZMRequest request)

Get the array of locations to search for templates.

The template path will contain each active plugin's base directory, the default theme's content directory and the active theme's content directory.

Parameters:
request - The current request.
Returns:
List of locations to look for templates.

ZenMagick 0.9.10