Commit ef20d573 authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

Tons of changes made to the CORE. All scripts has more a less been modified....

Tons of changes made to the CORE. All scripts has more a less been modified. Primarily cleaning up of scripts but also some bug fixing.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@60 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 1454b8e6
......@@ -23,6 +23,10 @@ PHP:
!!! Function t3lib_div::imagefinder, t3lib_div::linkfinder, t3lib_div::getStrippedURL, t3lib_div::getMimeType, t3lib_div::debug_white_space, t3lib_div::debug_code, t3lib_div::parsetime, t3lib_div::hardspace, t3lib_div::break_text, t3lib_div::unbreak_text removed
!!! The font files "arial.ttf" and "verdana.ttf" has been removed from the folder t3lib/fonts/ and substituted with similar typefaces, "nimbus.ttf" and "vera.ttf" respectively.
!!! The script "t3lib/formmail.php" has been removed. Was not used and didn't work anyways.
!!! The classes t3lib_pagetree and t3lib_browsetree has been divided into four new classes (folder,page,browse + treeview) - and as a rule of thumb, the API has been modified so much that you should rather check all you applications using these classes in DETAIL! Consider it a reimplementation.
!!! The three rte_*.php scripts in TYPO3 core has been moved TO the "rte" extension! This also means that any extension classes must have updated their XCLASS registration keys to the new file positions.
!!! status_file.php is gone...
!!! The typo3/ scripts db_new_content_el.php and db_layout.php has been moved into the sysext/cms/layout/ folder. Further, the classes have been remodelled a lot. If you link to these scripts or extend their classes in your applications, you should observe the compatibility!
Charsets:
- A new class "t3lib_cs" has been added. It contains homemade functions for conversion to and from a list of charsets (conversion tables found in t3lib/csconvtbl/). The conversion could be speeded up enourmously by using PHP functions but I simply didn't find any that could be used. By time we can substitute the PHP-processing with internal PHP functions if possible.
- In TYPO3_CONF_VARS we can now set up a system charset. [BE][forceCharset] This is used a) for storage of information and b) for whole backend. Default is that charset of the current user (as always), but clearly recommended is "UTF-8"!!!
......
......@@ -27,6 +27,7 @@ General:
- Feature: Controlling access to function menu modules as well (thus we could have a user-module inside ?Template? which could edit the constants field)
- Feature: Web >plugins -> to be a main module where people can place cmodules for their extension.
TCEmain:
- Commenting of the class.
- Charset:
......@@ -182,6 +183,7 @@ Wizards:
- Finish the colorpicker! Some other person can be in charge of this (See "APPENDIX: Colorpicker")
- Add wizard icon to TSconfig and Setup/Constants fields for immediate syntax highlighting (in popup window)
- wizard_add, _edit and _list can be used fantastic to lead the user through multiple 1:n relations but than he starts to be confused if the records he created apear somewhere else, tries to edit them directly there, relations get lost, phone rings. (Peter K?hn).
- forms and table wizards should be configurable for making XML structures alternatively to the currently formatting.
Interface:
- Icons (see Bugs/Additions folder)
......@@ -261,6 +263,7 @@ EM:
- Feature: EM suggest clear-cache af scripts?
- Feature: New category, "templates"
- Feature: New review state: security-screened (light review, not quality oriented)
- Feature: em_conf: "depreciated flag: Beskrivelse af, hvorfor den er depreciated"
- Install: Select other repository URLS in selector box?
- Install: Extensions which can point the import/export to a directory with import-files.
- Install: Updates of plugin checks if there is a local manual.sxw file. If there is the manual is also downloaded. Maybe people can set a flag in the configuration that manuals should always be fetched. (Some of this is already implemented)
......@@ -284,6 +287,7 @@ EM:
- BUG: Clear cache files should remove ALL "temp_CACHED_*" files in typo3conf/ (not just the current two)
- BUG: detection of single quotes in XCLASS and CONF.PHP file cases (and wherever a regex searches for code snippets!).
- BUG: MSIE4: Cannot make backup of extensions (and probably not export them either) because the header-mime-typen is not registered as it should be.
- BUG: Download of extensions (compressed...) will sometimes NOT get the same MD5 key after being saved (with any browser it seems) as shown at the download link. Origin of error not know. Please help if you encounter the problem.
- DOC: "Extension API" manual.sxw!
- Check mailbox for more... ?
- Related: The KickStarter Wizard, in particular a) cleaner code output, b) merging updates.
......@@ -337,7 +341,7 @@ NOTES
APPENDIX 1: CLEANING UP FOR TYPO3 3.6.0
******************************************
Cleaning for 3.6 involves:
- XHTML compliance
- XHTML transitional compliance
- " to '
- Commented functions
......@@ -347,19 +351,34 @@ Cleaning for 3.6 involves:
2a: Set "@access private"
3: double to single quote (check for "\n")
4: XHTML
5: $Id$ CVS keyword expansion
6: @package tags
7: Function Index in scripts
8: Depreciated use of t3lib_BEfunc::titleAttrib
9: Generally, try to read all GPvars in init() functions and set them as internal variables - gives a nice, natural overview of what is used from the outsite
Status 27/10 (TYPO3 Core + extensions "cms" and "lang" in sysext/ (but without global extensions in ext/ !)):
- 2000 @param and @return tags in 800 functions still needs commenting (3800 tags in 1400 functions has already been done)
- 50 scripts still needs cleaning for XHTML, comments and single-quotes
Note on XHTML compliance:
- We strive for XHTML transitional / frames
- Certain incompatibilities has been allowed for practical reasons (for now). These include:
- align="absmiddle" for images
- width/height properties for input tags when images are used
- missing "cols" attribute for textarea tags.
- Some attributes for framesets.
[The reason for allowing this is probably that I do not know any workaround to achieve the same effect. The problem of non-allowed attributes/values also rate very low in my understanding of XHTML compliancy - it is far more important with nesting integrity, char case of tags/attributes, etc.]
---------------------------------------------------------------
NOTES ABOUT WHICH SCRIPTS HAS BEEN CLEANED AND WHICH REMAINS:
---------------------------------------------------------------
Finished (XHTML, quotes, comments, revised-note), XQCR:
(Indented scripts are still missing clean-up)
t3lib________________________________________:
t3lib/________________________________________:
XQCR: t3lib/class.t3lib_admin.php
XQCR: t3lib/class.t3lib_arraybrowser.php
-QCR: t3lib/class.t3lib_basicfilefunc.php
......@@ -369,17 +388,17 @@ XQCR: t3lib/class.t3lib_beuserauth.php
XQCR: t3lib/class.t3lib_browsetree.php
XQCR: t3lib/class.t3lib_clipboard.php
-QC-: t3lib/class.t3lib_cs.php
t3lib/class.t3lib_diff.php
XQCR: t3lib/class.t3lib_diff.php
XQCR: t3lib/class.t3lib_div.php
t3lib/class.t3lib_dmailer.php
t3lib/class.t3lib_dmailer.php [Pekue?]
t3lib/class.t3lib_exec.php [Rene]
t3lib/class.t3lib_extfilefunc.php
-QCR: t3lib/class.t3lib_extmgm.php
-QCR: t3lib/class.t3lib_extobjbase.php
t3lib/class.t3lib_foldertree.php
XQCR: t3lib/class.t3lib_foldertree.php
-QCR: t3lib/class.t3lib_formmail.php
t3lib/class.t3lib_fullsearch.php
t3lib/class.t3lib_htmlmail.php
t3lib/class.t3lib_htmlmail.php [Pekue?]
XQCR: t3lib/class.t3lib_iconworks.php
t3lib/class.t3lib_install.php
-QCR: t3lib/class.t3lib_loaddbgroup.php
......@@ -387,10 +406,10 @@ XQCR: t3lib/class.t3lib_iconworks.php
-QCR: t3lib/class.t3lib_matchcondition.php
t3lib/class.t3lib_modsettings.php [Rene]
XQCR: t3lib/class.t3lib_page.php
t3lib/class.t3lib_pagetree.php
XQCR: t3lib/class.t3lib_pagetree.php
XQCR: t3lib/class.t3lib_parsehtml.php
a.Q..: t3lib/class.t3lib_parsehtml_proc.php (45)
t3lib/class.t3lib_positionmap.php
XQCR: t3lib/class.t3lib_positionmap.php
t3lib/class.t3lib_querygenerator.php
-QCR: t3lib/class.t3lib_readmail.php
XQCR: t3lib/class.t3lib_recordlist.php
......@@ -402,7 +421,7 @@ XQCR: t3lib/class.t3lib_recordlist.php
t3lib/class.t3lib_tcemain.php
XQCR: t3lib/class.t3lib_timetrack.php
-QCR: t3lib/class.t3lib_transferdata.php
t3lib/class.t3lib_treeview.php
XQCR: t3lib/class.t3lib_treeview.php
XQCR: t3lib/class.t3lib_tsfebeuserauth.php
-QCR: t3lib/class.t3lib_tsparser.php
t3lib/class.t3lib_tsparser_ext.php
......@@ -419,7 +438,11 @@ XQCR: template.php
-QCR: t3lib/stddb/tables.php
-QCR: t3lib/stddb/tbl_be.php
cms_______________________________________:
sysext/lang/___________________________________________:
XQCR: lang.php
sysext/cms/___________________________________________:
XQCR: tslib/class.tslib_content.php
XQCR: tslib/class.tslib_fe.php
-QCR: tslib/class.tslib_fetce.php
......@@ -453,87 +476,162 @@ XQCR: tslib/media/scripts/xmlversionLib.inc
-Q-.: tslib/publish.php
.QCR: tslib/showpic.php
XQCR: web_info/class.tx_cms_webinfo.php
XQCR: layout/db_layout.php
XQCR: layout/class.tx_cms_layout.php
XQCR: layout/db_new_content_el.php
lang___________________________________________:
XQCR: lang.php
typo3___________________________________________:
typo3/___________________________________________:
XQCR: alt_clickmenu.php
XQCR: alt_db_navframe.php
alt_doc.php TODO: Check "redirect" GPvar for XSS hole!?
alt_doc_nodoc.php
XQCR: alt_doc.php TODO: Check "redirect" GPvar for XSS hole!?
XQCR: alt_doc_nodoc.php
XQCR: alt_file_navframe.php
XQCR: alt_intro.php
XQCR: alt_main.php
XQCR: alt_menu.php
XQCR: alt_menu_sel.php
XQCR: alt_mod_frameset.php
alt_palette.php
XQCR: alt_palette.php
XQCR: alt_shortcut.php
XQCR: alt_toplogo.php
XQCR: alt_topmenu_dummy.php
browse_links.php
browser.php
XQCR: browse_links.php
XQCR: browser.php
XQCR: class.alt_menu_functions.inc
class.db_layout.inc
class.db_list.inc
class.db_list_extra.inc
XQCR: class.db_list.inc
XQCR: class.db_list_extra.inc
XQCR: class.file_list.inc
class.show_rechis.inc
db_layout.php
db_list.php
XQCR: class.show_rechis.inc
XQCR: db_list.php
XQCR: db_new.php
db_new_content_el.php
XQCR: db_new_content_el.php
default.htm
default.html
XQCR: dummy.php
XQCR: file_edit.php
XQCR: file_list.php
file_newfolder.php
file_rename.php
file_upload.php
index.php TODO: Check "redirect" GPvar for XSS hole!?
-QC-: index_re.php
XQCR: file_newfolder.php
XQCR: file_rename.php
XQCR: file_upload.php
XQCR: index.php TODO: Check "redirect" GPvar for XSS hole!?
-QC-: index_re.php
-Q-R: init.php
XQCR: listframe_loader.php
login_frameset.php
-QC-: logout.php TODO: Check "redirect" GPvar for XSS hole!?
move_el.php
rte_cleaner.php
rte_select_image.php
rte_user.php
show_item.php
XQCR: login_frameset.php
-QC-: logout.php TODO: Check "redirect" GPvar for XSS hole!?
XQCR: move_el.php
show_item.php [Peter Kuehn]
XQCR: show_rechis.php
status_file.php
-QCR: tce_db.php
-QCR: tce_db.php
-QCR: tce_file.php
XQCR: template.php
XQCR: view_help.php
wizard_add.php
XQCR: view_help.php
XQCR: wizard_add.php
wizard_colorpicker.php [Matthias]
wizard_edit.php
wizard_forms.php
wizard_list.php
wizard_rte.php
wizard_table.php
wizard_tsconfig.php
XQCR: wizard_edit.php
XQCR: wizard_forms.php
XQCR: wizard_list.php
XQCR: wizard_rte.php
XQCR: wizard_table.php
XQCR: wizard_tsconfig.php
XQCR: mod/help/about/index.php: TODO: Modernize content
mod/tools/em/index.php
XQCR: mod/web/info/index.php
XQCR: mod/web/func/index.php
mod/web/perm/index.php
XQCR: mod/web/perm/index.php
typo3/ext/_____________________________________:
OK aboutmodules/
belog/ (2 / 500)
beuser/ (1 / 1300)
OK beuser_tracking/ -> move
classic_welcome/ (1/262) -> move
cms_plaintext_import/ (1/200)
OK conf_userts/
OK context_help/
css_styled_content/ (1/200) [H]
OK design_components/ ->move
direct_mail/ (3/2500) [Peter Kuehn] + class.t3lib_htmlmail.php
OK direct_mail_subscription/
XQCR: extra_page_cm_options/
-QCR: extrep/
extrep_wizard/ (2/4500) [H]
OK feuser_admin/
freesite/ (2/1600)
XQCR: func_wizards/
imagelist/ (1/250)
impexp/ (2/2000) [H]
indexed_search/ (4/3500)
info_pagetsconfig/ (1/200)
OK install/ + class.t3lib_install.php / class.t3lib_superadmin.php
lowlevel/ (2/800) [H]
XQ-R: metatags/
phpmyadmin/ (1/130)
plugin_mgm/ (1/300) ->move? remove?
quickhelp/ (1/80)
rte/ (5/1900) [H]
OK rte_conf/
OK setoldpluginlist/
setup/ (1/400)
OK skin1/
OK static_file_edit/
sys_action/ (1/400)
sys_messages/ (1/450)
OK sys_note/
sys_notepad/ (1/130)
OK sys_stat/
sys_todos/ (1/1100)
OK sys_workflows/
taskcenter/ (4/400)
taskcenter_modules/ (1/100)
taskcenter_recent/ (1/150)
taskcenter_rootlist/ (1/50)
tipafriend/ (1/260)
OK tsconfig_help/
OK ts_language_de/
OK ts_language_dk/
OK ts_language_fr/
OK ts_language_nl/
OK ts_language_no/
tstemplate/ (1/450) + class.t3lib_tsparser_ext.php (1700)
tstemplate_analyzer/ (1/250)
tstemplate_ceditor/ (1/250)
tstemplate_info/ (1/450)
tstemplate_objbrowser/ (1/500)
tstemplate_styler/ (1/1700)
OK tt_address/
tt_board/ (3/1200)
tt_calender/ (1/170)
tt_guest/ (2/350)
tt_links/ ->move / depreciated!
tt_news/ (1/750)
tt_poll/ (2/400) [Rene F]
tt_products/ (5/2000) [? Peter Kuehn]
tt_rating/ (3/550) [Rene F]
viewpage/ (2/200)
XQRC: wizard_crpages/
XQRC: wizard_sortpages/
32,5 K Codes lines....
For all extensions (even those approved):
- Remember to add package tags to all classes!
- Write documentation for each
- Check HTML source / CSS usage / XHTML compliancy / That icons are skinnable (add to "skin360")
- $LANG->getLL() are htmlspecialchars()'ed
*******************
APPENDIX 2: XHTML
*******************
Overview of implications before implementation:
- UTF-8 encoding is in fact expected by XML! So the real charset must be set
- Wellformedness: Nesting ok. All img tags must be ended with />
- Wellformedness: Nesting ok. All img tags must be ended with /> (frame,base,meta,link,img,br,hr,area,input)
- Lowercase for elements and attributes (and everything else...) + stylesheet element and attribute names.
- All attributes in quotes
- Minimized values not allowed: Must do this: selected="selected"
......@@ -551,13 +649,13 @@ Practical steps for creating XHTML compliance:
- lowercase: <(td|tr|p|div|table|b|i|u|a)
- attributes in lowercase and ""; TYP: bgColor, border=0 cellspacing=0 cellpadding=0, valign=top, onClick, onChange, onSubmit, method="POST", type="Submit"
- Ending tags: <br>, <hr>, <input>, <img>
- Ending tags: <br>, <hr>, <input>, <img> (Longer list: frame,base,meta,link,img,br,hr,area,input)
- shorthand: checked, selected, multiple, nowrap
- href="", action="", src="", onclick= tags: htmlspecialchars() of URLS
- <img -> ' alt="" />' REGEX: <img[^>]*>
- <img -> ' alt="" />' REGEX: <img[^>]*[^-]>
- FINDING attributes with no quotes:
([[:space:]]+)(class|face|hspace|vspace|rowspan|bgcolor|src|colspan|align|color|valign|border|width|height|cellpadding|cellspacing)=([^[:space:]>"']+)
... and replace with: \1\2="\3"
......@@ -917,7 +1015,7 @@ Bugs, considerations, notes
- JavaScript: escape() doesn't rawurlencode the "+"-character. This can be a problem, eg. when trying to rename files with a plus in the name. I have made an alternative escape-function.
- PDF-files over 600 k are not rendered by ImageMagick. Less than 270 is! How come and is this true. Number of pages?
- When GDlib is disabled it can be very confusing that record icons does not change their look according to hidden/starttime/endtime etc...
- many files in typo3temp/ slows down processing. Eg. a image resize with 33.000 files in typo3temp/ took 3 seconds where it would take 40 ms when the folder is clean. (on linux)
**************************************
......
......@@ -6,4 +6,5 @@ functionalities of TYPO3 such as manipulation the
database (tce_main.php), providing user authentication
and datatransfer to the TYPO3 backend to name a few.
Please refer to the document "Inside TYPO3" for details on the TYPO3 core.
\ No newline at end of file
Please refer to the document "Inside TYPO3" for details on the TYPO3 core.
The document "TYPO3 Core API" will also contain information on these classes.
\ No newline at end of file
......@@ -121,11 +121,11 @@ class t3lib_admin {
$a++;
$newID =$row['uid'];
if ($this->genTree_makeHTML) {
$this->genTree_HTML.=chr(10).'<div><nobr>';
$this->genTree_HTML.=chr(10).'<div><span class="nobr">';
$PM = 'join';
$LN = ($a==$c)?'blank':'line';
$BTM = ($a==$c)?'bottom':'';
$this->genTree_HTML.= $depthData.'<img src="'.$this->backPath.'t3lib/gfx/ol/'.$PM.$BTM.'.gif" width="18" height="16" align="top" alt="" /><img src="'.$this->backPath.t3lib_iconWorks::getIcon('pages',$row).'" width="18" height="16" align="top" alt="" />'.htmlspecialchars($row['uid'].': '.t3lib_div::fixed_lgd(strip_tags($row['title']),50)).'</nobr></div>';
$this->genTree_HTML.= $depthData.'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/'.$PM.$BTM.'.gif','width="18" height="16"').' align="top" alt="" />'.t3lib_iconWorks::getIconImage('pages',$row,$this->backPath,'align="top"').htmlspecialchars($row['uid'].': '.t3lib_div::fixed_lgd(strip_tags($row['title']),50)).'</span></div>';
}
if (isset($page_idlist[$newID])) {
......@@ -136,7 +136,7 @@ class t3lib_admin {
if ($row['hidden']) {$this->recStat['hidden']++;}
$this->recStat['doktype'][$row['doktype']]++;
$this->genTree($newID,$this->genTree_HTML ? $depthData.'<img src="'.$this->backPath.'t3lib/gfx/ol/'.$LN.'.gif" width="18" height="16" align="top" alt="" />' : '');
$this->genTree($newID,$this->genTree_HTML ? $depthData.'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/'.$LN.'.gif','width="18" height="16"').' align="top" alt="" />' : '');
}
return (mysql_num_rows($res));
}
......@@ -172,7 +172,7 @@ class t3lib_admin {
/**
* Fixes lost record from $table with uid $uid by setting the PID to zero. If there is a disabled column for the record that will be set as well.
*
* @param string Tablename
* @param string Database tablename
* @param integer The uid of the record which will have the PID value set to 0 (zero)
* @return boolean True if done.
*/
......@@ -305,7 +305,7 @@ class t3lib_admin {
/**
* This selects non-empty-records from the tables/fields in the fkey_array generated by getGroupFields()
*
* @param array
* @param array Array with tables/fields generated by getGroupFields()
* @return void
* @see getGroupFields()
*/
......@@ -471,7 +471,7 @@ class t3lib_admin {
* Finding all references to record based on table/uid
*
* @param string Table name
* @param integer Uid
* @param integer Uid of database record
* @return array Array with other arrays containing information about where references was found
*/
function whereIsRecordReferenced($searchTable,$id) {
......@@ -505,7 +505,7 @@ class t3lib_admin {
* Finding all references to file based on uploadfolder / filename
*
* @param string Upload folder where file is found
* @param string filename
* @param string Filename to search for
* @return array Array with other arrays containing information about where references was found
*/
function whereIsFileReferenced($uploadfolder,$filename) {
......
......@@ -109,7 +109,7 @@ class t3lib_arrayBrowser {
$HTML.=$depthData;
$theIcon='<img src="'.$GLOBALS['BACK_PATH'].'t3lib/gfx/ol/'.$PM.$BTM.'.gif" width="18" height="16" align="top" border="0" alt="" />';
$theIcon='<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/ol/'.$PM.$BTM.'.gif','width="18" height="16"').' align="top" border="0" alt="" />';
if ($PM=='join') {
$HTML.=$theIcon;
} else {
......@@ -136,7 +136,7 @@ class t3lib_arrayBrowser {
$HTML.='<br />';
if ($deeper) {
$HTML.=$this->tree($arr[$key], $depth, $depthData.'<img src="'.$GLOBALS['BACK_PATH'].'t3lib/gfx/ol/'.$LN.'.gif" width="18" height="16" align="top" alt="" />');
$HTML.=$this->tree($arr[$key], $depth, $depthData.'<img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/ol/'.$LN.'.gif','width="18" height="16"').' align="top" alt="" />');
}
}
return $HTML;
......
......@@ -417,7 +417,7 @@ class t3lib_basicFileFunctions {
* @return string Output string with any characters not matching [.a-zA-Z0-9_-] is substituted by '_'
*/
function cleanFileName($fileName) {
$theNewName = ereg_replace('[^\.[:alnum:]_-]','_',trim($fileName));
$theNewName = ereg_replace('[^.[:alnum:]_-]','_',trim($fileName));
return $theNewName;
}
......
......@@ -109,7 +109,7 @@ class t3lib_BEDisplayLog {
}
/**
* Get time label
* Get time label for log listing
*
* @param integer Timestamp to display
* @return string If the timestamp was also shown last time, then "." is returned. Otherwise the new timestamp formatted with ->doc->formatTime()
......@@ -124,7 +124,7 @@ class t3lib_BEDisplayLog {
}
/**
* Get user name label
* Get user name label for log listing
*
* @param integer be_user uid
* @return string If username is different from last username then the username, otherwise "."
......@@ -138,7 +138,7 @@ class t3lib_BEDisplayLog {
}
/**
* Get type label
* Get type label for log listing
*
* @param string Key for the type label in locallang
* @return string If labe is different from last type label then the label is returned, otherwise "."
......@@ -152,7 +152,7 @@ class t3lib_BEDisplayLog {
}
/**
* Get action label
* Get action label for log listing
*
* @param string Key for the action label in locallang
* @return string If labe is different from last action label then the label is returned, otherwise "."
......@@ -204,7 +204,7 @@ class t3lib_BEDisplayLog {
}
/**
* Reset
* Reset all internal "last..." variables to blank string.
*
* @return void
*/
......@@ -245,7 +245,7 @@ class t3lib_BEDisplayLog {
* For all entries in the $inArray (expected to be filepaths) the basename is extracted and set as value (if $this->stripPath is set)
* This is done for log-entries from the FILE modules
*
* @param array
* @param array Array of file paths
* @return array
* @see formatDetailsForList()
*/
......
......@@ -97,7 +97,7 @@
* 1280: function titleAltAttrib($content)
* 1305: function thumbCode($row,$table,$field,$backPath,$thumbScript='',$uploaddir='',$abs=0,$tparams='',$size='')
* 1374: function getThumbNail($thumbScript,$theFile,$tparams='',$size='')
* 1392: function titleAttribForPages ($row,$perms_clause='',$includeAttrib=1)
* 1392: function titleAttribForPages($row,$perms_clause='',$includeAttrib=1)
* 1447: function getRecordIconAltText($row,$table='pages')
* 1482: function getLabelFromItemlist($table,$col,$key)
* 1509: function getItemLabel($table,$col,$printAllWrap='')
......@@ -303,7 +303,7 @@ class t3lib_BEfunc {
*
* Usage: 1
*
* @param string
* @param string [tablename]_[uid] string to explode
* @return array
*/
function splitTable_Uid($str) {
......@@ -425,7 +425,7 @@ class t3lib_BEfunc {
*
* Usage: 15
*
* @param string Tablename
* @param string Database tablename
* @param string WHERE clause, eg. "uid=1"
* @param array Field values as key=>value pairs.
* @param boolean Set $slash=1 if values should be addslashes()'ed (default)
......@@ -466,7 +466,7 @@ class t3lib_BEfunc {
*
* Usage: 13
*
* @param integer Page id
* @param integer Page id for which to create the root line.
* @param string $clause can be used to select other criteria. It would typically be where-clauses that stops the proces if we meet a page, the user has no reading access to.
* @return array Root line array, all the way to the page tree root (or as far as $clause allows!)
*/
......@@ -512,7 +512,7 @@ class t3lib_BEfunc {
*
* Usage: 23
*
* @param integer Page uid
* @param integer Page uid for which to create record path
* @param string $clause is additional where clauses, eg. "
* @param integer Title limit
* @return string Path of record
......@@ -573,7 +573,7 @@ class t3lib_BEfunc {
*
* Usage: 21
*
* @param integer Page uid
* @param integer Page uid for which to check read-access
* @param string $perms_clause is typically a value generated with $BE_USER->getPagePermsClause(1);
* @return array Returns page record if OK, otherwise false.
*/
......@@ -673,7 +673,7 @@ class t3lib_BEfunc {
*
* Usage: 3
*
* @param string
* @param string Content from the "types" configuration of TCA (the special configuration) - see description of function
* @return array
*/
function getSpecConfParts($str) {
......@@ -698,7 +698,7 @@ class t3lib_BEfunc {
*
* Usage: 6
*
* @param array
* @param array Array of "[key]=[value]" strings to convert.
* @return array
*/
function getSpecConfParametersFromArray($pArr) {
......@@ -877,7 +877,7 @@ class t3lib_BEfunc {
*
* Usage: 26 (spec. in ext info_pagetsconfig)
*
* @param integer Page uid
* @param integer Page uid for which to create Page TSconfig
* @param array If $rootLine is an array, that is used as rootline, otherwise rootline is just calculated
* @param boolean If $returnPartArray is set, then the array with accumulated Page TSconfig is returned non-parsed. Otherwise the output will be parsed by the TypoScript parser.
* @return array Page TSconfig
......@@ -928,8 +928,8 @@ class t3lib_BEfunc {
*
* @param integer Page id
* @param array Page TS array to write
* @param string Prefix
* @param array
* @param string Prefix for object paths
* @param array [Description needed.]
* @return void
* @internal
* @see implodeTSParams(), getPagesTSconfig()
......@@ -986,7 +986,7 @@ class t3lib_BEfunc {
* Usage: 3
*
* @param array TypoScript structure
* @param string
* @param string Prefix string
* @return array Imploded TypoScript objectstring/values
*/
function implodeTSParams($p,$k='') {
......@@ -1115,9 +1115,9 @@ class t3lib_BEfunc {
*
* Usage: 2 (module web_perm)
*
* @param array
* @param array
* @param boolean
* @param array Group names
* @param array Group names (reference)
* @param boolean If $excludeBlindedFlag is set, then these records are unset from the array $usernames
* @return array
*/
function blindGroupNames($groups,$groupArray,$excludeBlindedFlag=0) {
......@@ -1255,15 +1255,15 @@ class t3lib_BEfunc {
/**
* Returns either title='' or alt='' attribute. This depends on the client browser and whether it supports title='' or not (which is the default)
* If no $content is given only the attribute name is returned.
* If $hsc is set, then content of the attribute is htmlspecialchar()'ed (which is good for XHTML and other reasons...)
* The returned attribute with content will have a leading space char.
* Warning: Be careful to submit empty $content var - that will return just the attribute name!
*
* Usage: 203
*
* @param string
* @param boolean
* @param string String to set as title-attribute. If no $content is given only the attribute name is returned.
* @param boolean If $hsc is set, then content of the attribute is htmlspecialchar()'ed (which is good for XHTML and other reasons...)
* @return string
* @depreciated The idea made sense with older browsers, but now all browsers should support the "title" attribute - so just hardcode the title attribute instead!
*/
function titleAttrib($content='',$hsc=0) {
global $CLIENT;
......@@ -1274,7 +1274,7 @@ class t3lib_BEfunc {
/**
* Returns alt="" and title="" attributes with the value of $content.
*
* @param string
* @param string Value for 'alt' and 'title' attributes (will be htmlspecialchars()'ed before output)
* @return string