Documentation TYPO3 par Ameos |
Public Member Functions | |
| positionTree ($id, $pageinfo, $perms_clause, $R_URI) | |
| JSimgFunc ($prefix='') | |
| boldTitle ($t_code, $dat, $id) | |
| onClickEvent ($pid, $newPagePID) | |
| insertlabel () | |
| linkPageTitle ($str, $rec) | |
| checkNewPageInPid ($pid) | |
| getModConfig ($pid) | |
| insertQuadLines ($codes, $allBlank=0) | |
| printContentElementColumns ($pid, $moveUid, $colPosList, $showHidden, $R_URI) | |
| printRecordMap ($lines, $colPosArray) | |
| wrapColumnHeader ($str, $vv) | |
| insertPositionIcon ($row, $vv, $kk, $moveUid, $pid) | |
| onClickInsertRecord ($row, $vv, $moveUid, $pid, $sys_lang=0) | |
| wrapRecordHeader ($str, $row) | |
| getRecordHeader ($row) | |
| wrapRecordTitle ($str, $row) | |
Public Attributes | |
| $moveOrCopy = 'move' | |
| $dontPrintPageInsertIcons = 0 | |
| $backPath = '' | |
| $depth = 2 | |
| $cur_sys_language | |
| $R_URI = '' | |
| $elUid = '' | |
| $moveUid = '' | |
| $getModConfigCache = array() | |
| $checkNewPageCache = Array() | |
| $l_insertNewPageHere = 'insertNewPageHere' | |
| $l_insertNewRecordHere = 'insertNewRecordHere' | |
| $modConfigStr = 'mod.web_list.newPageWiz' | |
Definition at line 85 of file class.t3lib_positionmap.php.
| t3lib_positionMap::positionTree | ( | $ | id, | |
| $ | pageinfo, | |||
| $ | perms_clause, | |||
| $ | R_URI | |||
| ) |
Creates a "position tree" based on the page tree. Notice: A class, "localPageTree" must exist and probably it is an extension class of the t3lib_pageTree class. See "db_new.php" in the core for an example.
| integer | Current page id | |
| array | Current page record. | |
| string | Page selection permission clause. | |
| string | Current REQUEST_URI |
Definition at line 132 of file class.t3lib_positionmap.php.
References $R_URI, boldTitle(), checkNewPageInPid(), t3lib_div::fixed_lgd_cs(), insertQuadLines(), JSimgFunc(), linkPageTitle(), t3lib_div::makeInstance(), and t3lib_iconWorks::skinImg().
| t3lib_positionMap::JSimgFunc | ( | $ | prefix = '' |
) |
Creates the JavaScritp for insert new-record rollover image
| string | Insert record image prefix. |
Definition at line 246 of file class.t3lib_positionmap.php.
Referenced by positionTree(), and printRecordMap().
| t3lib_positionMap::boldTitle | ( | $ | t_code, | |
| $ | dat, | |||
| $ | id | |||
| ) |
Wrap $t_code in bold IF the $dat uid matches $id
| string | Title string | |
| array | Infomation array with record array inside. | |
| integer | The current id. |
Reimplemented in ext_posMap_pages.
Definition at line 276 of file class.t3lib_positionmap.php.
Referenced by positionTree().
| t3lib_positionMap::onClickEvent | ( | $ | pid, | |
| $ | newPagePID | |||
| ) |
Creates the onclick event for the insert-icons.
TSconfig mod.web_list.newPageWiz.overrideWithExtension may contain an extension which provides a module to be used instead of the normal create new page wizard.
| integer | The pid. | |
| integer | New page id. |
Reimplemented in ext_posMap_pages.
Definition at line 293 of file class.t3lib_positionmap.php.
References t3lib_BEfunc::editOnClick(), getModConfig(), and t3lib_extMgm::isLoaded().
| t3lib_positionMap::insertlabel | ( | ) |
Get label, htmlspecialchars()'ed
Definition at line 312 of file class.t3lib_positionmap.php.
| t3lib_positionMap::linkPageTitle | ( | $ | str, | |
| $ | rec | |||
| ) |
Wrapping page title.
| string | Page title. | |
| array | Page record (?) |
Reimplemented in ext_posMap_pages, and ext_posMap_tt_content.
Definition at line 324 of file class.t3lib_positionmap.php.
Referenced by positionTree().
| t3lib_positionMap::checkNewPageInPid | ( | $ | pid | ) |
Checks if the user has permission to created pages inside of the $pid page. Uses caching so only one regular lookup is made - hence you can call the function multiple times without worrying about performance.
| integer | Page id for which to test. |
Definition at line 335 of file class.t3lib_positionmap.php.
References t3lib_BEfunc::getRecord().
Referenced by positionTree().
| t3lib_positionMap::getModConfig | ( | $ | pid | ) |
Returns module configuration for a pid.
| integer | Page id for which to get the module configuration. |
Definition at line 351 of file class.t3lib_positionmap.php.
References t3lib_BEfunc::getModTSconfig().
Referenced by onClickEvent().
| t3lib_positionMap::insertQuadLines | ( | $ | codes, | |
| $ | allBlank = 0 | |||
| ) |
Insert half/quad lines.
| string | keywords for which lines to insert. | |
| boolean | If true all lines are just blank clear.gifs |
Definition at line 366 of file class.t3lib_positionmap.php.
References t3lib_div::trimExplode().
Referenced by positionTree().
| t3lib_positionMap::printContentElementColumns | ( | $ | pid, | |
| $ | moveUid, | |||
| $ | colPosList, | |||
| $ | showHidden, | |||
| $ | R_URI | |||
| ) |
Creates HTML for inserting/moving content elements.
| integer | page id onto which to insert content element. | |
| integer | Move-uid (tt_content element uid?) | |
| string | List of columns to show | |
| boolean | If not set, then hidden/starttime/endtime records are filtered out. | |
| string | Request URI |
Definition at line 404 of file class.t3lib_positionmap.php.
References $moveUid, $R_URI, t3lib_BEfunc::BEenableFields(), t3lib_BEfunc::deleteClause(), getRecordHeader(), insertPositionIcon(), printRecordMap(), t3lib_div::trimExplode(), t3lib_BEfunc::versioningPlaceholderClause(), t3lib_BEfunc::workspaceOL(), and wrapRecordHeader().
| t3lib_positionMap::printRecordMap | ( | $ | lines, | |
| $ | colPosArray | |||
| ) |
Creates the table with the content columns
| array | Array with arrays of lines for each column | |
| array | Column position array |
Definition at line 442 of file class.t3lib_positionmap.php.
References t3lib_BEfunc::getLabelFromItemlist(), t3lib_div::intInRange(), JSimgFunc(), and wrapColumnHeader().
Referenced by printContentElementColumns().
| t3lib_positionMap::wrapColumnHeader | ( | $ | str, | |
| $ | vv | |||
| ) |
Wrapping the column header
| string | Header value | |
| string | Column info. |
Reimplemented in ext_posMap.
Definition at line 480 of file class.t3lib_positionmap.php.
Referenced by printRecordMap().
| t3lib_positionMap::insertPositionIcon | ( | $ | row, | |
| $ | vv, | |||
| $ | kk, | |||
| $ | moveUid, | |||
| $ | pid | |||
| ) |
Creates a linked position icon.
| array | Element row. | |
| string | Column position value. | |
| integer | Column key. | |
| integer | Move uid | |
| integer | PID value. |
Definition at line 494 of file class.t3lib_positionmap.php.
Referenced by printContentElementColumns().
| t3lib_positionMap::onClickInsertRecord | ( | $ | row, | |
| $ | vv, | |||
| $ | moveUid, | |||
| $ | pid, | |||
| $ | sys_lang = 0 | |||
| ) |
Create on-click event value.
| array | The record. | |
| string | Column position value. | |
| integer | Move uid | |
| integer | PID value. | |
| integer | System language (not used currently) |
Reimplemented in ext_posMap.
Definition at line 511 of file class.t3lib_positionmap.php.
References t3lib_div::getIndpEnv().
| t3lib_positionMap::wrapRecordHeader | ( | $ | str, | |
| $ | row | |||
| ) |
Wrapping the record header (from getRecordHeader())
| string | HTML content | |
| array | Record array. |
Reimplemented in ext_posMap.
Definition at line 531 of file class.t3lib_positionmap.php.
Referenced by printContentElementColumns().
| t3lib_positionMap::getRecordHeader | ( | $ | row | ) |
Create record header (includes teh record icon, record title etc.)
| array | Record row. |
Definition at line 541 of file class.t3lib_positionmap.php.
References t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecordTitle(), and wrapRecordTitle().
Referenced by printContentElementColumns().
| t3lib_positionMap::wrapRecordTitle | ( | $ | str, | |
| $ | row | |||
| ) |
Wrapping the title of the record.
| string | The title value. | |
| array | The record row. |
Reimplemented in ext_posMap_tt_content, ext_posMap, and ext_posMap.
Definition at line 554 of file class.t3lib_positionmap.php.
Referenced by getRecordHeader().
1.4.6