ZenMagick 0.9.6


org.zenmagick.rp.ZMFormBean

Class ZMFormBean

ZMObject
|
+--ZMFormBean

public class ZMFormBean
extends ZMObject

Base class for form data container.

Extending from this class allows to restrict the fields taken from the request to a given list via addFields().

Furthermore, using addTables() allows to extend the list of fields with all custom fields configured for the listes tables. This allows capturing and handling custom table columns in the used form.

Author:
DerManoMann
Version:
$Id: ZMFormBean.php 2113 2009-03-27 02:48:42Z dermanomann $

Field Summary
protected mixed

$fields_

protected mixed

$tables_

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMFormBean()

Create new instance.

Method Summary
void

addFields(mixed fields)

Limit populating this form bean to the given fields.

void

addTables(mixed tables)

Set the name(s) of the tables to be used to populate custom fields.

void

populate()

Populate this form.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Field Detail

fields_

protected mixed $fields_

tables_

protected mixed $tables_

Constructor Detail

ZMFormBean

public ZMFormBean()

Create new instance. /


Method Detail

addFields

public void addFields(mixed fields)

Limit populating this form bean to the given fields.

Parameters:
fields - Either an array or comma separated list of field names.

addTables

public void addTables(mixed tables)

Set the name(s) of the tables to be used to populate custom fields.

Parameters:
tables - Either an array or comma separated list of table names (without the prefix).

populate

public void populate()

Populate this form. /


ZenMagick 0.9.6