ZenMagick 0.9.8


org.zenmagick.store.services.plugins.ZMSimplePluginFormView
\store\services\plugins\ZMSimplePluginFormView.php at line 34

Class ZMSimplePluginFormView

ZMObject
└─ZMView
└─ZMSimplePluginFormView

public class ZMSimplePluginFormView
extends ZMView

Plugin view that generates a (view-less) simple form based on all plugin settings.

Author:
DerManoMann
Version:
$Id: ZMSimplePluginFormView.php 2752 2009-12-17 22:50:39Z dermanomann $

Constructor Summary

ZMSimplePluginFormView(mixed plugin, string function)

Create instance.

Method Summary
string

fetch(mixed request, string template, request The)

{@inheritDoc}

string

generate(ZMRequest request)

{@inheritDoc}

protected ZMPluginPage

generateSimpleConfigForm(ZMRequest request, string function, string title, boolean all)

Create a simple plugin config form.

ZMPlugin

getPlugin()

Get the plugin.

void

setPlugin(mixed plugin)

Set the plugin.

protected string

valueElement(ZMRequest request, mixed value)

Generate form element for the given config value.

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

\store\services\plugins\ZMSimplePluginFormView.php at line 45

ZMSimplePluginFormView

public ZMSimplePluginFormView(mixed plugin, string function)

Create instance.

Parameters:
plugin - The parent plugin.
function - The function/controller name.

Method Detail

\store\services\plugins\ZMSimplePluginFormView.php at line 148

fetch

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

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

\store\services\plugins\ZMSimplePluginFormView.php at line 141

generate

public string generate(ZMRequest request)

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

\store\services\plugins\ZMSimplePluginFormView.php at line 109

generateSimpleConfigForm

protected ZMPluginPage generateSimpleConfigForm(ZMRequest request, string function, string title, boolean all)

Create a simple plugin config form.

Parameters:
request - The current request.
function - The view function.
title - Optional title; default is null to use the plugin name.
all - Allows to exclude the common values (status/sort order); default is true to show all.
Returns:
The plugin page instance.

\store\services\plugins\ZMSimplePluginFormView.php at line 73

getPlugin

public ZMPlugin getPlugin()

Get the plugin.

Returns:
The plugin.

\store\services\plugins\ZMSimplePluginFormView.php at line 64

setPlugin

public void setPlugin(mixed plugin)

Set the plugin.

Parameters:
plugin - A ZMPlugin instance or plugin id.

\store\services\plugins\ZMSimplePluginFormView.php at line 88

valueElement

protected string valueElement(ZMRequest request, mixed value)

Generate form element for the given config value.

Parameters:
request - The current request.
value - The value; can be a ZMWidget or ZMConfigValue.
Returns:
HTML code.

ZenMagick 0.9.8