Documentation TYPO3 par Ameos |
Definition at line 105 of file alt_doc.php.
SC_alt_doc::preInit | ( | ) |
First initialization.
Definition at line 180 of file alt_doc.php.
References t3lib_div::_GET(), t3lib_div::_GP(), closeDocument(), compileStoreDat(), fixWSversioningInEditConf(), t3lib_div::getIndpEnv(), localizationRedirect(), and setDocument().
SC_alt_doc::doProcessData | ( | ) |
Detects, if a save command has been triggered.
Definition at line 243 of file alt_doc.php.
SC_alt_doc::processData | ( | ) |
Do processing of data, submitting it to TCEmain.
Definition at line 253 of file alt_doc.php.
References t3lib_div::_GP(), closeDocument(), compileStoreDat(), fixWSversioningInEditConf(), t3lib_div::getIndpEnv(), getNewIconMode(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getSetUpdateSignal(), t3lib_BEfunc::getWorkspaceVersionOfRecord(), t3lib_div::implodeArrayForUrl(), t3lib_div::makeInstance(), and t3lib_TCEforms_inline::updateInlineView().
SC_alt_doc::init | ( | ) |
Initialize the normal module operation
Definition at line 399 of file alt_doc.php.
References t3lib_div::_GP(), t3lib_BEfunc::BEgetRootLine(), editRegularContentFromId(), t3lib_BEfunc::getModuleData(), t3lib_div::implodeArrayForUrl(), t3lib_div::makeInstance(), and t3lib_BEfunc::viewOnClick().
SC_alt_doc::main | ( | ) |
Main module operation
Definition at line 493 of file alt_doc.php.
References compileForm(), t3lib_BEfunc::cshItem(), editRegularContentFromId(), functionMenus(), t3lib_BEfunc::getModTSconfig(), t3lib_div::inList(), languageSwitch(), makeButtonPanel(), makeCmenu(), makeDocSel(), makeEditForm(), t3lib_div::makeInstance(), shortCutLink(), and tceformMessages().
SC_alt_doc::printContent | ( | ) |
Outputting the accumulated content to screen
Definition at line 571 of file alt_doc.php.
SC_alt_doc::makeEditForm | ( | ) |
Creates the editing form with TCEforms, based on the input from GPvars.
Definition at line 607 of file alt_doc.php.
References t3lib_BEfunc::fixVersioningPid(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordTitle(), t3lib_BEfunc::isRecordLocked(), t3lib_div::makeInstance(), and t3lib_div::trimExplode().
Referenced by main().
SC_alt_doc::makeButtonPanel | ( | ) |
Create the panel of buttons for submitting the form or otherwise perform operations.
Definition at line 795 of file alt_doc.php.
References getNewIconMode(), t3lib_extMgm::isLoaded(), and t3lib_div::testInt().
Referenced by main().
SC_alt_doc::makeDocSel | ( | ) |
Create the selector box form element which allows to select between open documents. Can be disabled through Page TSconfig.
Definition at line 874 of file alt_doc.php.
References t3lib_BEfunc::cshItem(), and t3lib_div::htmlspecialchars_decode().
Referenced by main().
SC_alt_doc::makeCmenu | ( | ) |
Create the selector box form element which allows to select a clear-cache operation. Can be disabled through Page TSconfig.
Definition at line 916 of file alt_doc.php.
References t3lib_BEfunc::cshItem().
Referenced by main().
SC_alt_doc::compileForm | ( | $ | panel, | |
$ | docSel, | |||
$ | cMenu, | |||
$ | editForm, | |||
$ | langSelector = '' | |||
) |
Put together the various elements (buttons, selectors, form) into a table
string | The button panel HTML | |
string | Document selector HTML | |
string | Clear-cache menu HTML | |
string | HTML form. | |
string | Language selector HTML for localization |
Definition at line 938 of file alt_doc.php.
Referenced by main().
SC_alt_doc::functionMenus | ( | ) |
Create the checkbox buttons in the bottom of the pages.
Definition at line 1011 of file alt_doc.php.
References t3lib_div::implodeArrayForUrl().
Referenced by main().
SC_alt_doc::shortCutLink | ( | ) |
Create shortcut and open-in-window link in the bottom of the page
Definition at line 1042 of file alt_doc.php.
References $content, editRegularContentFromId(), and t3lib_div::linkThisScript().
Referenced by main().
SC_alt_doc::tceformMessages | ( | ) |
Reads comment messages from TCEforms and prints them in a HTML comment in the buttom of the page.
Definition at line 1073 of file alt_doc.php.
Referenced by main().
SC_alt_doc::languageSwitch | ( | $ | table, | |
$ | uid, | |||
$ | pid = NULL | |||
) |
Make selector box for creating new translation for a record or switching to edit the record in an existing language. Displays only languages which are available for the current page.
string | Table name | |
integer | uid for which to create a new language | |
integer | pid of the record |
Definition at line 1112 of file alt_doc.php.
References $content, t3lib_BEfunc::deleteClause(), getLanguages(), and t3lib_BEfunc::versioningPlaceholderClause().
Referenced by main().
SC_alt_doc::localizationRedirect | ( | $ | justLocalized | ) |
Redirects to alt_doc with new parameters to edit a just created localized record
string | String passed by GET &justLocalized= |
Definition at line 1208 of file alt_doc.php.
References $returnUrl, t3lib_div::_GP(), t3lib_BEfunc::deleteClause(), t3lib_div::locationHeaderUrl(), and t3lib_BEfunc::versioningPlaceholderClause().
Referenced by preInit().
SC_alt_doc::getLanguages | ( | $ | id | ) |
Returns sys_language records.
integer | Page id: If zero, the query will select all sys_language records from root level which are NOT hidden. If set to another value, the query will select all sys_language records that has a pages_language_overlay record on that page (and is not hidden, unless you are admin user) |
Definition at line 1242 of file alt_doc.php.
References t3lib_BEfunc::getModTSconfig().
Referenced by languageSwitch().
SC_alt_doc::fixWSversioningInEditConf | ( | $ | mapArray = FALSE |
) |
Fix $this->editconf if versioning applies to any of the records
array | Mapping between old and new ids if auto-versioning has been performed. |
Definition at line 1304 of file alt_doc.php.
References getRecordForEdit(), and t3lib_div::trimExplode().
Referenced by preInit(), and processData().
SC_alt_doc::getRecordForEdit | ( | $ | table, | |
$ | theUid | |||
) |
Get record for editing.
string | Table name | |
integer | Record UID |
Definition at line 1353 of file alt_doc.php.
References t3lib_BEfunc::getRecord(), and t3lib_BEfunc::getWorkspaceVersionOfRecord().
Referenced by fixWSversioningInEditConf().
SC_alt_doc::editRegularContentFromId | ( | ) |
Function, which populates the internal editconf array with editing commands for all tt_content elements from the normal column in normal language from the page pointed to by $this->editRegularContentFromId
Definition at line 1387 of file alt_doc.php.
References t3lib_BEfunc::deleteClause(), t3lib_extMgm::isLoaded(), and t3lib_BEfunc::versioningPlaceholderClause().
Referenced by compileStoreDat(), init(), main(), and shortCutLink().
SC_alt_doc::compileStoreDat | ( | ) |
Populates the variables $this->storeArray, $this->storeUrl, $this->storeUrlMd5
Definition at line 1415 of file alt_doc.php.
References t3lib_div::compileSelectedGetVarsFromArray(), editRegularContentFromId(), and t3lib_div::implodeArrayForUrl().
Referenced by preInit(), and processData().
SC_alt_doc::getNewIconMode | ( | $ | table, | |
$ | key = 'saveDocNew' | |||
) |
Function used to look for configuration of buttons in the form: Fx. disabling buttons or showing them at various positions.
string | The table for which the configuration may be specific | |
string | The option for look for. Default is checking if the saveDocNew button should be displayed. |
Definition at line 1428 of file alt_doc.php.
Referenced by makeButtonPanel(), and processData().
SC_alt_doc::closeDocument | ( | $ | code = 0 |
) |
Handling the closing of a document
integer | Close code: 0/1 will redirect to $this->retUrl, 3 will clear the docHandler (thus closing all documents) and otehr values will call setDocument with ->retUrl |
Definition at line 1441 of file alt_doc.php.
References t3lib_div::locationHeaderUrl(), and setDocument().
Referenced by preInit(), and processData().
SC_alt_doc::setDocument | ( | $ | currentDocFromHandlerMD5 = '' , |
|
$ | retUrl = 'alt_doc_nodoc.php' | |||
) |
Redirects to the document pointed to by $currentDocFromHandlerMD5 OR $retUrl (depending on some internal calculations). Most likely you will get a header-location redirect from this function.
string | Pointer to the document in the docHandler array | |
string | Alternative/Default retUrl |
Definition at line 1473 of file alt_doc.php.
References $retUrl, t3lib_div::getIndpEnv(), t3lib_extMgm::isLoaded(), and t3lib_div::locationHeaderUrl().
Referenced by closeDocument(), and preInit().