ZenMagick 0.9.8


org.zenmagick.store.mvc.FormData
\store\mvc\FormData.php at line 35

Class FormData

ZMObject
└─ZMFormData
└─FormData

public class FormData
extends ZMFormData

Form data container.

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: FormData.php 2694 2009-12-03 22:32:18Z dermanomann $

Field Summary
protected mixed

$tables_

Fields inherited from org.zenmagick.mvc.forms.ZMFormData
fields_
Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

FormData()

Create new instance.

Method Summary
void

addTables(mixed tables)

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

void

populate(ZMRequest request)

Populate this form.

Methods inherited from org.zenmagick.mvc.forms.ZMFormData
addFields, populate
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Field Detail

\store\mvc\FormData.php at line 36

tables_

protected mixed $tables_

Constructor Detail

\store\mvc\FormData.php at line 42

FormData

public FormData()

Create new instance.


Method Detail

\store\mvc\FormData.php at line 60

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).

\store\mvc\FormData.php at line 72

populate

public void populate(ZMRequest request)

Populate this form.

Parameters:
request - The request to process.

ZenMagick 0.9.8