Solutions Open Source

Référence de la classe recordHistory

Liste de tous les membres

Fonctions membres publiques

 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 ()

Attributs publics

 $maxSteps = 20
 $showDiff = 1
 $showSubElements = 1
 $showInsertDelete = 1
 $element
 $lastSyslogId
 $returnUrl
 $changeLog
 $showMarked = FALSE


Documentation des fonctions membres

recordHistory::recordHistory (  ) 

Constructor for the class

Renvoie:
void

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.

Renvoie:
HTML content for the module

recordHistory::toggleHighlight ( uid  ) 

toggles highlight state of record

Paramètres:
integer uid of sys_history entry
Renvoie:
[type] ...

recordHistory::performRollback ( diff  ) 

perform rollback

Paramètres:
array diff array to rollback
Renvoie:
void private

recordHistory::displaySettings (  ) 

Displays settings

Renvoie:
string HTML code to modify settings

recordHistory::displayHistory (  ) 

Shows the full change log

Renvoie:
string HTML for list, wrapped in a table.

recordHistory::displayMultipleDiff ( diff  ) 

Displays a diff over multiple fields including rollback links

Paramètres:
array difference array
Renvoie:
string HTML output

recordHistory::renderDiff ( entry,
table,
rollbackUid = 0 
)

Renders HTML table-rows with the comparison information of an sys_history entry record

Paramètres:
array sys_history entry record.
string The table name
integer If set to UID of record, display rollback links
Renvoie:
string HTML table private

recordHistory::createMultipleDiff (  ) 

Creates a diff between the current version of the records and the selected version

Renvoie:
array diff for many elements

recordHistory::createChangeLog (  ) 

Creates change log including sub-elements, filling $this->changeLog

Renvoie:
[type] ...

recordHistory::getHistoryData ( table,
uid 
)

Gets history and delete/insert data from sys_log and sys_history

Paramètres:
string DB table name
integer UID of record
Renvoie:
array history data of the record

recordHistory::generateTitle ( table,
uid 
)

generates the title and puts the record title behind

Paramètres:
[type] $table: ...
[type] $uid: ...
Renvoie:
[type] ...

recordHistory::createRollbackLink ( key,
alt = '',
type = 0 
)

creates a link for the rollback

Paramètres:
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
Renvoie:
string HTML output

recordHistory::linkPage ( str,
inparams = array(),
anchor = '',
title = '' 
)

Creates a link to the same page.

Paramètres:
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.
Renvoie:
string Link. private

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")

Paramètres:
string Table name
array The data array
Renvoie:
array The modified data array private

recordHistory::resolveElement ( table,
uid 
)

Convert input element reference to workspace version if any.

Paramètres:
string table of input element
integer UID of record
Renvoie:
integer converted UID of record

recordHistory::resolveShUid (  ) 

resolve sh_uid (used from log)

Renvoie:
[type] ...


Documentation des données membres

recordHistory::$maxSteps = 20

recordHistory::$showDiff = 1

recordHistory::$showSubElements = 1

recordHistory::$showInsertDelete = 1

recordHistory::$element

recordHistory::$lastSyslogId

recordHistory::$returnUrl

recordHistory::$changeLog

recordHistory::$showMarked = FALSE


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:41:18 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3