[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/t3lib/ -> class.t3lib_positionmap.php (sommaire)

Contains class for creating a position map. $Id: class.t3lib_positionmap.php 1868 2006-12-12 11:24:10Z ingmars $ Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj XHTML compliant (should be)

Author: Kasper Skaarhoj <kasperYYYY@typo3.com>
Poids: 562 lignes (20 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

t3lib_positionMap:: (18 méthodes):
  positionTree()
  JSimgFunc()
  changeImg()
  boldTitle()
  onClickEvent()
  insertlabel()
  linkPageTitle()
  checkNewPageInPid()
  getModConfig()
  insertQuadLines()
  printContentElementColumns()
  printRecordMap()
  wrapColumnHeader()
  insertPositionIcon()
  onClickInsertRecord()
  wrapRecordHeader()
  getRecordHeader()
  wrapRecordTitle()


Classe: t3lib_positionMap  - X-Ref

Position map class - generating a page tree / content element list which links for inserting (copy/move) of records.
Used for pages / tt_content element wizards of various kinds.

positionTree($id,$pageinfo,$perms_clause,$R_URI)   X-Ref
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.

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

JSimgFunc($prefix='')   X-Ref
Creates the JavaScritp for insert new-record rollover image

param: string        Insert record image prefix.
return: string        <script> section

changeImg(name,d)   X-Ref
Pas de description

boldTitle($t_code,$dat,$id)   X-Ref
Wrap $t_code in bold IF the $dat uid matches $id

param: string        Title string
param: array        Infomation array with record array inside.
param: integer        The current id.
return: string        The title string.

onClickEvent($pid,$newPagePID)   X-Ref
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.

param: integer        The pid.
param: integer        New page id.
return: string        Onclick attribute content

insertlabel()   X-Ref
Get label, htmlspecialchars()'ed

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

linkPageTitle($str,$rec)   X-Ref
Wrapping page title.

param: string        Page title.
param: array        Page record (?)
return: string        Wrapped title.

checkNewPageInPid($pid)   X-Ref
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.

param: integer        Page id for which to test.
return: boolean

getModConfig($pid)   X-Ref
Returns module configuration for a pid.

param: integer        Page id for which to get the module configuration.
return: array        The properties of teh module configuration for the page id.

insertQuadLines($codes,$allBlank=0)   X-Ref
Insert half/quad lines.

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

printContentElementColumns($pid,$moveUid,$colPosList,$showHidden,$R_URI)   X-Ref
Creates HTML for inserting/moving content elements.

param: integer        page id onto which to insert content element.
param: integer        Move-uid (tt_content element uid?)
param: string        List of columns to show
param: boolean        If not set, then hidden/starttime/endtime records are filtered out.
param: string        Request URI
return: string        HTML

printRecordMap($lines,$colPosArray)   X-Ref
Creates the table with the content columns

param: array        Array with arrays of lines for each column
param: array        Column position array
return: string        HTML

wrapColumnHeader($str,$vv)   X-Ref
Wrapping the column header

param: string        Header value
param: string        Column info.
return: string

insertPositionIcon($row,$vv,$kk,$moveUid,$pid)   X-Ref
Creates a linked position icon.

param: array        Element row.
param: string        Column position value.
param: integer        Column key.
param: integer        Move uid
param: integer        PID value.
return: string

onClickInsertRecord($row,$vv,$moveUid,$pid,$sys_lang=0)   X-Ref
Create on-click event value.

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

wrapRecordHeader($str,$row)   X-Ref
Wrapping the record header  (from getRecordHeader())

param: string        HTML content
param: array        Record array.
return: string        HTML content

getRecordHeader($row)   X-Ref
Create record header (includes teh record icon, record title etc.)

param: array        Record row.
return: string        HTML

wrapRecordTitle($str,$row)   X-Ref
Wrapping the title of the record.

param: string        The title value.
param: array        The record row.
return: string        Wrapped title string.



Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics