Öffentliche Methoden | |
| regItem ($table, $id, $field, $content) | |
| fetchRecord ($table, $idList, $operation) | |
| renderRecord ($table, $id, $pid, $row) | |
| renderRecordRaw ($table, $id, $pid, $row, $TSconfig='', $tscPID=0) | |
| renderRecord_SW ($data, $fieldConfig, $TSconfig, $table, $row, $field) | |
| renderRecord_groupProc ($data, $fieldConfig, $TSconfig, $table, $row, $field) | |
| renderRecord_selectProc ($data, $fieldConfig, $TSconfig, $table, $row, $field) | |
| renderRecord_flexProc ($data, $fieldConfig, $TSconfig, $table, $row, $field) | |
| renderRecord_typesProc ($totalRecordContent, $types_fieldConfig, $tscPID, $table, $pid) | |
| renderRecord_inlineProc ($data, $fieldConfig, $TSconfig, $table, $row, $field) | |
| renderRecord_flexProc_procInData ($dataPart, $dataStructArray, $pParams) | |
| renderRecord_flexProc_procInData_travDS (&$dataValues, $DSelements, $pParams) | |
| selectAddSpecial ($dataAcc, $elements, $specialKey) | |
| selectAddForeign ($dataAcc, $elements, $fieldConfig, $field, $TSconfig, $row, $table) | |
| getDataIdList ($elements, $fieldConfig, $row, $table) | |
| procesItemArray ($selItems, $config, $fieldTSConfig, $table, $row, $field) | |
| addItems ($items, $iArray) | |
| procItems ($items, $itemsProcFuncTSconfig, $config, $table, $row, $field) | |
| lockRecord ($table, $id, $pid=0) | |
| sL ($in) | |
Öffentliche Attribute | |
| $formname = 'loadform' | |
| $loading = 1 | |
| $theRecord = Array() | |
| $lockRecords = 0 | |
| $disableRTE = 0 | |
| $prevPageID = '' | |
| $defVals = array() | |
| $addRawData = FALSE | |
| $regTableItems = Array() | |
| $regTableItems_data = Array() | |
| $loadModules = '' | |
| t3lib_transferData::addItems | ( | $ | items, | |
| $ | iArray | |||
| ) | [inherited] |
Adding items from $iArray to $items array
| array | The array of selector box items to which key(value) / value(label) pairs from $iArray will be added. | |
| array | The array of elements to add. The keys will become values. The value will become the label. |
| t3lib_transferData::fetchRecord | ( | $ | table, | |
| $ | idList, | |||
| $ | operation | |||
| ) | [inherited] |
A function which can be used for load a batch of records from $table into internal memory of this object. The function is also used to produce proper default data for new records Ultimately the function will call renderRecord()
| string | Table name, must be found in $TCA | |
| string | Comma list of id values. If $idList is "prev" then the value from $this->prevPageID is used. NOTICE: If $operation is "new", then negative ids are meant to point to a "previous" record and positive ids are PID values for new records. Otherwise (for existing records that is) it is straight forward table/id pairs. | |
| string | If "new", then a record with default data is returned. Further, the $id values are meant to be PID values (or if negative, pointing to a previous record). If NOT new, then the table/ids are just pointing to an existing record! |
| t3lib_transferData::getDataIdList | ( | $ | elements, | |
| $ | fieldConfig, | |||
| $ | row, | |||
| $ | table | |||
| ) | [inherited] |
Returning the id-list processed by loadDBgroup for the foreign tables.
| array | The array of original elements - basically the field value exploded by "," | |
| array | Field configuration from TCA | |
| array | The data array, currently. Used to set the "local_uid" for selecting MM relation records. | |
| string | Current table name. passed on to t3lib_loadDBGroup |
| t3lib_transferData::lockRecord | ( | $ | table, | |
| $ | id, | |||
| $ | pid = 0 | |||
| ) | [inherited] |
Sets the lock for a record from table/id, IF $this->lockRecords is set!
| string | The table name | |
| integer | The id of the record | |
| integer | The pid of the record |
| t3lib_transferData::procesItemArray | ( | $ | selItems, | |
| $ | config, | |||
| $ | fieldTSConfig, | |||
| $ | table, | |||
| $ | row, | |||
| $ | field | |||
| ) | [inherited] |
Processing of selector box items. This includes the automated adding of elements plus user-function processing.
| array | The elements to process | |
| array | TCA/columns configuration | |
| array | TSconfig for the field | |
| string | The table name | |
| array | The current row | |
| string | The field name |
| t3lib_transferData::procItems | ( | $ | items, | |
| $ | itemsProcFuncTSconfig, | |||
| $ | config, | |||
| $ | table, | |||
| $ | row, | |||
| $ | field | |||
| ) | [inherited] |
User processing of a selector box array of values.
| array | The array of selector box items | |
| array | TSconfig for the fields itemProcFunc | |
| array | TCA/columns configuration | |
| string | The table name | |
| array | The current row | |
| string | The field name |
| transferData::regItem | ( | $ | table, | |
| $ | id, | |||
| $ | field, | |||
| $ | content | |||
| ) |
Register item function.
| string | Table name | |
| integer | Record uid | |
| string | Field name | |
| string | Content string. |
Erneute Implementation von t3lib_transferData.
| t3lib_transferData::renderRecord | ( | $ | table, | |
| $ | id, | |||
| $ | pid, | |||
| $ | row | |||
| ) | [inherited] |
This function performs processing on the input $row array and stores internally a corresponding array which contains processed values, ready to pass on to the TCEforms rendering in the frontend! The objective with this function is to prepare the content for handling in TCEforms. Default values from outside/TSconfig is added by fetchRecord(). In this function default values from TCA is used if a field is NOT defined in $row. The resulting, processed row is stored in $this->regTableItems_data[$uniqueItemRef], where $uniqueItemRef is "[tablename]_[id-value]"
| string | The table name | |
| string | The uid value of the record (integer). Can also be a string (NEW-something) if the record is a NEW record. | |
| integer | The pid integer. For existing records this is of course the row's "pid" field. For new records it can be either a page id (positive) or a pointer to another record from the SAME table (negative) after which the record should be inserted (or on same page) | |
| array | The row of the current record. If NEW record, then it may be loaded with default values (by eg. fetchRecord()). |
| t3lib_transferData::renderRecord_flexProc | ( | $ | data, | |
| $ | fieldConfig, | |||
| $ | TSconfig, | |||
| $ | table, | |||
| $ | row, | |||
| $ | field | |||
| ) | [inherited] |
Processing of the data value in case the field type is "flex" MUST NOT be called in case of already INSIDE a flexform!
| string | The field value | |
| array | TCA field config | |
| array | TCEform TSconfig for the record | |
| string | Table name | |
| array | The row | |
| string | Field name |
| t3lib_transferData::renderRecord_flexProc_procInData | ( | $ | dataPart, | |
| $ | dataStructArray, | |||
| $ | pParams | |||
| ) | [inherited] |
Function traversing sheets/languages for flex form data structures
| array | Data array | |
| array | Data Structure array | |
| array | Various parameters to pass-through |
| t3lib_transferData::renderRecord_flexProc_procInData_travDS | ( | &$ | dataValues, | |
| $ | DSelements, | |||
| $ | pParams | |||
| ) | [inherited] |
Traverse data array / structure
| array | Data array passed by reference. | |
| array | Data structure | |
| array | Various parameters pass-through. |
| t3lib_transferData::renderRecord_groupProc | ( | $ | data, | |
| $ | fieldConfig, | |||
| $ | TSconfig, | |||
| $ | table, | |||
| $ | row, | |||
| $ | field | |||
| ) | [inherited] |
Processing of the data value in case the field type is "group"
| string | The field value | |
| array | TCA field config | |
| array | TCEform TSconfig for the record | |
| string | Table name | |
| array | The row | |
| string | Field name |
| t3lib_transferData::renderRecord_inlineProc | ( | $ | data, | |
| $ | fieldConfig, | |||
| $ | TSconfig, | |||
| $ | table, | |||
| $ | row, | |||
| $ | field | |||
| ) | [inherited] |
Processing of the data value in case the field type is "inline" In some parts nearly the same as type "select"
| string | The field value | |
| array | TCA field config | |
| array | TCEform TSconfig for the record | |
| string | Table name | |
| array | The row | |
| string | Field name |
| t3lib_transferData::renderRecord_selectProc | ( | $ | data, | |
| $ | fieldConfig, | |||
| $ | TSconfig, | |||
| $ | table, | |||
| $ | row, | |||
| $ | field | |||
| ) | [inherited] |
Processing of the data value in case the field type is "select"
| string | The field value | |
| array | TCA field config | |
| array | TCEform TSconfig for the record | |
| string | Table name | |
| array | The row | |
| string | Field name |
| t3lib_transferData::renderRecord_SW | ( | $ | data, | |
| $ | fieldConfig, | |||
| $ | TSconfig, | |||
| $ | table, | |||
| $ | row, | |||
| $ | field | |||
| ) | [inherited] |
Function with the switch() construct which triggers functions for processing of the data value depending on the TCA-config field type.
| string | Value to process | |
| array | TCA/columns array for field (independant of TCA for flexforms - coming from XML then) | |
| array | TSconfig (blank for flexforms for now) | |
| string | Table name | |
| array | The row array, always of the real record (also for flexforms) | |
| string | The field (empty for flexforms!) |
| t3lib_transferData::renderRecord_typesProc | ( | $ | totalRecordContent, | |
| $ | types_fieldConfig, | |||
| $ | tscPID, | |||
| $ | table, | |||
| $ | pid | |||
| ) | [inherited] |
Processing of the content in $totalRecordcontent based on settings in the types-configuration
| array | The array of values which has been processed according to their type (eg. "group" or "select") | |
| array | The "types" configuration for the current display of fields. | |
| integer | PAGE TSconfig PID | |
| string | Table name | |
| integer | PID value |
| t3lib_transferData::renderRecordRaw | ( | $ | table, | |
| $ | id, | |||
| $ | pid, | |||
| $ | row, | |||
| $ | TSconfig = '', |
|||
| $ | tscPID = 0 | |||
| ) | [inherited] |
This function performs processing on the input $row array and stores internally a corresponding array which contains processed values, ready to pass on to the TCEforms rendering in the frontend! The objective with this function is to prepare the content for handling in TCEforms. In opposite to renderRecord() this function do not prepare things like fetching TSconfig and others. The resulting, processed row will be returned.
| string | The table name | |
| string | The uid value of the record (integer). Can also be a string (NEW-something) if the record is a NEW record. | |
| integer | The pid integer. For existing records this is of course the row's "pid" field. For new records it can be either a page id (positive) or a pointer to another record from the SAME table (negative) after which the record should be inserted (or on same page) | |
| array | The row of the current record. If NEW record, then it may be loaded with default values (by eg. fetchRecord()). | |
| array | Tsconfig array | |
| integer | PAGE TSconfig pid |
| t3lib_transferData::selectAddForeign | ( | $ | dataAcc, | |
| $ | elements, | |||
| $ | fieldConfig, | |||
| $ | field, | |||
| $ | TSconfig, | |||
| $ | row, | |||
| $ | table | |||
| ) | [inherited] |
Adds the foreign record elements to $dataAcc, if any
| array | Array with numeric keys, containing values for the selector box, prepared for interface. We are going to add elements to this array as needed. | |
| array | The array of original elements - basically the field value exploded by "," | |
| array | Field configuration from TCA | |
| string | The field name | |
| array | TSconfig for the record | |
| array | The record | |
| array | The current table |
| t3lib_transferData::selectAddSpecial | ( | $ | dataAcc, | |
| $ | elements, | |||
| $ | specialKey | |||
| ) | [inherited] |
Adding "special" types to the $dataAcc array of selector items
| array | Array with numeric keys, containing values for the selector box, prepared for interface. We are going to add elements to this array as needed. | |
| array | The array of original elements - basically the field value exploded by "," | |
| string | The "special" key from the TCA config of the field. Determines the type of processing in here. |
| t3lib_transferData::sL | ( | $ | in | ) | [inherited] |
Local wrapper function for LANG->sL (returning language labels)
| string | Language label key |
1.6.1