[ 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_recordlist.php (sommaire)

Library with a single function addElement that returns tablerows based on some input. $Id: class.t3lib_recordlist.php 1817 2006-11-28 17:27:00Z typo3 $ Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj XHTML compliant

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

Définit 1 class

t3lib_recordList:: (12 méthodes):
  addElement()
  writeTop()
  writeBottom()
  fwd_rwd_nav()
  fwd_rwd_HTML()
  listURL()
  CBfunctions()
  checkOffCB()
  cbValue()
  setcbValue()
  initializeLanguages()
  languageFlag()


Classe: t3lib_recordList  - X-Ref

This class is the base for listing of database records and files in the modules Web>List and File>Filelist

addElement($h,$icon,$data,$tdParams='',$lMargin='',$altLine='')   X-Ref
Returns a table-row with the content from the fields in the input data array.
OBS: $this->fieldArray MUST be set! (represents the list of fields to display)

param: integer        $h is an integer >=0 and denotes how tall a element is. Set to '0' makes a halv line, -1 = full line, set to 1 makes a 'join' and above makes 'line'
param: string        $icon is the <img>+<a> of the record. If not supplied the first 'join'-icon will be a 'line' instead
param: array        $data is the dataarray, record with the fields. Notice: These fields are (currently) NOT htmlspecialchar'ed before being wrapped in <td>-tags
param: string        $tdParams is insert in the <td>-tags. Must carry a ' ' as first character
param: integer        OBSOLETE - NOT USED ANYMORE. $lMargin is the leftMargin (integer)
param: string        $altLine is the HTML <img>-tag for an alternative 'gfx/ol/line.gif'-icon (used in the top)
return: string        HTML content for the table row

writeTop()   X-Ref
Dummy function, used to write the top of a table listing.

return: void

writeBottom()   X-Ref
Finishes the list with the "stopper"-gif, adding the HTML code for that item to the internal ->HTMLcode string

return: void

fwd_rwd_nav($table='')   X-Ref
Creates a forward/reverse button based on the status of ->eCounter, ->firstElementNumber, ->iLimit

param: string        Table name
return: array        array([boolean], [HTML]) where [boolean] is 1 for reverse element, [HTML] is the table-row code for the element

fwd_rwd_HTML($type,$pointer,$table='')   X-Ref
Creates the button with link to either forward or reverse

param: string        Type: "fwd" or "rwd"
param: integer        Pointer
param: string        Table name
return: string

listURL($altId='')   X-Ref
Creates the URL to this script, including all relevant GPvars

param: string        Alternative id value. Enter blank string for the current id ($this->id)
return: string        URL

CBfunctions()   X-Ref
Returning JavaScript for ClipBoard functionality.

return: string

checkOffCB(listOfCBnames)   X-Ref
Pas de description

cbValue(CBname)   X-Ref
Pas de description

setcbValue(CBname,flag)   X-Ref
Pas de description

initializeLanguages()   X-Ref
Initializes page languages and icons

return: void

languageFlag($sys_language_uid)   X-Ref
Return the icon for the language

param: integer        Sys language uid
return: string        Language icon



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