TYPO3 API  SVNRelease
Public Member Functions | Public Attributes
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)

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 78 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:
stringTitle string
arrayInfomation array with record array inside.
integerThe current id.
Returns:
string The title string.

Reimplemented in ext_posMap_pages.

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

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:
integerPage id for which to test.
Returns:
boolean

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

Referenced by positionTree().

t3lib_positionMap::getModConfig ( pid)

Returns module configuration for a pid.

Parameters:
integerPage 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 341 of file class.t3lib_positionmap.php.

t3lib_positionMap::getRecordHeader ( row)

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

Parameters:
arrayRecord row.
Returns:
string HTML

Definition at line 526 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 302 of file class.t3lib_positionmap.php.

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

Creates a linked position icon.

Parameters:
arrayElement row.
stringColumn position value.
integerColumn key.
integerMove uid
integerPID value.
Returns:
string

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

t3lib_positionMap::insertQuadLines ( codes,
allBlank = 0 
)

Insert half/quad lines.

Parameters:
stringkeywords for which lines to insert.
booleanIf true all lines are just blank clear.gifs
Returns:
string HTML content.

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

Referenced by positionTree().

t3lib_positionMap::JSimgFunc ( prefix = '')

Creates the JavaScritp for insert new-record rollover image

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

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

Referenced by positionTree().

t3lib_positionMap::linkPageTitle ( str,
rec 
)

Wrapping page title.

Parameters:
stringPage title.
arrayPage record (?)
Returns:
string Wrapped title.

Reimplemented in ext_posMap_tt_content, and ext_posMap_pages.

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

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:
integerThe pid.
integerNew page id.
Returns:
string Onclick attribute content

Reimplemented in ext_posMap_pages.

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

Referenced by positionTree().

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

Create on-click event value.

Parameters:
arrayThe record.
stringColumn position value.
integerMove uid
integerPID value.
integerSystem language (not used currently)
Returns:
string

Reimplemented in ext_posMap.

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

Parameters:
integerCurrent page id
arrayCurrent page record.
stringPage selection permission clause.
stringCurrent REQUEST_URI
Returns:
string HTML code for the tree.

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

References $BE_USER, $R_URI, checkNewPageInPid(), insertQuadLines(), JSimgFunc(), t3lib_div\makeInstance(), and onClickEvent().

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

Creates HTML for inserting/moving content elements.

Parameters:
integerpage id onto which to insert content element.
integerMove-uid (tt_content element uid?)
stringList of columns to show
booleanIf not set, then hidden/starttime/endtime records are filtered out.
stringRequest URI
Returns:
string HTML

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

t3lib_positionMap::printRecordMap ( lines,
colPosArray 
)

Creates the table with the content columns

Parameters:
arrayArray with arrays of lines for each column
arrayColumn position array
Returns:
string HTML

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

t3lib_positionMap::wrapColumnHeader ( str,
vv 
)

Wrapping the column header

Parameters:
stringHeader value
stringColumn info.
Returns:
string
See also:
printRecordMap()

Reimplemented in ext_posMap.

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

t3lib_positionMap::wrapRecordHeader ( str,
row 
)

Wrapping the record header (from getRecordHeader())

Parameters:
stringHTML content
arrayRecord array.
Returns:
string HTML content

Reimplemented in ext_posMap.

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

t3lib_positionMap::wrapRecordTitle ( str,
row 
)

Wrapping the title of the record.

Parameters:
stringThe title value.
arrayThe record row.
Returns:
string Wrapped title string.

Reimplemented in ext_posMap_tt_content, ext_posMap, and ext_posMap.

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


Member Data Documentation

t3lib_positionMap::$backPath = ''

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

t3lib_positionMap::$checkNewPageCache = Array()

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

t3lib_positionMap::$cur_sys_language

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

t3lib_positionMap::$depth = 2

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

t3lib_positionMap::$dontPrintPageInsertIcons = 0

Reimplemented in ext_posMap_tt_content, and ext_posMap.

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

t3lib_positionMap::$elUid = ''

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

t3lib_positionMap::$getModConfigCache = array()

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

t3lib_positionMap::$l_insertNewPageHere = 'insertNewPageHere'

Reimplemented in ext_posMap_pages.

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

t3lib_positionMap::$l_insertNewRecordHere = 'insertNewRecordHere'

Reimplemented in ext_posMap.

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

t3lib_positionMap::$modConfigStr = 'mod.web_list.newPageWiz'

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

t3lib_positionMap::$moveOrCopy = 'move'

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

t3lib_positionMap::$moveUid = ''

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

t3lib_positionMap::$R_URI = ''

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

Referenced by positionTree().


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