ZenMagick 0.9.6


org.zenmagick.rp.uip.views.ZMPluginView

Class ZMPluginView

ZMObject
|
+--ZMView
|
+--ZMPageView
|
+--ZMPluginView

public class ZMPluginView
extends ZMPageView

Simple plugin view.

This view allows to display templates (full layouts or views) that are located in a plugin folder.

Author:
DerManoMann
Version:
$Id: ZMPluginView.php 1968 2009-02-15 22:27:44Z dermanomann $

Field Summary
protected mixed

$plugin_

Constructor Summary

ZMPluginView(string view, ZMPlugin plugin)

Create new theme view view.

Method Summary
void

generate()

Generate view response.

string

getViewFilename()

Returns the full view filename to be included by a template.

boolean

isValid()

Check if this view is valid.

void

setPlugin(ZMPlugin plugin)

Set the corresponding plugin.

Methods inherited from org.zenmagick.rp.uip.ZMPageView
generate, getLayout
Methods inherited from org.zenmagick.rp.ZMView
callView, generate, getContentType, getController, getEncoding, getName, getSubdir, getView, getViewFilename, getViewId, isValid, isViewFunction, setController, setName, setSubdir, setView, setViewId
Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Field Detail

plugin_

protected mixed $plugin_

Constructor Detail

ZMPluginView

public ZMPluginView(string view, ZMPlugin plugin)

Create new theme view view.

Parameters:
view - The view name.
plugin - The plugin; default is null.
Deprecated::
contructor arguments

Method Detail

generate

public void generate()

Generate view response. /


getViewFilename

public string getViewFilename()

Returns the full view filename to be included by a template.

Returns:
The full view filename.

isValid

public boolean isValid()

Check if this view is valid.

Returns:
true if the view is valid, false if not.

setPlugin

public void setPlugin(ZMPlugin plugin)

Set the corresponding plugin.

Parameters:
plugin - The plugin.

ZenMagick 0.9.6