Public Member Functions | |
| main ($content, $conf) | |
| init ($conf, $getAddresses=true) | |
| noUser () | |
| getListing ($addressType=0, $createHiddenFields=false, $hiddenFieldPrefix= '') | |
| getAddressForm ($action= 'new', $addressUid=NULL, $config) | |
| deleteAddressQuestion () | |
| deleteAddress () | |
| getInputField ($fieldName, $fieldConfig, $fieldValue= '') | |
| getSingleInputField ($fieldName, $fieldConfig, $fieldValue= '') | |
| getSelectInputField ($fieldName, $fieldConfig, $fieldValue= '') | |
| getCheckboxInputField ($fieldName, $fieldConfig, $fieldValue= '') | |
| checkAddressForm () | |
| saveAddressData ($new=false, $addressType=0) | |
| parseFieldList ($dataArray) | |
| getAddresses ($userId, $addressType=0) | |
Public Attributes | |
| $prefixId = 'tx_commerce_pi4' | |
| $scriptRelPath = 'pi4/class.tx_commerce_pi4.php' | |
| $extKey = 'commerce' | |
| $imgFolder = '' | |
| $user = NULL | |
| $addresses = array() | |
| $formError = array() | |
| $fieldList = array() | |
| $sysMessage = '' | |
| $staticInfo | |
|
|
Reads in the complete configuration for a form, and parses the data that come from the piVars and checks if this values fit the configuration for the field. If errors occur, it writes it into a class var called formError. The key will be the name of the field and the value will be the error message.
|
|
|
Deletes an address from the database. It doesn't deletes the dataset in real, but it set's the deleted flag like it's done inside TYPO3. This method has no params, because it get's his data from the piVars currently.
|
|
|
Returns the html code for a confirmation if the user wants to delete one of his addresses.
|
|
||||||||||||
|
Get all addresses from the database that are assigned to the current user.
|
|
||||||||||||||||
|
Returns the HTML form for a single address. The fields are fetched from tt_address and are configured in TS.
|
|
||||||||||||||||
|
Returns a checkbox
|
|
||||||||||||||||
|
Returns a single input form field. In fact this is just a switch between the specific methods.
|
|
||||||||||||||||
|
Returns the listing html of addresses.
|
|
||||||||||||||||
|
Returns a selectbox
|
|
||||||||||||||||
|
Returns a single textfield
|
|
||||||||||||
|
The initialization. This method has to be called before the magic can start... ;-)
|
|
||||||||||||
|
Main method. Starts the magic...
|
|
|
Is called whenever the address handling is called without a logged in fe_user. Currently this is just a dummy with no function. TODO: Here we could return a template and / or call a hook |
|
|
Creates a list of array keys where the last character is removed from it.
|
|
||||||||||||
|
Saves some data from the piVars as address into the database.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4