Documentation TYPO3 par Ameos |
Definition at line 54 of file class.tx_version_cm1.php.
tx_version_cm1::main | ( | &$ | backRef, | |
$ | menuItems, | |||
$ | table, | |||
$ | uid | |||
) |
Main function, adding the item to input menuItems array
object | References to parent clickmenu objects. | |
array | Array of existing menu items accumulated. New element added to this. | |
string | Table name of the element | |
integer | Record UID of the element |
Definition at line 65 of file class.tx_version_cm1.php.
References t3lib_extMgm::extRelPath(), and includeLL().
tx_version_cm1::includeLL | ( | ) |
Includes the [extDir]/locallang.php and returns the $LOCAL_LANG array found in that file.
Definition at line 120 of file class.tx_version_cm1.php.
Referenced by main().
tx_version_cm1::menuConfig | ( | ) |
Initialize menu configuration
Reimplemented from t3lib_SCbase.
Definition at line 139 of file index.php.
References t3lib_div::_GP(), t3lib_BEfunc::deleteClause(), and t3lib_BEfunc::getModuleData().
tx_version_cm1::main | ( | ) |
Main function of the module. Write the content to $this->content
Definition at line 176 of file index.php.
References t3lib_div::_GP(), t3lib_div::getIndpEnv(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::isModuleSetInTBE_MODULES(), t3lib_div::makeInstance(), t3lib_BEfunc::readPageAccess(), versioningMgm(), and workspaceMgm().
tx_version_cm1::printContent | ( | ) |
tx_version_cm1::versioningMgm | ( | ) |
Management of versions for record
Definition at line 329 of file index.php.
References $content, t3lib_div::_POST(), adminLinks(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getProcessedValue(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordTitle(), t3lib_div::inList(), t3lib_div::loadTCA(), t3lib_div::makeInstance(), pageSubContent(), and t3lib_BEfunc::selectVersionsOfRecord().
Referenced by main().
tx_version_cm1::pageSubContent | ( | $ | pid, | |
$ | c = 0 | |||
) |
Recursively look for children for page version with $pid
integer | UID of page record for which to look up sub-elements following that version | |
integer | Counter, do not set (limits to 100 levels) |
Definition at line 492 of file index.php.
References $content, t3lib_BEfunc::deleteClause(), lookForOwnVersions(), and t3lib_div::removeArrayEntryByValue().
Referenced by versioningMgm().
tx_version_cm1::lookForOwnVersions | ( | $ | table, | |
$ | uid | |||
) |
Look for number of versions of a record
string | Table name | |
integer | Record uid |
Definition at line 546 of file index.php.
References t3lib_BEfunc::selectVersionsOfRecord().
Referenced by pageSubContent().
tx_version_cm1::adminLinks | ( | $ | table, | |
$ | row | |||
) |
Administrative links for a table / record
string | Table name | |
array | Record for which administrative links are generated. |
Definition at line 563 of file index.php.
References $pageModule, t3lib_extMgm::extRelPath(), t3lib_extMgm::isLoaded(), and t3lib_BEfunc::isModuleSetInTBE_MODULES().
Referenced by versioningMgm().
tx_version_cm1::workspaceMgm | ( | ) |
Management of workspace for page ID Called when $this->id is set.
Definition at line 635 of file index.php.
References t3lib_div::_POST(), displayWorkspaceOverview(), displayWorkspaceOverview_allStageCmd(), t3lib_BEfunc::getFuncCheck(), t3lib_BEfunc::getFuncMenu(), t3lib_div::getIndpEnv(), and publishAction().
Referenced by main().
tx_version_cm1::displayWorkspaceOverview | ( | ) |
Rendering the overview of versions in the current workspace
Definition at line 695 of file index.php.
References t3lib_div::_GP(), t3lib_BEfunc::blindUserNames(), displayWorkspaceOverview_list(), displayWorkspaceOverview_setInPageArray(), t3lib_BEfunc::getListGroupNames(), t3lib_BEfunc::getUserNames(), and t3lib_div::makeInstance().
Referenced by workspaceMgm().
tx_version_cm1::displayWorkspaceOverview_list | ( | $ | pArray | ) |
Rendering the content for the publish / review overview: (Made for internal recursive calling)
array | Storage of the elements to display (see displayWorkspaceOverview() / displayWorkspaceOverview_setInPageArray()) |
Definition at line 765 of file index.php.
References createDiffView(), displayWorkspaceOverview_commandLinks(), displayWorkspaceOverview_stageCmd(), formatCount(), formatVerId(), formatWorkspace(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordTitle(), subElements(), and versionsInOtherWS().
Referenced by displayWorkspaceOverview().
tx_version_cm1::displayWorkspaceOverview_setInPageArray | ( | &$ | pArray, | |
$ | table, | |||
$ | row | |||
) |
Building up of the $pArray (Internal)
array | Array that is built up with the page tree structure | |
string | Table name | |
array | Table row |
Definition at line 930 of file index.php.
Referenced by displayWorkspaceOverview().
tx_version_cm1::displayWorkspaceOverview_allStageCmd | ( | ) |
Links to stage change of a version
string | Table name | |
array | Offline record (version) |
Definition at line 943 of file index.php.
References t3lib_div::_GP(), and t3lib_BEfunc::getRecordWSOL().
Referenced by workspaceMgm().
tx_version_cm1::formatVerId | ( | $ | verId | ) |
Formatting the version number for HTML output
integer | Version number |
Definition at line 1034 of file index.php.
Referenced by displayWorkspaceOverview_list().
tx_version_cm1::formatWorkspace | ( | $ | wsid | ) |
Formatting workspace ID into a visual label
integer | Workspace ID |
Definition at line 1044 of file index.php.
References t3lib_BEfunc::deleteClause().
Referenced by displayWorkspaceOverview_list().
tx_version_cm1::formatCount | ( | $ | count | ) |
Format publishing count for version (lifecycle state)
integer | t3ver_count value (number of times it has been online) |
Definition at line 1071 of file index.php.
Referenced by displayWorkspaceOverview_list().
tx_version_cm1::versionsInOtherWS | ( | $ | table, | |
$ | uid | |||
) |
Looking for versions of a record in other workspaces than the current
string | Table name | |
integer | Record uid |
Definition at line 1098 of file index.php.
References t3lib_BEfunc::deleteClause().
Referenced by displayWorkspaceOverview_list().
tx_version_cm1::showStageChangeLog | ( | $ | table, | |
$ | id, | |||
$ | stageCommands | |||
) |
Looks up stage changes for version and displays a formatted view on mouseover.
string | Table name | |
integer | Record ID | |
string | HTML string to wrap the mouseover around (should be stage change links) |
Definition at line 1128 of file index.php.
References t3lib_SCbase::$id.
tx_version_cm1::subElements | ( | $ | uid, | |
$ | treeLevel, | |||
$ | origId = 0 | |||
) |
Creates display of sub elements of a page when the swap mode is either "Page" or "Branch" (0 / ALL)
integer | Page uid (for either online or offline version, but it MUST have swapmode/treeLevel set to >0 (not -1 indicating element versioning) | |
integer | The treeLevel value, >0 indicates "branch" while 0 means page+content. (-1 would have meant element versioning, but that should never happen for a call to this function!) | |
integer | For offline versions; This is t3ver_oid, the original ID of the online page. |
Definition at line 1177 of file index.php.
References t3lib_BEfunc::getRecord(), t3lib_div::makeInstance(), subElements_getNonPageRecords(), and subElements_renderItem().
Referenced by displayWorkspaceOverview_list().
tx_version_cm1::subElements_getNonPageRecords | ( | $ | tN, | |
$ | uid, | |||
&$ | recList | |||
) |
Select records from a table and add them to recList
string | Table name (from TCA) | |
integer | PID to select records from | |
array | Array where records are accumulated, passed by reference |
Definition at line 1280 of file index.php.
References t3lib_BEfunc::deleteClause().
Referenced by subElements().
tx_version_cm1::subElements_renderItem | ( | &$ | tCell, | |
$ | tN, | |||
$ | uid, | |||
$ | rec, | |||
$ | origId, | |||
$ | iconMode, | |||
$ | HTMLdata | |||
) |
Render a single item in a subelement list into a table row:
array | Table rows, passed by reference | |
string | Table name | |
integer | Page uid for which the subelements are selected/shown | |
array | Row of element in list | |
integer | The uid of the online version of $uid. If zero it means we are drawing a row for the online version itself while a value means we are drawing display for an offline version. | |
integer | Mode of icon display: 0=not the last, 1= is the last in list (make joinbottom icon then), 2=do not shown icons are all (for pages from the page tree already rendered) | |
string | Prefix HTML data (icons for tree rendering) |
Definition at line 1310 of file index.php.
References createDiffView(), displayWorkspaceOverview_commandLinksSub(), t3lib_iconWorks::getIconImage(), and t3lib_BEfunc::getRecordTitle().
Referenced by subElements().
tx_version_cm1::markupNewOriginals | ( | ) |
tx_version_cm1::createDiffView | ( | $ | table, | |
$ | diff_1_record, | |||
$ | diff_2_record | |||
) |
Create visual difference view of two records. Using t3lib_diff library
string | Table name | |
array | New version record (green) | |
array | Old version record (red) |
Definition at line 1401 of file index.php.
References $content, t3lib_BEfunc::getItemLabel(), t3lib_BEfunc::getProcessedValue(), t3lib_div::inList(), t3lib_div::loadTCA(), t3lib_div::makeInstance(), t3lib_BEfunc::thumbCode(), and t3lib_div::trimExplode().
Referenced by displayWorkspaceOverview_list(), and subElements_renderItem().
tx_version_cm1::displayWorkspaceOverview_stageCmd | ( | $ | table, | |
&$ | rec_off | |||
) |
Links to stage change of a version
string | Table name | |
array | Offline record (version) |
Definition at line 1518 of file index.php.
Referenced by displayWorkspaceOverview_list().
tx_version_cm1::displayWorkspaceOverview_commandLinks | ( | $ | table, | |
&$ | rec_on, | |||
&$ | rec_off, | |||
$ | vType | |||
) |
Links to publishing etc of a version
string | Table name | |
array | Online record | |
array | Offline record (version) | |
string | Swap type, "branch", "page" or "element" |
Definition at line 1606 of file index.php.
References t3lib_extMgm::extRelPath().
Referenced by displayWorkspaceOverview_list().
tx_version_cm1::displayWorkspaceOverview_commandLinksSub | ( | $ | table, | |
$ | rec, | |||
$ | origId | |||
) |
Links to publishing etc of a version
string | Table name | |
array | Record | |
integer | The uid of the online version of $uid. If zero it means we are drawing a row for the online version itself while a value means we are drawing display for an offline version. |
Definition at line 1676 of file index.php.
References t3lib_extMgm::extRelPath().
Referenced by subElements_renderItem().
tx_version_cm1::publishAction | ( | ) |
Will publish workspace if buttons are pressed
Definition at line 1732 of file index.php.
References t3lib_div::_POST(), t3lib_BEfunc::getSetUpdateSignal(), and t3lib_div::makeInstance().
Referenced by workspaceMgm().
tx_version_cm1::$MCONF = array() |
Loaded with the global array $MCONF which holds some module configuration from the conf.php file of backend modules.
Reimplemented from t3lib_SCbase.
tx_version_cm1::$MOD_MENU = array() |
The module menu items array. Each key represents a key for which values can range between the items in the array of that key.
Reimplemented from t3lib_SCbase.
tx_version_cm1::$MOD_SETTINGS = array() |
Current settings for the keys of the MOD_MENU array
Reimplemented from t3lib_SCbase.
tx_version_cm1::$doc |
Generally used to hold an instance of the 'template' class from typo3/template.php
Reimplemented from t3lib_SCbase.
tx_version_cm1::$content |
Generally used for accumulating the output content of backend modules
Reimplemented from t3lib_SCbase.
Definition at line 109 of file index.php.
Referenced by createDiffView(), pageSubContent(), and versioningMgm().