|
TYPO3 API
SVNRelease
|
Public Member Functions | |
| recordHistory () | |
| main () | |
| toggleHighlight ($uid) | |
| performRollback ($diff) | |
| displaySettings () | |
| displayHistory () | |
| displayMultipleDiff ($diff) | |
| renderDiff ($entry, $table, $rollbackUid=0) | |
| createMultipleDiff () | |
| createChangeLog () | |
| getHistoryData ($table, $uid) | |
| generateTitle ($table, $uid) | |
| createRollbackLink ($key, $alt='', $type=0) | |
| linkPage ($str, $inparams=array(), $anchor='', $title='') | |
| removeFilefields ($table, $dataArray) | |
| resolveElement ($table, $uid) | |
| resolveShUid () | |
Public Attributes | |
| $maxSteps = 20 | |
| $showDiff = 1 | |
| $showSubElements = 1 | |
| $showInsertDelete = 1 | |
| $element | |
| $lastSyslogId | |
| $returnUrl | |
| $changeLog | |
| $showMarked = FALSE | |
Definition at line 45 of file class.show_rechis.inc.
| recordHistory::createChangeLog | ( | ) |
Creates change log including sub-elements, filling $this->changeLog
Definition at line 646 of file class.show_rechis.inc.
References $changeLog, $GLOBALS, $res, $row, $TCA, $value, and getHistoryData().
Referenced by main(), and performRollback().
| recordHistory::createMultipleDiff | ( | ) |
Creates a diff between the current version of the records and the selected version
Definition at line 585 of file class.show_rechis.inc.
References $value.
Referenced by main().
| recordHistory::createRollbackLink | ( | $ | key, |
| $ | alt = '', |
||
| $ | type = 0 |
||
| ) |
creates a link for the rollback
| sting | parameter which is set to rollbackFields |
| string | optional, alternative label and title tag of image |
| integer | optional, type of rollback: 0 - ALL; 1 - element; 2 - field |
Definition at line 802 of file class.show_rechis.inc.
References linkPage(), and t3lib_iconWorks\skinImg().
Referenced by displayMultipleDiff().
| recordHistory::displayHistory | ( | ) |
Shows the full change log
Definition at line 341 of file class.show_rechis.inc.
References $GLOBALS, $pid, $SOBE, $TCA, $value, t3lib_BEfunc\calcAge(), t3lib_BEfunc\cshItem(), t3lib_BEfunc\datetime(), generateTitle(), t3lib_BEfunc\getItemLabel(), t3lib_BEfunc\getPagesTSconfig(), t3lib_BEfunc\getRecordRaw(), t3lib_iconWorks\getSpriteIcon(), t3lib_BEfunc\getUserNames(), t3lib_message_AbstractMessage\INFO, linkPage(), t3lib_div\makeInstance(), and renderDiff().
Referenced by main().
| recordHistory::displayMultipleDiff | ( | $ | diff | ) |
Displays a diff over multiple fields including rollback links
| array | difference array |
Definition at line 489 of file class.show_rechis.inc.
References $content, $SOBE, createRollbackLink(), generateTitle(), and renderDiff().
Referenced by main().
| recordHistory::displaySettings | ( | ) |
Displays settings
Definition at line 269 of file class.show_rechis.inc.
References $BE_USER, $content, $pid, $SOBE, t3lib_div\_GP(), t3lib_BEfunc\getRecordRaw(), and linkPage().
Referenced by main().
| recordHistory::generateTitle | ( | $ | table, |
| $ | uid | ||
| ) |
generates the title and puts the record title behind
| [type] | $table: ... |
| [type] | $uid: ... |
Definition at line 784 of file class.show_rechis.inc.
References $TCA, and t3lib_BEfunc\getRecordRaw().
Referenced by displayHistory(), and displayMultipleDiff().
| recordHistory::getHistoryData | ( | $ | table, |
| $ | uid | ||
| ) |
Gets history and delete/insert data from sys_log and sys_history
| string | DB table name |
| integer | UID of record |
Definition at line 682 of file class.show_rechis.inc.
References $changeLog, $GLOBALS, $res, $row, $TCA, debug(), and resolveElement().
Referenced by createChangeLog().
| recordHistory::linkPage | ( | $ | str, |
| $ | inparams = array(), |
||
| $ | anchor = '', |
||
| $ | title = '' |
||
| ) |
Creates a link to the same page.
| string | String to wrap in tags (must be htmlspecialchars()'ed prior to calling function) |
| array | Array of key/value pairs to override the default values with. |
| string | Possible anchor value. |
| string | Possible title. |
Definition at line 818 of file class.show_rechis.inc.
Referenced by createRollbackLink(), displayHistory(), and displaySettings().
| recordHistory::main | ( | ) |
Main function for the listing of history. It detects incoming variables like element reference, history element uid etc. and renders the correct screen.
Definition at line 81 of file class.show_rechis.inc.
References $content, $element, $GLOBALS, $res, t3lib_div\_GP(), createChangeLog(), createMultipleDiff(), displayHistory(), displayMultipleDiff(), displaySettings(), performRollback(), t3lib_utility_Http\redirect(), and toggleHighlight().
| recordHistory::performRollback | ( | $ | diff | ) |
perform rollback
| array | diff array to rollback |
Definition at line 155 of file class.show_rechis.inc.
References $value, createChangeLog(), t3lib_div\makeInstance(), and removeFilefields().
Referenced by main().
| recordHistory::recordHistory | ( | ) |
Constructor for the class
Definition at line 65 of file class.show_rechis.inc.
References t3lib_div\_GP(), resolveShUid(), and t3lib_div\sanitizeLocalUrl().
| recordHistory::removeFilefields | ( | $ | table, |
| $ | dataArray | ||
| ) |
Will traverse the field names in $dataArray and look in $TCA if the fields are of types which cannot be handled by the sys_history (that is currently group types with internal_type set to "file")
| string | Table name |
| array | The data array |
Definition at line 843 of file class.show_rechis.inc.
References $TCA, and t3lib_div\loadTCA().
Referenced by performRollback().
| recordHistory::renderDiff | ( | $ | entry, |
| $ | table, | ||
| $ | rollbackUid = 0 |
||
| ) |
Renders HTML table-rows with the comparison information of an sys_history entry record
| array | sys_history entry record. |
| string | The table name |
| integer | If set to UID of record, display rollback links |
Definition at line 539 of file class.show_rechis.inc.
References $content, $SOBE, $TCA, t3lib_BEfunc\getItemLabel(), t3lib_BEfunc\getProcessedValue(), t3lib_div\loadTCA(), and t3lib_div\makeInstance().
Referenced by displayHistory(), and displayMultipleDiff().
| recordHistory::resolveElement | ( | $ | table, |
| $ | uid | ||
| ) |
Convert input element reference to workspace version if any.
| string | table of input element |
| integer | UID of record |
Definition at line 865 of file class.show_rechis.inc.
References $GLOBALS, and t3lib_BEfunc\getWorkspaceVersionOfRecord().
Referenced by getHistoryData().
| recordHistory::resolveShUid | ( | ) |
resolve sh_uid (used from log)
Definition at line 879 of file class.show_rechis.inc.
References $GLOBALS, $res, and t3lib_div\_GP().
Referenced by recordHistory().
| recordHistory::toggleHighlight | ( | $ | uid | ) |
toggles highlight state of record
| integer | uid of sys_history entry |
Definition at line 136 of file class.show_rechis.inc.
References $GLOBALS, and $res.
Referenced by main().
| recordHistory::$changeLog |
Definition at line 58 of file class.show_rechis.inc.
Referenced by createChangeLog(), and getHistoryData().
| recordHistory::$element |
Definition at line 53 of file class.show_rechis.inc.
Referenced by main().
| recordHistory::$lastSyslogId |
Definition at line 54 of file class.show_rechis.inc.
| recordHistory::$maxSteps = 20 |
Definition at line 47 of file class.show_rechis.inc.
| recordHistory::$returnUrl |
Definition at line 55 of file class.show_rechis.inc.
| recordHistory::$showDiff = 1 |
Definition at line 48 of file class.show_rechis.inc.
| recordHistory::$showInsertDelete = 1 |
Definition at line 50 of file class.show_rechis.inc.
| recordHistory::$showMarked = FALSE |
Definition at line 59 of file class.show_rechis.inc.
| recordHistory::$showSubElements = 1 |
Definition at line 49 of file class.show_rechis.inc.
1.7.5.1