Documentation TYPO3 par Ameos

t3lib_positionMap Class Reference

Inheritance diagram for t3lib_positionMap:

Inheritance graph
[legend]
List of all members.

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

Detailed Description

Definition at line 85 of file class.t3lib_positionmap.php.


Member Function Documentation

t3lib_positionMap::boldTitle t_code,
dat,
id
 

Wrap $t_code in bold IF the $dat uid matches $id

Parameters:
string Title string
array Infomation array with record array inside.
integer The current id.
Returns:
string The title string.

Reimplemented in ext_posMap_pages.

Definition at line 276 of file class.t3lib_positionmap.php.

t3lib_positionMap::boldTitle t_code,
dat,
id
 

Wrap $t_code in bold IF the $dat uid matches $id

Parameters:
string Title string
array Infomation array with record array inside.
integer The current id.
Returns:
string The title string.

Reimplemented in ext_posMap_pages.

Definition at line 276 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.

Parameters:
integer Page id for which to test.
Returns:
boolean

Definition at line 335 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::getRecord().

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.

Parameters:
integer Page id for which to test.
Returns:
boolean

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.

Parameters:
integer Page id for which to get the module configuration.
Returns:
array The properties of teh module configuration for the page id.
See also:
onClickEvent()

Definition at line 351 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::getModTSconfig().

t3lib_positionMap::getModConfig pid  ) 
 

Returns module configuration for a pid.

Parameters:
integer Page id for which to get the module configuration.
Returns:
array The properties of teh module configuration for the page id.
See also:
onClickEvent()

Definition at line 351 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::getModTSconfig().

t3lib_positionMap::getRecordHeader row  ) 
 

Create record header (includes teh record icon, record title etc.)

Parameters:
array Record row.
Returns:
string HTML

Definition at line 539 of file class.t3lib_positionmap.php.

References t3lib_iconWorks::getIconImage(), and t3lib_BEfunc::getRecordTitle().

t3lib_positionMap::getRecordHeader row  ) 
 

Create record header (includes teh record icon, record title etc.)

Parameters:
array Record row.
Returns:
string HTML

Definition at line 539 of file class.t3lib_positionmap.php.

References t3lib_iconWorks::getIconImage(), and t3lib_BEfunc::getRecordTitle().

t3lib_positionMap::insertlabel  ) 
 

Get label, htmlspecialchars()'ed

Returns:
string The localized label for "insert new page here"

Definition at line 312 of file class.t3lib_positionmap.php.

t3lib_positionMap::insertlabel  ) 
 

Get label, htmlspecialchars()'ed

Returns:
string The localized label for "insert new page here"

Definition at line 312 of file class.t3lib_positionmap.php.

t3lib_positionMap::insertPositionIcon row,
vv,
kk,
moveUid,
pid
 

Creates a linked position icon.

Parameters:
array Element row.
string Column position value.
integer Column key.
integer Move uid
integer PID value.
Returns:
string

Definition at line 492 of file class.t3lib_positionmap.php.

t3lib_positionMap::insertPositionIcon row,
vv,
kk,
moveUid,
pid
 

Creates a linked position icon.

Parameters:
array Element row.
string Column position value.
integer Column key.
integer Move uid
integer PID value.
Returns:
string

Definition at line 492 of file class.t3lib_positionmap.php.

t3lib_positionMap::insertQuadLines codes,
allBlank = 0
 

Insert half/quad lines.

Parameters:
string keywords for which lines to insert.
boolean If true all lines are just blank clear.gifs
Returns:
string HTML content.

Definition at line 366 of file class.t3lib_positionmap.php.

References t3lib_div::trimExplode().

t3lib_positionMap::insertQuadLines codes,
allBlank = 0
 

Insert half/quad lines.

Parameters:
string keywords for which lines to insert.
boolean If true all lines are just blank clear.gifs
Returns:
string HTML content.

Definition at line 366 of file class.t3lib_positionmap.php.

References t3lib_div::trimExplode().

Referenced by positionTree().

t3lib_positionMap::JSimgFunc prefix = ''  ) 
 

Creates the JavaScritp for insert new-record rollover image

Parameters:
string Insert record image prefix.
Returns:
string <script> section

Definition at line 246 of file class.t3lib_positionmap.php.

t3lib_positionMap::JSimgFunc prefix = ''  ) 
 

Creates the JavaScritp for insert new-record rollover image

Parameters:
string Insert record image prefix.
Returns:
string <script> section

Definition at line 246 of file class.t3lib_positionmap.php.

Referenced by positionTree().

t3lib_positionMap::linkPageTitle str,
rec
 

Wrapping page title.

Parameters:
string Page title.
array Page record (?)
Returns:
string Wrapped title.

Reimplemented in ext_posMap_pages, and ext_posMap_tt_content.

Definition at line 324 of file class.t3lib_positionmap.php.

