Public Member Functions | |
| init (&$tceForms) | |
| getSingleField_typeInline ($table, $field, $row, &$PA) | |
| renderForeignRecord ($parentUid, $rec, $config=array()) | |
| renderForeignRecordHeader ($parentUid, $foreign_table, $rec, $config, $isVirtualRecord=false) | |
| renderForeignRecordHeaderControl ($parentUid, $foreign_table, $rec, $config=array(), $isVirtualRecord=false) | |
| renderCombinationTable (&$rec, $appendFormFieldNames, $config=array()) | |
| renderPossibleRecordsSelector ($selItems, $conf, $uniqueIds=array()) | |
| renderPossibleRecordsSelectorTypeSelect ($selItems, $conf, &$PA, $uniqueIds=array()) | |
| renderPossibleRecordsSelectorTypeGroupDB ($conf, &$PA) | |
| getNewRecordLink ($objectPrefix, $conf=array()) | |
| addJavaScriptSortable ($objectId) | |
| processAjaxRequest ($params, &$ajaxObj) | |
| initForAJAX ($method, &$arguments) | |
| createNewRecord ($domObjectId, $foreignUid=0) | |
| setExpandedCollapsedState ($domObjectId, $expand, $collapse) | |
| getRelatedRecords ($table, $field, $row, &$PA, $config) | |
| getPossibleRecords ($table, $field, $row, $conf, $checkForConfField='foreign_selector') | |
| getUniqueIds ($records, $conf=array(), $splitValue=false) | |
| getRecord ($pid, $table, $uid, $cmd='') | |
| getNewRecord ($pid, $table) | |
| pushStructure ($table, $uid, $field= '', $config=array()) | |
| popStructure () | |
| updateStructureNames () | |
| getStructureItemName ($levelData) | |
| getStructureLevel ($level) | |
| getStructurePath ($structureDepth=-1) | |
| parseStructureString ($string, $loadConfig=true) | |
| checkConfiguration (&$config) | |
| checkAccess ($cmd, $table, $theUid) | |
| compareStructureConfiguration ($compare) | |
| normalizeUid ($string) | |
| wrapFormsSection ($section, $styleAttrs=array(), $tableAttrs=array()) | |
| isInlineChildAndLabelField ($table, $field) | |
| getStructureDepth () | |
| arrayCompareComplex ($subjectArray, $searchArray, $type= '') | |
| isAssociativeArray ($object) | |
| removeFromArray ($needle, $haystack, $strict=null) | |
| getPossibleRecordsFlat ($possibleRecords) | |
| getPossibleRecordsSelectorConfig ($conf, $field= '') | |
| getPossibleRecordsSelectorType ($config) | |
| skipField ($table, $field, $row, $config) | |
| getJSON ($jsonArray) | |
| getExpandedCollapsedState ($table, $uid) | |
| updateInlineView (&$uc, &$tce) | |
| getLevelMargin () | |
Public Attributes | |
| $fObj | |
| $backPath | |
| $isAjaxCall = false | |
| $inlineStructure = array() | |
| $inlineFirstPid | |
| $inlineNames = array() | |
| $inlineData = array() | |
| $inlineView = array() | |
| $inlineCount = 0 | |
| $inlineStyles = array() | |
| $prependNaming = 'data' | |
| $prependFormFieldNames | |
| $prependCmdFieldNames | |
Protected Member Functions | |
| initHookObjects () | |
| renderMainFields ($table, $row) | |
| getLevelInteractionLink ($type, $objectPrefix, $conf=array()) | |
| processAjaxRequestConstruct (&$ajaxArguments) | |
| getCommonScriptCalls (&$jsonArray, $config) | |
| synchronizeLocalizeRecords ($domObjectId, $type) | |
| getExecuteChangesJsonArray ($oldItemList, $newItemList) | |
| getRelatedRecordsArray ($pid, $table, $itemList) | |
| getRelatedRecordsUidArray ($itemList) | |
| getLocalizationDifferences ($table, array $options, array $recordsOriginal, array $recordsLocalization) | |
| getNewRecordPid ($table, $parentPid=null) | |
| getHeadTags () | |
| wrapWithAnchor ($text, $link, $attributes=array()) | |
Protected Attributes | |
| $hookObjects = array() | |
88: class t3lib_TCEforms_inline 109: function init(&$tceForms) 127: function getSingleField_typeInline($table,$field,$row,&$PA)
SECTION: Regular rendering of forms, fields, etc. 263: function renderForeignRecord($parentUid, $rec, $config = array()) 319: function renderForeignRecordHeader($parentUid, $foreign_table,$rec,$config = array()) 375: function renderForeignRecordHeaderControl($table,$row,$config = array()) 506: function renderCombinationTable(&$rec, $appendFormFieldNames, $config = array()) 560: function renderPossibleRecordsSelector($selItems, $conf, $uniqueIds=array()) 627: function addJavaScript() 643: function addJavaScriptSortable($objectId)
SECTION: Handling of AJAX calls 665: function createNewRecord($domObjectId, $foreignUid = 0) 755: function getJSON($jsonArray) 770: function getNewRecordLink($objectPrefix, $conf = array())
SECTION: Get data from database and handle relations 807: function getRelatedRecords($table,$field,$row,&$PA,$config) 839: function getPossibleRecords($table,$field,$row,$conf,$checkForConfField='foreign_selector') 885: function getUniqueIds($records, $conf=array()) 905: function getRecord($pid, $table, $uid, $cmd='') 929: function getNewRecord($pid, $table)
SECTION: Structure stack for handling inline objects/levels 951: function pushStructure($table, $uid, $field = '', $config = array()) 967: function popStructure() 984: function updateStructureNames() 1000: function getStructureItemName($levelData) 1015: function getStructureLevel($level) 1032: function getStructurePath($structureDepth = -1) 1057: function parseStructureString($string, $loadConfig = false)
SECTION: Helper functions 1098: function checkConfiguration(&$config) 1123: function checkAccess($cmd, $table, $theUid) 1185: function compareStructureConfiguration($compare) 1199: function normalizeUid($string) 1213: function wrapFormsSection($section, $styleAttrs = array(), $tableAttrs = array()) 1242: function isInlineChildAndLabelField($table, $field) 1258: function getStructureDepth() 1295: function arrayCompareComplex($subjectArray, $searchArray, $type = '') 1349: function isAssociativeArray($object) 1364: function getPossibleRecordsFlat($possibleRecords) 1383: function skipField($table, $field, $row, $config)
TOTAL FUNCTIONS: 35 (This index is automatically created/updated by the extension "extdeveval")
Definition at line 93 of file class.t3lib_tceforms_inline.php.
| t3lib_TCEforms_inline::addJavaScriptSortable | ( | $ | objectId | ) |
Add Sortable functionality using script.acolo.us "Sortable".
| string | $objectId: The container id of the object - elements inside will be sortable |
Definition at line 935 of file class.t3lib_tceforms_inline.php.
Referenced by getSingleField_typeInline().
| t3lib_TCEforms_inline::arrayCompareComplex | ( | $ | subjectArray, | |
| $ | searchArray, | |||
| $ | type = '' | |||
| ) |
Handles complex comparison requests on an array. A request could look like the following:
$searchArray = array( 'AND' => array( 'key1' => 'value1', 'key2' => 'value2', 'OR' => array( 'subarray' => array( 'subkey' => 'subvalue' ), 'key3' => 'value3', 'key4' => 'value4' ) ) );
It is possible to use the array keys 'AND.1', 'AND.2', etc. to prevent overwriting the sub-array. It could be neccessary, if you use complex comparisons.
The example above means, key1 *AND* key2 (and their values) have to match with the $subjectArray and additional one *OR* key3 or key4 have to meet the same condition. It is also possible to compare parts of a sub-array (e.g. "subarray"), so this function recurses down one level in that sub-array.
| array | $subjectArray: The array to search in | |
| array | $searchArray: The array with keys and values to search for | |
| string | $type: Use 'AND' or 'OR' for comparision |
Definition at line 2033 of file class.t3lib_tceforms_inline.php.
References $key, $value, and isAssociativeArray().
Referenced by compareStructureConfiguration().
| t3lib_TCEforms_inline::checkAccess | ( | $ | cmd, | |
| $ | table, | |||
| $ | theUid | |||
| ) |
Checks the page access rights (Code for access check mostly taken from alt_doc.php) as well as the table access rights of the user.
| string | $cmd: The command that sould be performed ('new' or 'edit') | |
| string | $table: The table to check access for | |
| string | $theUid: The record uid of the table |
Definition at line 1856 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, debug(), t3lib_BEfunc::fixVersioningPid(), t3lib_BEfunc::getRecord(), and t3lib_div::testInt().
Referenced by renderForeignRecord().
| t3lib_TCEforms_inline::checkConfiguration | ( | &$ | config | ) |
Does some checks on the TCA configuration of the inline field to render.
| array | $config: Reference to the TCA field configuration | |
| string | $table: The table name of the record | |
| string | $field: The field name which this element is supposed to edit | |
| array | $row: The record data array of the parent |
Definition at line 1806 of file class.t3lib_tceforms_inline.php.
References $GLOBALS.
Referenced by getSingleField_typeInline().
| t3lib_TCEforms_inline::compareStructureConfiguration | ( | $ | compare | ) |
Check the keys and values in the $compare array against the ['config'] part of the top level of the stack. A boolean value is return depending on how the comparison was successful.
| array | $compare: keys and values to compare to the ['config'] part of the top level of the stack |
Definition at line 1923 of file class.t3lib_tceforms_inline.php.
References arrayCompareComplex(), and getStructureLevel().
Referenced by skipField().
| t3lib_TCEforms_inline::createNewRecord | ( | $ | domObjectId, | |
| $ | foreignUid = 0 | |||
| ) |
Handle AJAX calls to show a new inline-record of the given table. Normally this method is never called from inside TYPO3. Always from outside by AJAX.
| string | $domObjectId: The calling object in hierarchy, that requested a new record. | |
| string | $foreignUid: If set, the new record should be inserted after that one. |
Definition at line 1091 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, getCommonScriptCalls(), getNewRecord(), getPossibleRecordsSelectorConfig(), getRecord(), getStructureLevel(), renderForeignRecord(), and t3lib_div::testInt().
Referenced by initForAJAX(), and processAjaxRequest().
| t3lib_TCEforms_inline::getCommonScriptCalls | ( | &$ | jsonArray, | |
| $ | config | |||
| ) | [protected] |
Determines and sets several script calls to a JSON array, that would have been executed if processed in non-AJAX mode.
| array | &$jsonArray: Reference of the array to be used for JSON | |
| array | $config: The configuration of the IRRE field of the parent record |
Definition at line 1049 of file class.t3lib_tceforms_inline.php.
References getHeadTags().
Referenced by createNewRecord(), and synchronizeLocalizeRecords().
| t3lib_TCEforms_inline::getExecuteChangesJsonArray | ( | $ | oldItemList, | |
| $ | newItemList | |||
| ) | [protected] |
Generates a JSON array which executes the changes and thus updates the forms view.
| string | $oldItemList: List of related child reocrds before changes were made (old) | |
| string | $newItemList: List of related child records after changes where made (new) |
Definition at line 1229 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, $row, getRecord(), getRelatedRecordsUidArray(), getStructureLevel(), and renderForeignRecord().
Referenced by synchronizeLocalizeRecords().
| t3lib_TCEforms_inline::getExpandedCollapsedState | ( | $ | table, | |
| $ | uid | |||
| ) |
Checks if a uid of a child table is in the inline view settings.
| string | $table: Name of the child table | |
| integer | $uid: uid of the the child record |
Definition at line 2274 of file class.t3lib_tceforms_inline.php.
Referenced by renderForeignRecord().
| t3lib_TCEforms_inline::getHeadTags | ( | ) | [protected] |
Parses the HTML tags that would have been inserted to the <head> of a HTML document and returns the found tags as multidimensional array.
Definition at line 2342 of file class.t3lib_tceforms_inline.php.
References t3lib_div::makeInstance().
Referenced by getCommonScriptCalls().
| t3lib_TCEforms_inline::getJSON | ( | $ | jsonArray | ) |
Creates recursively a JSON literal from a mulidimensional associative array. Uses Services_JSON (http://mike.teczno.com/JSON/doc/)
| array | $jsonArray: The array (or part of) to be transformed to JSON |
Definition at line 2262 of file class.t3lib_tceforms_inline.php.
| t3lib_TCEforms_inline::getLevelInteractionLink | ( | $ | type, | |
| $ | objectPrefix, | |||
| $ | conf = array() | |||
| ) | [protected] |
Creates the HTML code of a general link to be used on a level of inline children. The possible keys for the parameter $type are 'newRecord', 'localize' and 'synchronize'.
| string | $type: The link type, values are 'newRecord', 'localize' and 'synchronize'. | |
| string | $objectPrefix: The "path" to the child record to create (e.g. 'data[parten_table][parent_uid][parent_field][child_table]') | |
| array | $conf: TCA configuration of the parent(!) field |
Definition at line 877 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, and wrapWithAnchor().
Referenced by getNewRecordLink(), and getSingleField_typeInline().
| t3lib_TCEforms_inline::getLevelMargin | ( | ) |
Returns the the margin in pixels, that is used for each new inline level.
Definition at line 2332 of file class.t3lib_tceforms_inline.php.
| t3lib_TCEforms_inline::getLocalizationDifferences | ( | $ | table, | |
| array $ | options, | |||
| array $ | recordsOriginal, | |||
| array $ | recordsLocalization | |||
| ) | [protected] |
Gets the difference between current localized structure and the original language structure. If there are records which once were localized but don't exist in the original version anymore, the record row is marked with '__remove'. If there are records which can be localized and exist only in the original version, the record row is marked with '__create' and '__virtual'.
| string | $table: The table name of the parent records | |
| array | $options: Options defining what kind of records to display | |
| array | $recordsOriginal: The uids of the child records of the original language | |
| array | $recordsLocalization: The uids of the child records of the current localization |
Definition at line 1433 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, and $row.
Referenced by getRelatedRecords().
| t3lib_TCEforms_inline::getNewRecord | ( | $ | pid, | |
| $ | table | |||
| ) |
Wrapper. Calls getRecord in case of a new record should be created.
| integer | $pid: The pid of the page the record should be stored (only relevant for NEW records) | |
| string | $table: The table to fetch data from (= foreign_table) |
Definition at line 1612 of file class.t3lib_tceforms_inline.php.
References $pid, getNewRecordPid(), and getRecord().
Referenced by createNewRecord(), and renderCombinationTable().
| t3lib_TCEforms_inline::getNewRecordLink | ( | $ | objectPrefix, | |
| $ | conf = array() | |||
| ) |
Creates a link/button to create new records
| string | $objectPrefix: The "path" to the child record to create (e.g. '[parten_table][parent_uid][parent_field][child_table]') | |
| array | $conf: TCA configuration of the parent(!) field |
Definition at line 924 of file class.t3lib_tceforms_inline.php.
References getLevelInteractionLink().
| t3lib_TCEforms_inline::getNewRecordPid | ( | $ | table, | |
| $ | parentPid = null | |||
| ) | [protected] |
Determines the corrected pid to be used for a new record. The pid to be used can be defined by a Page TSconfig.
| string | $table: The table name | |
| integer | $parentPid: The pid of the parent record |
Definition at line 1569 of file class.t3lib_tceforms_inline.php.
References t3lib_div::testInt().
Referenced by getNewRecord().
| t3lib_TCEforms_inline::getPossibleRecords | ( | $ | table, | |
| $ | field, | |||
| $ | row, | |||
| $ | conf, | |||
| $ | checkForConfField = 'foreign_selector' | |||
| ) |
Get possible records. Copied from TCEform and modified.
| string | The table name of the record | |
| string | The field name which this element is supposed to edit | |
| array | The record data array where the value(s) for the field can be found | |
| array | An array with additional configuration options. | |
| string | $checkForConfField: For which field in the foreign_table the possible records should be fetched |
Definition at line 1472 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, $row, $value, getPossibleRecordsSelectorConfig(), t3lib_div::inList(), t3lib_div::keepItemsInArray(), and t3lib_div::trimExplode().
Referenced by getSingleField_typeInline().
| t3lib_TCEforms_inline::getPossibleRecordsFlat | ( | $ | possibleRecords | ) |
Makes a flat array from the $possibleRecords array. The key of the flat array is the value of the record, the value of the flat array is the label of the record.
| array | $possibleRecords: The possibleRecords array (for select fields) |
Definition at line 2128 of file class.t3lib_tceforms_inline.php.
Referenced by getSingleField_typeInline().
| t3lib_TCEforms_inline::getPossibleRecordsSelectorConfig | ( | $ | conf, | |
| $ | field = '' | |||
| ) |
Determine the configuration and the type of a record selector.
| array | $conf: TCA configuration of the parent(!) field |
Definition at line 2144 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, and getPossibleRecordsSelectorType().
Referenced by createNewRecord(), getPossibleRecords(), getSingleField_typeInline(), renderForeignRecordHeader(), and renderPossibleRecordsSelector().
| t3lib_TCEforms_inline::getPossibleRecordsSelectorType | ( | $ | config | ) |
Determine the type of a record selector, e.g. select or group/db.
| array | $config: TCE configuration of the selector |
Definition at line 2184 of file class.t3lib_tceforms_inline.php.
Referenced by getPossibleRecordsSelectorConfig().
| t3lib_TCEforms_inline::getRecord | ( | $ | pid, | |
| $ | table, | |||
| $ | uid, | |||
| $ | cmd = '' | |||
| ) |
Get a single record row for a TCA table from the database. t3lib_transferData is used for "upgrading" the values, especially the relations.
| integer | $pid: The pid of the page the record should be stored (only relevant for NEW records) | |
| string | $table: The table to fetch data from (= foreign_table) | |
| string | $uid: The uid of the record to fetch, or the pid if a new record should be created | |
| string | $cmd: The command to perform, empty or 'new' |
Definition at line 1591 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, and t3lib_div::makeInstance().
Referenced by createNewRecord(), getExecuteChangesJsonArray(), getNewRecord(), getRelatedRecords(), getRelatedRecordsArray(), renderCombinationTable(), and synchronizeLocalizeRecords().
| t3lib_TCEforms_inline::getRelatedRecords | ( | $ | table, | |
| $ | field, | |||
| $ | row, | |||
| &$ | PA, | |||
| $ | config | |||
| ) |
Get the related records of the embedding item, this could be 1:n, m:n. Returns an associative array with the keys records and count. 'count' contains only real existing records on the current parent record.
| string | $table: The table name of the record | |
| string | $field: The field name which this element is supposed to edit | |
| array | $row: The record data array where the value(s) for the field can be found | |
| array | $PA: An array with additional configuration options. | |
| array |
|
Definition at line 1337 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, $pid, $row, t3lib_BEfunc::getInlineLocalizationMode(), getLocalizationDifferences(), getRecord(), and getRelatedRecordsArray().
Referenced by getSingleField_typeInline().
| t3lib_TCEforms_inline::getRelatedRecordsArray | ( | $ | pid, | |
| $ | table, | |||
| $ | itemList | |||
| ) | [protected] |
Gets the related records of the embedding item, this could be 1:n, m:n.
| integer | $pid: The pid of the parent record | |
| string | $table: The table name of the record | |
| string | $itemList: The list of related child records |
Definition at line 1389 of file class.t3lib_tceforms_inline.php.
References $pid, getRecord(), and getRelatedRecordsUidArray().
Referenced by getRelatedRecords().
| t3lib_TCEforms_inline::getRelatedRecordsUidArray | ( | $ | itemList | ) | [protected] |
Gets an array with the uids of related records out of a list of items. This list could contain more information than required. This methods just extracts the uids.
| string | $itemList: The list of related child records |
Definition at line 1411 of file class.t3lib_tceforms_inline.php.
References $key, $value, and t3lib_div::trimExplode().
Referenced by getExecuteChangesJsonArray(), and getRelatedRecordsArray().
| t3lib_TCEforms_inline::getSingleField_typeInline | ( | $ | table, | |
| $ | field, | |||
| $ | row, | |||
| &$ | PA | |||
| ) |
Generation of TCEform elements of the type "inline" This will render inline-relational-record sets. Relations.
| string | $table: The table name of the record | |
| string | $field: The field name which this element is supposed to edit | |
| array | $row: The record data array where the value(s) for the field can be found | |
| array | $PA: An array with additional configuration options. |
Definition at line 171 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, $inlineView, $row, addJavaScriptSortable(), checkConfiguration(), getLevelInteractionLink(), getPossibleRecords(), getPossibleRecordsFlat(), getPossibleRecordsSelectorConfig(), t3lib_BEfunc::getRecord(), getRelatedRecords(), getStructureDepth(), getStructureLevel(), getUniqueIds(), t3lib_div::intInRange(), t3lib_BEfunc::isTableLocalizable(), t3lib_div::loadTCA(), popStructure(), pushStructure(), renderForeignRecord(), renderPossibleRecordsSelector(), and t3lib_div::testInt().
| t3lib_TCEforms_inline::getStructureDepth | ( | ) |
Get the depth of the stable structure stack. (count($this->inlineStructure['stable'])
Definition at line 1996 of file class.t3lib_tceforms_inline.php.
Referenced by getSingleField_typeInline(), and skipField().
| t3lib_TCEforms_inline::getStructureItemName | ( | $ | levelData | ) |
Create a name/id for usage in HTML output of a level of the structure stack.
| array | $levelData: Array of a level of the structure stack (containing the keys table, uid and field) |
Definition at line 1693 of file class.t3lib_tceforms_inline.php.
Referenced by getStructurePath(), and updateStructureNames().
| t3lib_TCEforms_inline::getStructureLevel | ( | $ | level | ) |
Get a level from the stack and return the data. If the $level value is negative, this function works top-down, if the $level value is positive, this function works bottom-up.
| integer | $level: Which level to return |
Definition at line 1711 of file class.t3lib_tceforms_inline.php.
Referenced by compareStructureConfiguration(), createNewRecord(), getExecuteChangesJsonArray(), getSingleField_typeInline(), getStructurePath(), isInlineChildAndLabelField(), renderForeignRecord(), setExpandedCollapsedState(), skipField(), synchronizeLocalizeRecords(), and updateStructureNames().
| t3lib_TCEforms_inline::getStructurePath | ( | $ | structureDepth = -1 |
) |
Get the identifiers of a given depth of level, from the top of the stack to the bottom. An identifier consists looks like [
| integer | $structureDepth: How much levels to output, beginning from the top of the stack |
Definition at line 1728 of file class.t3lib_tceforms_inline.php.
References getStructureItemName(), and getStructureLevel().
| t3lib_TCEforms_inline::getUniqueIds | ( | $ | records, | |
| $ | conf = array(), |
|||
| $ | splitValue = false | |||
| ) |
Gets the uids of a select/selector that should be unique an have already been used.
| array | $records: All inline records on this level | |
| array | $conf: The TCA field configuration of the inline field to be rendered | |
| boolean | $splitValue: for usage with group/db, values come like "tx_table_123|Title%20abc", but we need "tx_table" and "123" |
Definition at line 1535 of file class.t3lib_tceforms_inline.php.
References $value, and t3lib_div::trimExplode().
Referenced by getSingleField_typeInline().
| t3lib_TCEforms_inline::init | ( | &$ | tceForms | ) |
Intialize an instance of t3lib_TCEforms_inline
| t3lib_TCEforms | $tceForms: Reference to an TCEforms instance |
Definition at line 125 of file class.t3lib_tceforms_inline.php.
References initHookObjects().
| t3lib_TCEforms_inline::initForAJAX | ( | $ | method, | |
| &$ | arguments | |||
| ) |
Initialize environment for AJAX calls
| string | $method: Name of the method to be called | |
| array | $arguments: Arguments to be delivered to the method |
Definition at line 1075 of file class.t3lib_tceforms_inline.php.
References createNewRecord().
| t3lib_TCEforms_inline::initHookObjects | ( | ) | [protected] |
Initialized the hook objects for this class. Each hook object has to implement the interface t3lib_tceformsInlineHook.
Definition at line 141 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, and t3lib_div::getUserObj().
Referenced by init().
| t3lib_TCEforms_inline::isAssociativeArray | ( | $ | object | ) |
Checks whether an object is an associative array.
| mixed | $object: The object to be checked |
Definition at line 2098 of file class.t3lib_tceforms_inline.php.
Referenced by arrayCompareComplex().
| t3lib_TCEforms_inline::isInlineChildAndLabelField | ( | $ | table, | |
| $ | field | |||
| ) |
Checks if the $table is the child of a inline type AND the $field is the label field of this table. This function is used to dynamically update the label while editing. This has no effect on labels, that were processed by a TCEmain-hook on saving.
| string | $table: The table to check | |
| string | $field: The field on this table to check |
Definition at line 1980 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, and getStructureLevel().
| t3lib_TCEforms_inline::normalizeUid | ( | $ | string | ) |
Normalize a relation "uid" published by transferData, like "1|Company%201"
| string | $string: A transferData reference string, containing the uid |
Definition at line 1937 of file class.t3lib_tceforms_inline.php.
Referenced by renderForeignRecord().
| t3lib_TCEforms_inline::parseStructureString | ( | $ | string, | |
| $ | loadConfig = true | |||
| ) |
Convert the DOM object-id of an inline container to an array. The object-id could look like 'data[inline][tx_mmftest_company][1][employees]'. The result is written to $this->inlineStructure. There are two keys:
| string | $domObjectId: The DOM object-id | |
| boolean | $loadConfig: Load the TCA configuration for that level (default: true) |
Definition at line 1753 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, t3lib_BEfunc::getInlineLocalizationMode(), t3lib_div::loadTCA(), and updateStructureNames().
Referenced by processAjaxRequest(), and setExpandedCollapsedState().
| t3lib_TCEforms_inline::popStructure | ( | ) |
Remove the item on top of the structure stack and return it.
Definition at line 1654 of file class.t3lib_tceforms_inline.php.
References updateStructureNames().
Referenced by getSingleField_typeInline().
| t3lib_TCEforms_inline::processAjaxRequest | ( | $ | params, | |
| &$ | ajaxObj | |||
| ) |
General processor for AJAX requests concerning IRRE. (called by typo3/ajax.php)
| array | $params: additional parameters (not used here) | |
| TYPO3AJAX | &$ajaxObj: the TYPO3AJAX object of this request |
Definition at line 957 of file class.t3lib_tceforms_inline.php.
References $ajaxObj, $GLOBALS, t3lib_div::_GP(), createNewRecord(), parseStructureString(), processAjaxRequestConstruct(), setExpandedCollapsedState(), and synchronizeLocalizeRecords().
| t3lib_TCEforms_inline::processAjaxRequestConstruct | ( | &$ | ajaxArguments | ) | [protected] |
Construct runtime environment for Inline Relational Record Editing.
| array | &$ajaxArguments: The arguments to be processed by the AJAX request |
Definition at line 996 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, $SOBE, $TYPO3_CONF_VARS, t3lib_div::_GP(), t3lib_BEfunc::getModuleData(), and t3lib_div::makeInstance().
Referenced by processAjaxRequest().
| t3lib_TCEforms_inline::pushStructure | ( | $ | table, | |
| $ | uid, | |||
| $ | field = '', |
|||
| $ | config = array() | |||
| ) |
Add a new level on top of the structure stack. Other functions can access the stack and determine, if there's possibly a endless loop.
| string | $table: The table name of the record | |
| string | $uid: The uid of the record that embeds the inline data | |
| string | $field: The field name which this element is supposed to edit | |
| array | $config: The TCA-configuration of the inline field |
Definition at line 1637 of file class.t3lib_tceforms_inline.php.
References t3lib_BEfunc::getInlineLocalizationMode(), and updateStructureNames().
Referenced by getSingleField_typeInline().
| t3lib_TCEforms_inline::removeFromArray | ( | $ | needle, | |
| $ | haystack, | |||
| $ | strict = null | |||
| ) |
Remove an element from an array.
| mixed | $needle: The element to be removed. | |
| array | $haystack: The array the element should be removed from. | |
| mixed | $strict: Search elements strictly. |
Definition at line 2113 of file class.t3lib_tceforms_inline.php.
Referenced by setExpandedCollapsedState().
| t3lib_TCEforms_inline::renderCombinationTable | ( | &$ | rec, | |
| $ | appendFormFieldNames, | |||
| $ | config = array() | |||
| ) |
Render a table with TCEforms, that occurs on a intermediate table but should be editable directly, so two tables are combined (the intermediate table with attributes and the sub-embedded table). -> This is a direct embedding over two levels!
| array | $rec: The table record of the child/embedded table (normaly post-processed by t3lib_transferData) | |
| string | $appendFormFieldNames: The [ | |
| array |
|
Definition at line 700 of file class.t3lib_tceforms_inline.php.
References $GLOBALS, getNewRecord(), getRecord(), renderMainFields(), t3lib_div::testInt(), and wrapFormsSection().
Referenced by renderForeignRecord().
| t3lib_TCEforms_inline::renderForeignRecord | ( | $ | parentUid, | |
| $ | rec, | |||
| $ | config = array() | |||
| ) |
Render the form-fields of a related (foreign) record.
| string | $parentUid: The uid of the parent (embedding) record (uid or NEW...) | |
| array | $rec: The table record of the child/embedded table (normaly post-processed by t3lib_transferData) | |
| array |
|
Definition at line 356 of file class.t3lib_tceforms_inline.php.
References checkAccess(), getExpandedCollapsedState(), getStructureLevel(), normalizeUid(), renderCombinationTable(), renderForeignRecordHeader(), renderMainFields(), t3lib_div::testInt(), and wrapFormsSection().
Referenced by createNewRecord(), getExecuteChangesJsonArray(), and getSingleField_typeInline().
| t3lib_TCEforms_inline::renderForeignRecordHeader | ( | $ | parentUid, |
| $ | foreign_table, | ||