Documentation TYPO3 par Ameos

SC_wizard_forms Class Reference

List of all members.

Public Member Functions

 init ()
 main ()
 printContent ()
 formsWizard ()
 getConfigCode (&$row)
 getFormHTML ($formCfgArray, $row)
 changeFunc ()
 cfgArray2CfgString ($cfgArr)
 cfgString2CfgArray ($cfgStr)
 cleanT ($tArr)
 formatCells ($fArr)

Public Attributes

 $doc
 $content
 $include_once = array()
 $attachmentCounter = 0
 $xmlStorage = 0
 $P
 $FORMCFG
 $special

Detailed Description

Definition at line 175 of file wizard_forms.php.


Member Function Documentation

SC_wizard_forms::init (  ) 

Initialization the class

Returns:
void

Definition at line 203 of file wizard_forms.php.

References t3lib_div::_GP(), t3lib_div::getIndpEnv(), and t3lib_div::makeInstance().

SC_wizard_forms::main (  ) 

Main function for rendering the form wizard HTML

Returns:
void

Definition at line 242 of file wizard_forms.php.

References formsWizard().

SC_wizard_forms::printContent (  ) 

Outputting the accumulated content to screen

Returns:
void

Definition at line 257 of file wizard_forms.php.

SC_wizard_forms::formsWizard (  ) 

Draws the form wizard content

Returns:
string HTML content for the form.

Definition at line 268 of file wizard_forms.php.

References $content, getConfigCode(), getFormHTML(), t3lib_BEfunc::getRecord(), and t3lib_BEfunc::typo3PrintError().

Referenced by main().

SC_wizard_forms::getConfigCode ( &$  row  ) 

Will get and return the configuration code string Will also save (and possibly redirect/exit) the content if a save button has been pressed

Parameters:
array Current parent record row (passed by value!)
Returns:
array Configuration Array private

Definition at line 311 of file wizard_forms.php.

References t3lib_div::array2xml_cs(), cfgArray2CfgString(), cfgString2CfgArray(), changeFunc(), t3lib_BEfunc::getRecord(), t3lib_div::locationHeaderUrl(), t3lib_div::makeInstance(), and t3lib_div::xml2array().

Referenced by formsWizard().

SC_wizard_forms::getFormHTML ( formCfgArray,
row 
)

Creates the HTML for the Form Wizard:

Parameters:
string Form config array
array Current parent record array
Returns:
string HTML for the form wizard private

Definition at line 382 of file wizard_forms.php.

References $content, t3lib_BEfunc::cshItem(), formatCells(), and t3lib_div::inList().

Referenced by formsWizard().

SC_wizard_forms::changeFunc (  ) 

Detects if a control button (up/down/around/delete) has been pressed for an item and accordingly it will manipulate the internal FORMCFG array

Returns:
void private

Definition at line 662 of file wizard_forms.php.

References t3lib_div::testInt().

Referenced by getConfigCode().

SC_wizard_forms::cfgArray2CfgString ( cfgArr  ) 

Converts the input array to a configuration code string

Parameters:
array Array of form configuration (follows the input structure from the form wizard POST form)
Returns:
string The array converted into a string with line-based configuration.
See also:
cfgString2CfgArray()

Definition at line 721 of file wizard_forms.php.

References cleanT().

Referenced by getConfigCode().

SC_wizard_forms::cfgString2CfgArray ( cfgStr  ) 

Converts the input configuration code string into an array

Parameters:
string Configuration code
Returns:
array Configuration array
See also:
cfgArray2CfgString()

Definition at line 803 of file wizard_forms.php.

References $attachmentCounter, and t3lib_div::trimExplode().

Referenced by getConfigCode().

SC_wizard_forms::cleanT ( tArr  ) 

Removes any "trailing elements" in the array which consists of whitespace (little like trim() does for strings, so this does for arrays)

Parameters:
array Single dim array
Returns:
array Processed array private

Definition at line 902 of file wizard_forms.php.

Referenced by cfgArray2CfgString().

SC_wizard_forms::formatCells ( fArr  ) 

Wraps items in $fArr in table cells/rows, displaying them vertically.

Parameters:
array Array of label/HTML pairs.
Returns:
string HTML table private

Definition at line 920 of file wizard_forms.php.

Referenced by getFormHTML().


The documentation for this class was generated from the following file:


Généré par Les experts TYPO3 avec  doxygen 1.4.6