
Public Member Functions | |
| start ($itemlist, $tablelist, $MMtable='', $MMuid=0) | |
| readList ($itemlist) | |
| readMM ($tableName, $uid) | |
| writeMM ($tableName, $uid, $prependTableName=0) | |
| getValueArray ($prependTableName='') | |
| convertPosNeg ($valueArray, $fTable, $nfTable) | |
| getFromDB () | |
| readyForInterface () | |
Public Attributes | |
| $fromTC = 1 | |
| $registerNonTableValues = 0 | |
| $tableArray = Array() | |
| $itemArray = Array() | |
| $nonTableArray = array() | |
| $additionalWhere = array() | |
| $checkIfDeleted = 1 | |
| $dbPaths = Array() | |
| $firstTable = '' | |
| $secondTable = '' | |
Definition at line 72 of file class.t3lib_loaddbgroup.php.
| t3lib_loadDBGroup::start | ( | $ | itemlist, | |
| $ | tablelist, | |||
| $ | MMtable = '', |
|||
| $ | MMuid = 0 | |||
| ) |
Initialization of the class.
| string | List of group/select items | |
| string | Comma list of tables, first table takes priority if no table is set for an entry in the list. | |
| string | Name of a MM table. | |
| integer | Local UID for MM lookup |
Definition at line 99 of file class.t3lib_loaddbgroup.php.
| t3lib_loadDBGroup::readList | ( | $ | itemlist | ) |
Explodes the item list and stores the parts in the internal arrays itemArray and tableArray from MM records.
| string | Item list |
Definition at line 140 of file class.t3lib_loaddbgroup.php.
| t3lib_loadDBGroup::readMM | ( | $ | tableName, | |
| $ | uid | |||
| ) |
Reads the record tablename/id into the internal arrays itemArray and tableArray from MM records. You can call this function after start if you supply no list to start()
| string | MM Tablename | |
| integer | Local UID |
Definition at line 186 of file class.t3lib_loaddbgroup.php.
| t3lib_loadDBGroup::writeMM | ( | $ | tableName, | |
| $ | uid, | |||
| $ | prependTableName = 0 | |||
| ) |
Writes the internal itemArray to MM table:
| string | MM table name | |
| integer | Local UID | |
| boolean | If set, then table names will always be written. |
Definition at line 215 of file class.t3lib_loaddbgroup.php.
| t3lib_loadDBGroup::getValueArray | ( | $ | prependTableName = '' |
) |
After initialization you can extract an array of the elements from the object. Use this function for that.
| boolean | If set, then table names will ALWAYS be prepended (unless its a _NO_TABLE value) |
Definition at line 251 of file class.t3lib_loaddbgroup.php.
| t3lib_loadDBGroup::convertPosNeg | ( | $ | valueArray, | |
| $ | fTable, | |||
| $ | nfTable | |||
| ) |
Converts id numbers from negative to positive.
| array | Array of [table]_[id] pairs. | |
| string | Foreign table (the one used for positive numbers) | |
| string | NEGative foreign table |
Definition at line 279 of file class.t3lib_loaddbgroup.php.
| t3lib_loadDBGroup::getFromDB | ( | ) |
Reads all records from internal tableArray into the internal ->results array where keys are table names and for each table, records are stored with uids as their keys. If $this->fromTC is set you can save a little memory since only uid,pid and a few other fields are selected.
Definition at line 301 of file class.t3lib_loaddbgroup.php.
| t3lib_loadDBGroup::readyForInterface | ( | ) |
Prepare items from itemArray to be transferred to the TCEforms interface (as a comma list)
Definition at line 336 of file class.t3lib_loaddbgroup.php.