t3lib_positionMap::linkPageTitle str,
rec
 

Wrapping page title.

Parameters:
string Page title.
array Page record (?)
Returns:
string Wrapped title.

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::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.

Parameters:
integer The pid.
integer New page id.
Returns:
string Onclick attribute content

Reimplemented in ext_posMap_pages.

Definition at line 293 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::editOnClick(), and t3lib_extMgm::isLoaded().

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.

Parameters:
integer The pid.
integer New page id.
Returns:
string Onclick attribute content

Reimplemented in ext_posMap_pages.

Definition at line 293 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::editOnClick(), and t3lib_extMgm::isLoaded().

t3lib_positionMap::onClickInsertRecord row,
vv,
moveUid,
pid,
sys_lang = 0
 

Create on-click event value.

Parameters:
array The record.
string Column position value.
integer Move uid
integer PID value.
integer System language (not used currently)
Returns:
string

Reimplemented in ext_posMap.

Definition at line 509 of file class.t3lib_positionmap.php.

References t3lib_div::getIndpEnv().

t3lib_positionMap::onClickInsertRecord row,
vv,
moveUid,
pid,
sys_lang = 0
 

Create on-click event value.

Parameters:
array The record.
string Column position value.
integer Move uid
integer PID value.
integer System language (not used currently)
Returns:
string

Reimplemented in ext_posMap.

Definition at line 509 of file class.t3lib_positionmap.php.

References t3lib_div::getIndpEnv().

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.

Parameters:
integer Current page id
array Current page record.
string Page selection permission clause.
string Current REQUEST_URI
Returns:
string HTML code for the tree.

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::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.

Parameters:
integer Current page id
array Current page record.
string Page selection permission clause.
string Current REQUEST_URI
Returns:
string HTML code for the tree.

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::printContentElementColumns pid,
moveUid,
colPosList,
showHidden,
R_URI
 

Creates HTML for inserting/moving content elements.

Parameters:
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
Returns:
string HTML

Definition at line 404 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::BEenableFields(), t3lib_BEfunc::deleteClause(), and t3lib_div::trimExplode().

t3lib_positionMap::printContentElementColumns pid,
moveUid,
colPosList,
showHidden,
R_URI
 

Creates HTML for inserting/moving content elements.

Parameters:
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
Returns:
string HTML

Definition at line 404 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::BEenableFields(), t3lib_BEfunc::deleteClause(), and t3lib_div::trimExplode().

t3lib_positionMap::printRecordMap lines,
colPosArray
 

Creates the table with the content columns

Parameters:
array Array with arrays of lines for each column
array Column position array
Returns:
string HTML

Definition at line 440 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::getLabelFromItemlist(), and t3lib_div::intInRange().

t3lib_positionMap::printRecordMap lines,
colPosArray
 

Creates the table with the content columns

Parameters:
array Array with arrays of lines for each column
array Column position array
Returns:
string HTML

Definition at line 440 of file class.t3lib_positionmap.php.

References t3lib_BEfunc::getLabelFromItemlist(), and t3lib_div::intInRange().

t3lib_positionMap::wrapColumnHeader str,
vv
 

Wrapping the column header

Parameters:
string Header value
string Column info.
Returns:
string
See also:
printRecordMap()

Reimplemented in ext_posMap.

Definition at line 478 of file class.t3lib_positionmap.php.

t3lib_positionMap::wrapColumnHeader str,
vv
 

Wrapping the column header

Parameters:
string Header value
string Column info.
Returns:
string
See also:
printRecordMap()

Reimplemented in ext_posMap.

Definition at line 478 of file class.t3lib_positionmap.php.

t3lib_positionMap::wrapRecordHeader str,
row
 

Wrapping the record header (from getRecordHeader())

Parameters:
string HTML content
array Record array.
Returns:
string HTML content

Reimplemented in ext_posMap.

Definition at line 529 of file class.t3lib_positionmap.php.

t3lib_positionMap::wrapRecordHeader str,
row
 

Wrapping the record header (from getRecordHeader())

Parameters:
string HTML content
array Record array.
Returns:
string HTML content

Reimplemented in ext_posMap.

Definition at line 529 of file class.t3lib_positionmap.php.

t3lib_positionMap::wrapRecordTitle str,
row
 

Wrapping the title of the record.

Parameters:
string The title value.
array The record row.
Returns:
string Wrapped title string.

Reimplemented in ext_posMap_tt_content, ext_posMap, and ext_posMap.

Definition at line 552 of file class.t3lib_positionmap.php.

t3lib_positionMap::wrapRecordTitle str,
row
 

Wrapping the title of the record.

Parameters:
string The title value.
array The record row.
Returns:
string Wrapped title string.

Reimplemented in ext_posMap_tt_content, ext_posMap, and ext_posMap.

Definition at line 552 of file class.t3lib_positionmap.php.


The documentation for this class was generated from the following files:


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6