Class PifaForm
PIFA form item class. It's a kind of a model.
- cGenericDb
- cItemBaseAbstract
- Item
- PifaForm
Copyright: four for business AG
Author: Marcus Gnaß <marcus.gnass@4fb.de>
Located at plugins/form_assistant/classes/class.pifa.form.php
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
array
|
|
public
|
|
public
array:mixed
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
array
|
|
public
string
|
#
getDataAsCsv( string $optionally = 'OPTIONALLY' )
Echoes a CSV file containing all of this forms stored data. Thatfor proper headers are sent, that add the created file as attachment for easier download. |
private
boolean|string
|
|
private
string
|
|
public
string
|
#
getCsv( boolean $oneRowPerField = false, array $additionalFields = NULL )
This method returns the current data as CSV file. This file usually contains two rows, one header and one value line. If $oneRowPerField is set to true the CSV-file is mirrored so that each line contains the fields header and then its value. An assoc array of $additionalFields can be given which will be appended to the current values of this form. (CON-1648)The CSV is created using a temporary file in the systems (not CONTENIDOs) TEMP folder. |
public
boolean
|
|
public
|
#
createTable( boolean $withTimestamp )
Create data table for form if it does not already exist. If there are any fields defined for this form, their columns will be created too! N.b. these fields don't have to be aggregated yet. They will be read from database if this form does not aggregate them yet. |
public
|
#
alterTable( string $oldTableName, boolean $oldWithTimestamp )
Alter data table. Renames data table if name has changed and adds or drops column for timestamp if setting has changed. |
public
|
|
public
|
#
changeColumn( string $columnName, string $dataType, string $oldColumnName )
rename column if name has changed |
public
|
#
dropColumn( string $columnName )
Adds a column for the current field to the table of the current form. |
public
|
|
protected
boolean
|
|
public
|
|
public
boolean
|
|
public
|
__get(),
__set(),
_getPropertiesCollectionInstance(),
_getSecondDBInstance(),
_setLoaded(),
_setPrimaryKeyName(),
escape(),
getPrimaryKeyName(),
isLoaded()
|
_executeCallbacks(),
register(),
unregister()
|
CREATE_BEFORE,
CREATE_FAILURE,
CREATE_SUCCESS,
DELETE_BEFORE,
DELETE_FAILURE,
DELETE_SUCCESS,
STORE_BEFORE,
STORE_FAILURE,
STORE_SUCCESS
|
private
array
|
$_fields | NULL |
#
aggregated collection of this form fields |
private
array
|
$_errors | array() |
#
array of errors with field names as keys and error messages as values |
private
integer
|
$_lastInsertedId | NULL |
#
lastInsertedId |
$_arrInFilters,
$_arrOutFilters,
$_lastSQL,
$_metaObject,
$modifiedValues,
$oldPrimaryKey,
$values
|
$_className,
$_loaded,
$_oCache,
$_primaryKeyName,
$_settings,
$db,
$lasterror,
$properties,
$secondDb,
$table
|