Added more comments, $Id$ keywords etc for the whole core of TYPO3.
authorKasper Skårhøj <kasper@typo3.org>
Mon, 27 Oct 2003 14:53:28 +0000 (14:53 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Mon, 27 Oct 2003 14:53:28 +0000 (14:53 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@49 709f56b5-9817-0410-a4d7-c38de5d9e867

83 files changed:
GPL.txt [new file with mode: 0755]
LICENSE.txt [new file with mode: 0755]
TODO.txt
t3lib/GPL.txt
t3lib/class.t3lib_tceforms.php
typo3/GPL.txt
typo3/alt_clickmenu.php
typo3/alt_db_navframe.php
typo3/alt_doc.php
typo3/alt_doc_nodoc.php
typo3/alt_file_navframe.php
typo3/alt_intro.php
typo3/alt_main.php
typo3/alt_menu.php
typo3/alt_menu_sel.php
typo3/alt_mod_frameset.php
typo3/alt_palette.php
typo3/alt_shortcut.php
typo3/alt_toplogo.php
typo3/alt_topmenu_dummy.php
typo3/browse_links.php
typo3/browser.php
typo3/class.alt_menu_functions.inc
typo3/class.db_list.inc
typo3/class.db_list_extra.inc
typo3/class.file_list.inc
typo3/class.show_rechis.inc
typo3/close.html
typo3/db_list.php
typo3/db_new.php
typo3/default.htm
typo3/default.html
typo3/dev/dump_template_tables.php
typo3/dev/phpinfo.php
typo3/dummy.php
typo3/file_edit.php
typo3/file_list.php
typo3/file_newfolder.php
typo3/file_rename.php
typo3/file_upload.php
typo3/index.htm
typo3/index.html
typo3/index.php
typo3/index_re.php
typo3/init.php
typo3/install/index.php
typo3/listframe_loader.php
typo3/login_frameset.php
typo3/logout.php
typo3/mod/doc/conf.php
typo3/mod/file/conf.php
typo3/mod/file/list/conf.php
typo3/mod/help/about/conf.php
typo3/mod/help/about/index.php
typo3/mod/help/conf.php
typo3/mod/tools/conf.php
typo3/mod/tools/em/class.kickstarter.php
typo3/mod/tools/em/index.php
typo3/mod/tools/note.txt
typo3/mod/user/conf.php
typo3/mod/web/conf.php
typo3/mod/web/func/conf.php
typo3/mod/web/func/index.php
typo3/mod/web/info/index.php
typo3/mod/web/list/conf.php
typo3/mod/web/perm/conf.php
typo3/mod/web/perm/index.php
typo3/move_el.php
typo3/show_item.php
typo3/show_rechis.php
typo3/stylesheet.css
typo3/sysext/cms/tslib/GPL.txt
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/tce_db.php
typo3/tce_file.php
typo3/view_help.php
typo3/wizard_add.php
typo3/wizard_edit.php
typo3/wizard_forms.php
typo3/wizard_list.php
typo3/wizard_rte.php
typo3/wizard_table.php
typo3/wizard_tsconfig.php

diff --git a/GPL.txt b/GPL.txt
new file mode 100755 (executable)
index 0000000..4fe5df7
--- /dev/null
+++ b/GPL.txt
@@ -0,0 +1,340 @@
+                   GNU GENERAL PUBLIC LICENSE
+                      Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                           Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+.
+                   GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+.
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+.
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+.
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                           NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                    END OF TERMS AND CONDITIONS
+.
+           How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100755 (executable)
index 0000000..5f24293
--- /dev/null
@@ -0,0 +1,10 @@
+---------------------------------
+ The TYPO3 licensing conditions
+ 2003, Kasper Skårhøj (kasper@typo3.com)
+ Document version 2.00, 24-02-2003
+--------------------------------- 
+
+The TYPO3 project is free software under the terms of the GNU General Public License.
+The GNU/GPL license is found in the file GPL.txt
+
+For information about what this license means and how copyright law applies to a product like TYPO3, please refer to http://typo3.org/1310.0.html
index 1c22c55..e432bc3 100755 (executable)
--- a/TODO.txt
+++ b/TODO.txt
@@ -332,6 +332,201 @@ NOTES
 
 
   
+******************************************
+APPENDIX 1: CLEANING UP FOR TYPO3 3.6.0
+******************************************
+Cleaning for 3.6 involves:
+- XHTML compliance
+- " to '
+- Commented functions
+
+1: Add comments
+ * NOTICE: This will also detect JavaScript functions, but if you place a comment line like "// ..." in the end of the function definition line they will not have the JavaDoc style comment added. Eg. "      function blabla()       {       //    "
+2: Write comments, organize them, add sections etc. (search [type])
+2a: Set "@access private"
+3: double to single quote (check for "\n")
+4: XHTML
+
+
+Status 27/10 (TYPO3 Core + extensions "cms" and "lang" in sysext/ (but without 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
+
+---------------------------------------------------------------
+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________________________________________:
+XQCR: t3lib/class.t3lib_admin.php
+XQCR: t3lib/class.t3lib_arraybrowser.php
+-QCR: t3lib/class.t3lib_basicfilefunc.php
+XQCR: t3lib/class.t3lib_bedisplaylog.php
+XQCR: t3lib/class.t3lib_befunc.php
+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_div.php
+               t3lib/class.t3lib_dmailer.php
+               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
+-QCR: t3lib/class.t3lib_formmail.php
+               t3lib/class.t3lib_fullsearch.php
+               t3lib/class.t3lib_htmlmail.php
+XQCR: t3lib/class.t3lib_iconworks.php
+               t3lib/class.t3lib_install.php
+-QCR: t3lib/class.t3lib_loaddbgroup.php
+-QCR: t3lib/class.t3lib_loadmodules.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_parsehtml.php
+               a.Q..: t3lib/class.t3lib_parsehtml_proc.php (45)
+               t3lib/class.t3lib_positionmap.php
+               t3lib/class.t3lib_querygenerator.php
+-QCR: t3lib/class.t3lib_readmail.php
+XQCR: t3lib/class.t3lib_recordlist.php
+-QCR: t3lib/class.t3lib_scbase.php
+-QCR: t3lib/class.t3lib_stdgraphic.php
+               t3lib/class.t3lib_superadmin.php
+               t3lib/class.t3lib_svbase.php            [Rene]
+-QCR: t3lib/class.t3lib_tceforms.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_tsfebeuserauth.php
+-QCR: t3lib/class.t3lib_tsparser.php
+               t3lib/class.t3lib_tsparser_ext.php
+               t3lib/class.t3lib_tsstyleconfig.php
+-QCR: t3lib/class.t3lib_tstemplate.php
+XQCR: t3lib/class.t3lib_userauth.php
+XQCR: t3lib/class.t3lib_userauthgroup.php
+-QCR: t3lib/class.t3lib_xml.php
+
+-QCR: t3lib/config_default.php
+-QCR: t3lib/thumbs.php
+XQCR: template.php
+-QCR: t3lib/stddb/load_ext_tables.php
+-QCR: t3lib/stddb/tables.php
+-QCR: t3lib/stddb/tbl_be.php
+
+cms_______________________________________:
+XQCR: tslib/class.tslib_content.php
+XQCR: tslib/class.tslib_fe.php
+-QCR: tslib/class.tslib_fetce.php
+-QCR: tslib/class.tslib_feuserauth.php
+-QCR: tslib/class.tslib_gifbuilder.php
+XQCR: tslib/class.tslib_menu.php
+XQCR: tslib/class.tslib_pagegen.php
+XQCR: tslib/class.tslib_pibase.php
+XQC-: tslib/class.tslib_search.php
+XQCR: tslib/media/scripts/example_callfunction.php
+XQCR: tslib/media/scripts/example_itemArrayProcFunc.php
+XQCR: tslib/media/scripts/example_keepRollover.php
+XQ-R: tslib/media/scripts/example_languageMenu.php
+XQCR: tslib/media/scripts/example_typolinkpop.php
+XQCR: tslib/media/scripts/fe_adminLib.inc
+XQ-R: tslib/media/scripts/freesite_dummy_page_menu.php
+XQCR: tslib/media/scripts/gmenu_foldout.php
+XQCR: tslib/media/scripts/gmenu_layers.php
+-QCR: tslib/media/scripts/makeMenu_datedirectory.inc
+-QCR: tslib/media/scripts/makeMenu_keywords_updated.inc
+XQCR: tslib/media/scripts/plaintextLib.inc
+XQCR: tslib/media/scripts/postit.inc
+----: tslib/media/scripts/testscript.inc
+----: tslib/media/scripts/testscript_EXT.php
+----: tslib/media/scripts/testscript_INT.php
+XQCR: tslib/media/scripts/tmenu_layers.php
+XQCR: tslib/media/scripts/wapversionLib.inc
+XQCR: tslib/media/scripts/xmlversionLib.inc
+-Q-R: tslib/index_ts.php
+-Q-R: tslib/pagegen.php
+-Q-.: tslib/publish.php
+.QCR: tslib/showpic.php
+XQCR: web_info/class.tx_cms_webinfo.php
+
+lang___________________________________________:
+XQCR: lang.php
+
+
+
+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_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_shortcut.php
+XQCR: alt_toplogo.php
+XQCR: alt_topmenu_dummy.php
+               browse_links.php
+               browser.php
+XQCR: class.alt_menu_functions.inc
+               class.db_layout.inc
+               class.db_list.inc
+               class.db_list_extra.inc
+XQCR: class.file_list.inc
+               class.show_rechis.inc
+               db_layout.php
+               db_list.php
+XQCR: db_new.php
+               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
+-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: show_rechis.php
+               status_file.php
+-QCR:  tce_db.php
+-QCR: tce_file.php
+XQCR: template.php
+XQCR:  view_help.php
+               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: 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
+
+  
 *******************
 APPENDIX 2: XHTML
 *******************
index e8e72ee..4fe5df7 100755 (executable)
@@ -2,7 +2,7 @@
                       Version 2, June 1991
 
  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
@@ -56,11 +56,6 @@ patent must be licensed for everyone's free use or not licensed at all.
   The precise terms and conditions for copying, distribution and
 modification follow.
 .
-
-
-
-
-
                    GNU GENERAL PUBLIC LICENSE
    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 
@@ -283,3 +278,63 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGES.
 
                     END OF TERMS AND CONDITIONS
+.
+           How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
index d275601..9271564 100755 (executable)
  *
  *
  *
- *  197: class t3lib_TCEforms  
- *  292:     function t3lib_TCEforms() 
- *  329:     function initDefaultBEmode()      
+ *  171: class t3lib_TCEforms  
+ *  266:     function t3lib_TCEforms() 
+ *  303:     function initDefaultBEmode()      
  *
  *              SECTION: Rendering the forms, fields etc
- *  375:     function getSoloField($table,$row,$theFieldToReturn)      
- *  414:     function getMainFields($table,$row,$depth=0)      
- *  541:     function getListedFields($table,$row,$list)       
- *  582:     function getPaletteFields($table,$row,$palette,$header='',$itemList='',$collapsedHeader='')       
- *  658:     function getSingleField($table,$field,$row,$altName='',$palette=0,$extra='',$pal=0)       
- *  786:     function getSingleField_SW($table,$field,$row,&$PA)       
+ *  349:     function getSoloField($table,$row,$theFieldToReturn)      
+ *  388:     function getMainFields($table,$row,$depth=0)      
+ *  515:     function getListedFields($table,$row,$list)       
+ *  556:     function getPaletteFields($table,$row,$palette,$header='',$itemList='',$collapsedHeader='')       
+ *  632:     function getSingleField($table,$field,$row,$altName='',$palette=0,$extra='',$pal=0)       
+ *  760:     function getSingleField_SW($table,$field,$row,&$PA)       
  *
  *              SECTION: Rendering of each TCEform field type
- *  857:     function getSingleField_typeInput($table,$field,$row,&$PA)        
- *  909:     function getSingleField_typeText($table,$field,$row,&$PA) 
- *  978:     function getSingleField_typeCheck($table,$field,$row,&$PA)        
- * 1037:     function getSingleField_typeRadio($table,$field,$row,&$PA)        
- * 1067:     function getSingleField_typeSelect($table,$field,$row,&$PA)       
- * 1225:     function getSingleField_typeGroup($table,$field,$row,&$PA)        
- * 1367:     function getSingleField_typeNone($table,$field,$row,&$PA) 
- * 1421:     function getSingleField_typeFlex($table,$field,$row,&$PA) 
- * 1522:     function getSingleField_typeFlex_langMenu($languages,$elName,$selectedLanguage,$multi=1)  
- * 1541:     function getSingleField_typeFlex_sheetMenu($sArr,$elName,$sheetKey)       
- * 1571:     function getSingleField_typeFlex_draw($dataStruct,$editData,$cmdData,$table,$field,$row,&$PA,$formPrefix='',$level=0,$tRows=array())      
- * 1722:     function getSingleField_typeUnknown($table,$field,$row,&$PA)      
- * 1737:     function getSingleField_typeUser($table,$field,$row,&$PA) 
+ *  831:     function getSingleField_typeInput($table,$field,$row,&$PA)        
+ *  883:     function getSingleField_typeText($table,$field,$row,&$PA) 
+ *  952:     function getSingleField_typeCheck($table,$field,$row,&$PA)        
+ * 1011:     function getSingleField_typeRadio($table,$field,$row,&$PA)        
+ * 1041:     function getSingleField_typeSelect($table,$field,$row,&$PA)       
+ * 1199:     function getSingleField_typeGroup($table,$field,$row,&$PA)        
+ * 1341:     function getSingleField_typeNone($table,$field,$row,&$PA) 
+ * 1395:     function getSingleField_typeFlex($table,$field,$row,&$PA) 
+ * 1496:     function getSingleField_typeFlex_langMenu($languages,$elName,$selectedLanguage,$multi=1)  
+ * 1515:     function getSingleField_typeFlex_sheetMenu($sArr,$elName,$sheetKey)       
+ * 1545:     function getSingleField_typeFlex_draw($dataStruct,$editData,$cmdData,$table,$field,$row,&$PA,$formPrefix='',$level=0,$tRows=array())      
+ * 1696:     function getSingleField_typeUnknown($table,$field,$row,&$PA)      
+ * 1711:     function getSingleField_typeUser($table,$field,$row,&$PA) 
  *
  *              SECTION: "Configuration" fetching/processing functions
- * 1769:     function getRTypeNum($table,$row) 
- * 1795:     function rearrange($fields)       
- * 1821:     function getExcludeElements($table,$row,$typeNum) 
- * 1869:     function getFieldsToAdd($table,$row,$typeNum)     
- * 1894:     function mergeFieldsWithAddedFields($fields,$fieldsToAdd) 
- * 1926:     function setTSconfig($table,$row,$field='')       
- * 1948:     function getSpecConfForField($table,$row,$field)  
- * 1968:     function getSpecConfFromString($extraString)    
+ * 1743:     function getRTypeNum($table,$row) 
+ * 1769:     function rearrange($fields)       
+ * 1795:     function getExcludeElements($table,$row,$typeNum) 
+ * 1843:     function getFieldsToAdd($table,$row,$typeNum)     
+ * 1868:     function mergeFieldsWithAddedFields($fields,$fieldsToAdd) 
+ * 1900:     function setTSconfig($table,$row,$field='')       
+ * 1922:     function getSpecConfForField($table,$row,$field)  
+ * 1942:     function getSpecConfFromString($extraString)    
  *
  *              SECTION: Form element helper functions
- * 2000:     function dbFileIcons($fName,$mode,$allowed,$itemArray,$selector='',$params=array(),$onFocus='')   
- * 2109:     function renderWizards($itemKinds,$wizConf,$table,$row,$field,&$PA,$itemName,$specConf,$RTE=0)    
- * 2272:     function getIcon($icon)   
- * 2303:     function wrapOpenPalette($header,$table,$row,$palette,$retFunc=0) 
- * 2327:     function checkBoxParams($itemName,$thisValue,$c,$iCount,$addFunc='')      
- * 2341:     function elName($itemName)        
- * 2352:     function noTitle($str,$wrapParts=array()) 
- * 2361:     function blur()   
- * 2374:     function getSingleHiddenField($table,$field,$row) 
- * 2396:     function formWidth($size=48,$textarea=0) 
- * 2418:     function formWidthText($size=48,$wrap='') 
- * 2433:     function formElStyle($type)       
- * 2451:     function insertDefStyle($type)    
+ * 1974:     function dbFileIcons($fName,$mode,$allowed,$itemArray,$selector='',$params=array(),$onFocus='')   
+ * 2083:     function renderWizards($itemKinds,$wizConf,$table,$row,$field,&$PA,$itemName,$specConf,$RTE=0)    
+ * 2246:     function getIcon($icon)   
+ * 2277:     function wrapOpenPalette($header,$table,$row,$palette,$retFunc=0) 
+ * 2301:     function checkBoxParams($itemName,$thisValue,$c,$iCount,$addFunc='')      
+ * 2315:     function elName($itemName)        
+ * 2326:     function noTitle($str,$wrapParts=array()) 
+ * 2335:     function blur()   
+ * 2348:     function getSingleHiddenField($table,$field,$row) 
+ * 2370:     function formWidth($size=48,$textarea=0) 
+ * 2392:     function formWidthText($size=48,$wrap='') 
+ * 2407:     function formElStyle($type)       
+ * 2425:     function insertDefStyle($type)    
  *
  *              SECTION: Item-array manipulation functions (check/select/radio)
- * 2482:     function initItemArray($fieldValue)       
- * 2500:     function addItems($items,$iArray) 
- * 2522:     function procItems($items,$iArray,$config,$table,$row,$field)     
- * 2546:     function addSelectOptionsToItemArray($items,$fieldValue,$TSconfig,$field) 
- * 2624:     function addSelectOptionsToItemArray_makeModuleData($value)       
- * 2646:     function foreignTable($items,$fieldValue,$TSconfig,$field,$pFFlag=0)      
+ * 2456:     function initItemArray($fieldValue)       
+ * 2474:     function addItems($items,$iArray) 
+ * 2496:     function procItems($items,$iArray,$config,$table,$row,$field)     
+ * 2520:     function addSelectOptionsToItemArray($items,$fieldValue,$TSconfig,$field) 
+ * 2598:     function addSelectOptionsToItemArray_makeModuleData($value)       
+ * 2620:     function foreignTable($items,$fieldValue,$TSconfig,$field,$pFFlag=0)      
  *
  *              SECTION: Template functions
- * 2724:     function setFancyDesign() 
- * 2751:     function setNewBEDesign() 
- * 2805:     function intoTemplate($inArr,$altTemplate='')     
- * 2829:     function addUserTemplateMarkers($marker,$table,$field,$row,&$PA)  
- * 2840:     function wrapLabels($str) 
- * 2853:     function wrapTotal($c,$rec,$table)        
- * 2866:     function replaceTableWrap($arr,$rec,$table)       
- * 2888:     function wrapBorder(&$out_array,&$out_pointer)    
- * 2909:     function rplColorScheme($inTemplate)      
- * 2922:     function getDivider()     
- * 2932:     function printPalette($palArr)    
- * 2974:     function helpTextIcon($table,$field,$force=0)     
- * 2990:     function helpText($table,$field)  
- * 3012:     function setColorScheme($scheme)  
- * 3026:     function resetSchemes()   
- * 3037:     function storeSchemes()   
- * 3048:     function restoreSchemes() 
+ * 2698:     function setFancyDesign() 
+ * 2725:     function setNewBEDesign() 
+ * 2779:     function intoTemplate($inArr,$altTemplate='')     
+ * 2803:     function addUserTemplateMarkers($marker,$table,$field,$row,&$PA)  
+ * 2814:     function wrapLabels($str) 
+ * 2827:     function wrapTotal($c,$rec,$table)        
+ * 2840:     function replaceTableWrap($arr,$rec,$table)       
+ * 2862:     function wrapBorder(&$out_array,&$out_pointer)    
+ * 2883:     function rplColorScheme($inTemplate)      
+ * 2896:     function getDivider()     
+ * 2906:     function printPalette($palArr)    
+ * 2948:     function helpTextIcon($table,$field,$force=0)     
+ * 2964:     function helpText($table,$field)  
+ * 2986:     function setColorScheme($scheme)  
+ * 3000:     function resetSchemes()   
+ * 3011:     function storeSchemes()   
+ * 3022:     function restoreSchemes() 
  *
  *              SECTION: JavaScript related functions
- * 3078:     function JStop($formname='forms[0]')      
- * 3111:     function JSbottom($formname='forms[0]')   
- * 3175:     function TBE_EDITOR_loginRefreshed()      
- * 3181:     function TBE_EDITOR_checkLoginTimeout()   
- * 3189:     function TBE_EDITOR_setHiddenContent(RTEcontent,theField) 
- * 3194:     function TBE_EDITOR_fieldChanged_fName(fName,el)  
- * 3206:     function TBE_EDITOR_fieldChanged(table,uid,field,el)      
- * 3244:     function TBE_EDITOR_setOriginalFormFieldValue(theField)   
- * 3251:     function TBE_EDITOR_isFormChanged(noAlert)        
- * 3258:     function TBE_EDITOR_checkAndDoSubmit(sendAlert)   
- * 3264:     function TBE_EDITOR_checkSubmit(sendAlert)        
- * 3288:     function TBE_EDITOR_checkRange(el,lower,upper)    
- * 3296:     function TBE_EDITOR_initRequired()        
- * 3301:     function TBE_EDITOR_setImage(name,imgName)        
- * 3305:     function TBE_EDITOR_submitForm()  
- * 3310:     function typoSetup        ()      
- * 3317:     function typo3FormFieldSet(theField, evallist, is_in, checkbox, checkboxValue)    
- * 3331:     function typo3FormFieldGet(theField, evallist, is_in, checkbox, checkboxValue, checkbox_off, checkSetValue)       
- * 3347:     function TBE_EDITOR_split(theStr1, delim, index) 
- * 3361:     function TBE_EDITOR_palUrl(inData,fieldList,fieldNum,table,uid,isOnFocus) 
- * 3378:     function TBE_EDITOR_curSelected(theField) 
- * 3392:     function TBE_EDITOR_rawurlencode(str,maxlen)      
- * 3403:     function TBE_EDITOR_str_replace(match,replace,string)     
- * 3438:     function dbFileCon($formObj='document.forms[0]')  
- * 3447:     function setFormValueOpenBrowser (mode,params) 
- * 3460:     function setFormValueFromBrowseWin(fName,value,label)     
- * 3486:     function setHiddenFromList(fObjSel,fObjHid)       
- * 3494:     function setFormValueManipulate(fName,type)       
- * 3534:     function setFormValue_getFObj(fName)      
- * 3556:     function printNeededJSFunctions() 
- * 3575:     function printNeededJSFunctions_top()     
+ * 3052:     function JStop($formname='forms[0]')      
+ * 3085:     function JSbottom($formname='forms[0]')   
+ * 3392:     function dbFileCon($formObj='document.forms[0]')  
+ * 3506:     function printNeededJSFunctions() 
+ * 3525:     function printNeededJSFunctions_top()     
  *
  *              SECTION: Various helper functions
- * 3623:     function getDefaultRecord($table,$pid=0)  
- * 3660:     function getRecordPath($table,$rec)       
- * 3673:     function readPerms()      
- * 3687:     function sL($str) 
- * 3700:     function getLL($str)      
- * 3718:     function isPalettesCollapsed($table,$palette)     
- * 3733:     function isDisplayCondition($displayCond,$row)    
- * 3784:     function getTSCpid($table,$uid,$pid)      
- * 3798:     function doLoadTableDescr($table) 
- * 3810:     function getAvailableLanguages($onlyIsoCoded=1,$setDefault=1)     
+ * 3573:     function getDefaultRecord($table,$pid=0)  
+ * 3610:     function getRecordPath($table,$rec)       
+ * 3623:     function readPerms()      
+ * 3637:     function sL($str) 
+ * 3650:     function getLL($str)      
+ * 3668:     function isPalettesCollapsed($table,$palette)     
+ * 3683:     function isDisplayCondition($displayCond,$row)    
+ * 3734:     function getTSCpid($table,$uid,$pid)      
+ * 3748:     function doLoadTableDescr($table) 
+ * 3760:     function getAvailableLanguages($onlyIsoCoded=1,$setDefault=1)     
  *
  *
- * 3853: class t3lib_TCEforms_FE extends t3lib_TCEforms 
- * 3861:     function wrapLabels($str) 
- * 3871:     function printPalette($palArr)    
+ * 3803: class t3lib_TCEforms_FE extends t3lib_TCEforms 
+ * 3811:     function wrapLabels($str) 
+ * 3821:     function printPalette($palArr)    
  *
- * TOTAL FUNCTIONS: 108
+ * TOTAL FUNCTIONS: 82
  * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
@@ -407,7 +381,7 @@ class t3lib_TCEforms        {
         * 
         * @param       string          The table name
         * @param       array           The record from the table for which to render a field.
-        * @param       [type]          $depth: ...
+        * @param       integer         Depth level
         * @return      string          HTML output
         * @see getSoloField()
         */
@@ -3171,27 +3145,23 @@ class t3lib_TCEforms    {
                                var TBE_EDITOR_loadTime = 0;
                                var TBE_EDITOR_isChanged = 0;
 
-                                       //
-                               function TBE_EDITOR_loginRefreshed()    {
+                               function TBE_EDITOR_loginRefreshed()    {       //
                                        var date = new Date();
                                        TBE_EDITOR_loadTime = Math.floor(date.getTime()/1000);
                                        if (top.busy && top.busy.loginRefreshed)        {top.busy.loginRefreshed();}
                                }
-                                       //
-                               function TBE_EDITOR_checkLoginTimeout() {
+                               function TBE_EDITOR_checkLoginTimeout() {       //
                                        var date = new Date();
                                        var theTime = Math.floor(date.getTime()/1000);
                                        if (theTime > TBE_EDITOR_loadTime+'.intval($GLOBALS['BE_USER']->auth_timeout_field).'-10)       {
                                                return true;
                                        }
                                }
-                                       //
-                               function TBE_EDITOR_setHiddenContent(RTEcontent,theField)       {
+                               function TBE_EDITOR_setHiddenContent(RTEcontent,theField)       {       //
                                        document.'.$formname.'[theField].value = RTEcontent;
                                        alert(document.'.$formname.'[theField].value);
                                }
-                                       //
-                               function TBE_EDITOR_fieldChanged_fName(fName,el)        {
+                               function TBE_EDITOR_fieldChanged_fName(fName,el)        {       //
                                        var idx='.(2+substr_count($this->prependFormFieldNames,'[')).';
                                        var table = TBE_EDITOR_split(fName, "[", idx);
                                        var uid = TBE_EDITOR_split(fName, "[", idx+1);
@@ -3202,8 +3172,7 @@ class t3lib_TCEforms      {
                                        field = field.substr(0,field.length-1);
                                        TBE_EDITOR_fieldChanged(table,uid,field,el);
                                }
-                                       //
-                               function TBE_EDITOR_fieldChanged(table,uid,field,el)    {
+                               function TBE_EDITOR_fieldChanged(table,uid,field,el)    {       //
                                        var theField = "'.$this->prependFormFieldNames.'["+table+"]["+uid+"]["+field+"]";
                                        TBE_EDITOR_isChanged = 1;
 
@@ -3240,28 +3209,24 @@ class t3lib_TCEforms    {
                                        ').'
                                }
                                '.($this->isPalettedoc?'
-                                       //
-                               function TBE_EDITOR_setOriginalFormFieldValue(theField) {
+                               function TBE_EDITOR_setOriginalFormFieldValue(theField) {       //
                                        if ('.$this->isPalettedoc.' && '.$this->isPalettedoc.'.'.$formname.' && '.$this->isPalettedoc.'.'.$formname.'[theField]) {
                                                '.$this->isPalettedoc.'.'.$formname.'[theField].value = document.'.$formname.'[theField].value;
                                        }
                                }
                                ':'').'
-                                       //
-                               function TBE_EDITOR_isFormChanged(noAlert)      {
+                               function TBE_EDITOR_isFormChanged(noAlert)      {       //
                                        if (TBE_EDITOR_isChanged && !noAlert && confirm('.$GLOBALS['LANG']->JScharCode($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.fieldsChanged')).'))        {
                                                return 0;
                                        }
                                        return TBE_EDITOR_isChanged;
                                }
-                                       //
-                               function TBE_EDITOR_checkAndDoSubmit(sendAlert) {
+                               function TBE_EDITOR_checkAndDoSubmit(sendAlert) {       //
                                        if (TBE_EDITOR_checkSubmit(sendAlert))  {
                                                TBE_EDITOR_submitForm();
                                        }
                                }
-                                       //
-                               function TBE_EDITOR_checkSubmit(sendAlert)      {
+                               function TBE_EDITOR_checkSubmit(sendAlert)      {       //
                                        if (TBE_EDITOR_checkLoginTimeout() && confirm('.$GLOBALS['LANG']->JScharCode($this->getLL('m_refresh_login')).'))       {
                                                vHWin=window.open(\''.$this->backPath.'login_frameset.php?\',\'relogin\',\'height=300,width=400,status=0,menubar=0\');
                                                vHWin.focus();
@@ -3284,37 +3249,32 @@ class t3lib_TCEforms    {
                                                return false;
                                        }
                                }
-                                       //
-                               function TBE_EDITOR_checkRange(el,lower,upper)  {
+                               function TBE_EDITOR_checkRange(el,lower,upper)  {       //
                                        if (el && el.length>=lower && el.length<=upper) {
                                                return true;
                                        } else {
                                                return false;
                                        }
                                }
-                                       //
-                               function TBE_EDITOR_initRequired()      {
+                               function TBE_EDITOR_initRequired()      {       //
 '.implode(chr(10),$reqLinesSet).'
 '.implode(chr(10),$reqRangeSet).'
                                }
-                                       //
-                               function TBE_EDITOR_setImage(name,imgName)      {
+                               function TBE_EDITOR_setImage(name,imgName)      {       //
                                        if (document[name]) {document[name].src = eval(imgName+".src");}
                                }
-                                       //
-                               function TBE_EDITOR_submitForm()        {
+                               function TBE_EDITOR_submitForm()        {       //
                                        '.($this->doSaveFieldName?'document.'.$this->formName."['".$this->doSaveFieldName."'].value=1;":'').'
                                        document.'.$this->formName.'.submit();
                                }
-                                       //
-                               function typoSetup      ()      {
+                               function typoSetup      ()      {       //
                                        this.passwordDummy = "********";
                                        this.decimalSign = ".";
                                }
                                var TS = new typoSetup();
                                var evalFunc = new evalFunc();
-                                       //
-                               function typo3FormFieldSet(theField, evallist, is_in, checkbox, checkboxValue)  {
+
+                               function typo3FormFieldSet(theField, evallist, is_in, checkbox, checkboxValue)  {       //
                                        if (document.'.$formname.'[theField])   {
                                                var theFObj = new evalFunc_dummy (evallist,is_in, checkbox, checkboxValue);
                                                var theValue = document.'.$formname.'[theField].value;
@@ -3327,8 +3287,7 @@ class t3lib_TCEforms      {
                                                }
                                        }
                                }
-                                       //
-                               function typo3FormFieldGet(theField, evallist, is_in, checkbox, checkboxValue, checkbox_off, checkSetValue)     {
+                               function typo3FormFieldGet(theField, evallist, is_in, checkbox, checkboxValue, checkbox_off, checkSetValue)     {       //
                                        if (document.'.$formname.'[theField])   {
                                                var theFObj = new evalFunc_dummy (evallist,is_in, checkbox, checkboxValue);
                                                if (checkbox_off)       {
@@ -3343,8 +3302,7 @@ class t3lib_TCEforms      {
                                                typo3FormFieldSet(theField, evallist, is_in, checkbox, checkboxValue);
                                        }
                                }
-                                       //
-                               function TBE_EDITOR_split(theStr1, delim, index) {      
+                               function TBE_EDITOR_split(theStr1, delim, index) {              //
                                        var theStr = ""+theStr1;
                                        var lengthOfDelim = delim.length;
                                        sPos = -lengthOfDelim;
@@ -3357,8 +3315,7 @@ class t3lib_TCEforms      {
                                        if(ePos == -1)  {ePos = theStr.length;} 
                                        return (theStr.substring(sPos+lengthOfDelim,ePos));
                                }
-                                       //
-                               function TBE_EDITOR_palUrl(inData,fieldList,fieldNum,table,uid,isOnFocus) {     
+                               function TBE_EDITOR_palUrl(inData,fieldList,fieldNum,table,uid,isOnFocus) {             //
                                        var url = "'.$this->backPath.'alt_palette.php?inData="+inData+"&formName='.rawurlencode($this->formName).'"+"&prependFormFieldNames='.rawurlencode($this->prependFormFieldNames).'";
                                        var field = "";
                                        var theField="";
@@ -3374,8 +3331,7 @@ class t3lib_TCEforms      {
                                                vHWin.focus();
                                        }
                                }
-                                       //
-                               function TBE_EDITOR_curSelected(theField)       {
+                               function TBE_EDITOR_curSelected(theField)       {       //
                                        var fObjSel = document.'.$formname.'[theField];
                                        var retVal="";
                                        if (fObjSel && fObjSel.type=="select-multiple") {
@@ -3388,8 +3344,7 @@ class t3lib_TCEforms      {
                                        }
                                        return retVal;
                                }
-                                       //
-                               function TBE_EDITOR_rawurlencode(str,maxlen)    {
+                               function TBE_EDITOR_rawurlencode(str,maxlen)    {       //
                                        var output = str;
                                        if (maxlen)     output = output.substr(0,200);
                                        output = escape(output);
@@ -3399,8 +3354,7 @@ class t3lib_TCEforms      {
                                        output = TBE_EDITOR_str_replace("@","%40", output);
                                        return output;
                                }
-                                       //
-                               function TBE_EDITOR_str_replace(match,replace,string)   {
+                               function TBE_EDITOR_str_replace(match,replace,string)   {       //
                                        var input = ""+string;
                                        var matchStr = ""+match;
                                        if (!matchStr)  {return string;}
@@ -3443,8 +3397,8 @@ class t3lib_TCEforms      {
                        // ***************
                
                        var browserWin="";
-                               //
-                       function setFormValueOpenBrowser (mode,params) {
+
+                       function setFormValueOpenBrowser (mode,params) {        //
                                var url = "'.$this->backPath.'browser.php?mode="+mode+"&bparams="+params;
                                if (!browserWin)        {
                                        browserWin = window.open(url,"Typo3WinBrowser","height=350,width="+(mode=="db"?650:600)+",status=0,menubar=0,resizable=1,scrollbars=1");
@@ -3456,8 +3410,7 @@ class t3lib_TCEforms      {
                                        browserWin.focus();
                                }
                        }
-                               //
-                       function setFormValueFromBrowseWin(fName,value,label)   {
+                       function setFormValueFromBrowseWin(fName,value,label)   {       //
                                var formObj = setFormValue_getFObj(fName)
                                if (formObj)    {
                                        fObj = formObj[fName+"_list"];
@@ -3482,16 +3435,14 @@ class t3lib_TCEforms    {
                                        }
                                }
                        }
-                               //
-                       function setHiddenFromList(fObjSel,fObjHid)     {
+                       function setHiddenFromList(fObjSel,fObjHid)     {       //
                                l=fObjSel.length;
                                fObjHid.value="";
                                for (a=0;a<l;a++)       {
                                        fObjHid.value+=fObjSel.options[a].value+",";
                                }
                        }
-                               //
-                       function setFormValueManipulate(fName,type)     {
+                       function setFormValueManipulate(fName,type)     {       //
                                var formObj = setFormValue_getFObj(fName)
                                if (formObj)    {
                                        var localArray_V = new Array();
@@ -3530,8 +3481,7 @@ class t3lib_TCEforms      {
                                        '.$this->TBE_EDITOR_fieldChanged_func.'
                                }
                        }
-                               //
-                       function setFormValue_getFObj(fName)    {
+                       function setFormValue_getFObj(fName)    {       //
                                var formObj = '.$formObj.';
                                if (formObj)    {
                                        if (formObj[fName] && formObj[fName+"_list"] && formObj[fName+"_list"].type=="select-multiple") {
index e8e72ee..5b6e7c6 100755 (executable)
@@ -2,7 +2,7 @@
                       Version 2, June 1991
 
  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
                      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
@@ -55,12 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all.
 
   The precise terms and conditions for copying, distribution and
 modification follow.
-.
-
-
-
-
-
+\f
                    GNU GENERAL PUBLIC LICENSE
    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 
@@ -115,7 +110,7 @@ above, provided that you also meet all of these conditions:
     License.  (Exception: if the Program itself is interactive but
     does not normally print such an announcement, your work based on
     the Program is not required to print an announcement.)
-.
+\f
 These requirements apply to the modified work as a whole.  If
 identifiable sections of that work are not derived from the Program,
 and can be reasonably considered independent and separate works in
@@ -173,7 +168,7 @@ access to copy from a designated place, then offering equivalent
 access to copy the source code from the same place counts as
 distribution of the source code, even though third parties are not
 compelled to copy the source along with the object code.
-.
+\f
   4. You may not copy, modify, sublicense, or distribute the Program
 except as expressly provided under this License.  Any attempt
 otherwise to copy, modify, sublicense or distribute the Program is
@@ -230,7 +225,7 @@ impose that choice.
 
 This section is intended to make thoroughly clear what is believed to
 be a consequence of the rest of this License.
-.
+\f
   8. If the distribution and/or use of the Program is restricted in
 certain countries either by patents or by copyrighted interfaces, the
 original copyright holder who places the Program under this License
@@ -283,3 +278,63 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGES.
 
                     END OF TERMS AND CONDITIONS
+\f
+           How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
index 9c74534..b42c2a1 100755 (executable)
  * Writing content back into a <div>-layer is necessary if we want individualized context menus with any specific content for any specific element.
  * Context menus can appear for either database elements or files 
  * The input to this script is basically the "&init" var which is divided by "|" - each part is a reference to table|uid|listframe-flag.
- * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
+ * $Id$ 
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
+ * XHTML compliant
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *  122: class clickMenu 
+ *  147:     function init($item)      
+ *  182:     function doDisplayTopFrameCM()    
+ *
+ *              SECTION: DATABASE
+ *  210:     function printDBClickMenu($table,$uid)    
+ *  299:     function printNewDBLevel($table,$uid)     
+ *  338:     function externalProcessingOfDBMenuItems($menuItems)      
+ *  350:     function processingByExtClassArray($menuItems,$table,$uid)        
+ *  369:     function urlRefForCM($url,$retUrl='',$hideCM=1)   
+ *  386:     function DB_copycut($table,$uid,$type)    
+ *  409:     function DB_paste($table,$uid,$type,$elInfo)      
+ *  430:     function DB_info($table,$uid)     
+ *  446:     function DB_history($table,$uid)  
+ *  465:     function DB_perms($table,$uid,$rec)       
+ *  484:     function DB_db_list($table,$uid,$rec)     
+ *  503:     function DB_moveWizard($table,$uid,$rec)  
+ *  524:     function DB_newWizard($table,$uid,$rec)   
+ *  542:     function DB_editAccess($table,$uid)       
+ *  560:     function DB_editPageHeader($uid)  
+ *  578:     function DB_edit($table,$uid)     
+ *  617:     function DB_new($table,$uid)      
+ *  642:     function DB_hideUnhide($table,$rec,$hideField)    
+ *  666:     function DB_delete($table,$uid,$elInfo)   
+ *  687:     function DB_view($id,$anchor='')  
+ *
+ *              SECTION: FILE
+ *  716:     function printFileClickMenu($path)        
+ *  784:     function externalProcessingOfFileMenuItems($menuItems)    
+ *  798:     function FILE_launch($path,$script,$type,$image)  
+ *  817:     function FILE_copycut($path,$type)        
+ *  837:     function FILE_delete($path)       
+ *  859:     function FILE_paste($path,$target,$elInfo)        
+ *
+ *              SECTION: COMMON
+ *  899:     function printItems($menuItems,$item)     
+ *  930:     function printLayerJScode($menuItems)     
+ *  963:     function wrapColorTableCM($str)   
+ *  977:     function wrapColorTable($str)     
+ *  993:     function menuItemsForTopFrame($menuItems) 
+ * 1010:     function menuItemsForClickMenu($menuItems)        
+ * 1052:     function linkItem($str,$icon,$onClick,$onlyCM=0,$dontHide=0)      
+ * 1073:     function excludeIcon($iconCode)   
+ * 1083:     function label($label)    
+ * 1092:     function isCMlayers()     
+ * 1102:     function frameLocation($str)      
+ *
+ *
+ * 1126: class SC_alt_clickmenu 
+ * 1138:     function init()   
+ * 1219:     function main()   
+ * 1259:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 42
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
@@ -48,12 +110,13 @@ $LANG->includeLLFile('EXT:lang/locallang_misc.php');
 
 
 
-// ***************************
-// Script Classes
-// ***************************
 
 /**
  * Class for generating the click menu
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
  * @internal
  */
 class clickMenu {
@@ -75,11 +138,11 @@ class clickMenu {
        
 
 
-       /** 
+       /**
         * Initialize click menu
-        *
-        * @param       string  Input "item" GET var.
-        * @return      string  The clickmenu HTML content
+        * 
+        * @param       string          Input "item" GET var.
+        * @return      string          The clickmenu HTML content
         */
        function init($item)    {
                        // Explode the incoming command:
@@ -111,10 +174,10 @@ class clickMenu {
                }
        }
 
-       /** 
+       /**
         * Returns true if the menu should (also?) be displayed in topframe, not just <div>-layers
-        *
-        * @return      boolean
+        * 
+        * @return      boolean         
         */
        function doDisplayTopFrameCM()  {
                return !$GLOBALS['SOBE']->doc->isCMlayers() || !$this->dontDisplayTopFrameCM;
@@ -137,12 +200,12 @@ class clickMenu {
         *
         ***************************************/
 
-       /** 
+       /**
         * Make 1st level clickmenu:
-        *
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @return      string  HTML content
+        * 
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @return      string          HTML content
         */
        function printDBClickMenu($table,$uid)  {
                global $TCA, $BE_USER;
@@ -226,12 +289,12 @@ class clickMenu {
                );
        }
 
-       /**  
+       /**
         * Make 2nd level clickmenu (only for DBmenus)
-        *
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @return      string  HTML content
+        * 
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @return      string          HTML content
         */
        function printNewDBLevel($table,$uid)   {
                global $TCA, $BE_USER;
@@ -266,23 +329,23 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Processing the $menuItems array (for extension classes) (DATABASE RECORDS)
-        *
-        * @param       array   $menuItems array for manipulation. 
-        * @return      array   Processed $menuItems array 
+        * 
+        * @param       array           $menuItems array for manipulation.
+        * @return      array           Processed $menuItems array
         */
        function externalProcessingOfDBMenuItems($menuItems)    {
                return $menuItems;
        }
 
-       /** 
+       /**
         * Processing the $menuItems array by external classes (typ. adding items)
-        *
-        * @param       array   $menuItems array for manipulation. 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @return      array   Processed $menuItems array 
+        * 
+        * @param       array           $menuItems array for manipulation.
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @return      array           Processed $menuItems array
         */
        function processingByExtClassArray($menuItems,$table,$uid)      {
                if (is_array($this->extClassArray))     {
@@ -295,13 +358,13 @@ class clickMenu {
                return $menuItems;
        }
 
-       /** 
+       /**
         * Returning JavaScript for the onClick event linking to the input URL.
-        *
-        * @param       string  The URL relative to TYPO3_mainDir
-        * @param       string  The return_url-parameter
-        * @param       boolean If set, the "hideCM()" will be called
-        * @return      string  JavaScript for an onClick event.
+        * 
+        * @param       string          The URL relative to TYPO3_mainDir
+        * @param       string          The return_url-parameter
+        * @param       boolean         If set, the "hideCM()" will be called
+        * @return      string          JavaScript for an onClick event.
         */
        function urlRefForCM($url,$retUrl='',$hideCM=1) {
                $loc='top.content'.($this->listFrame && !$this->alwaysContentFrame ?'.list_frame':'');
@@ -311,13 +374,13 @@ class clickMenu {
                return $editOnClick;
        }
 
-       /** 
+       /**
         * Adding CM element for Clipboard "copy" and "cut"
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @param       string  Type: "copy" or "cut"
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @param       string          Type: "copy" or "cut"
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_copycut($table,$uid,$type)  {
@@ -331,14 +394,15 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for Clipboard "paste into"/"paste after"
         * NOTICE: $table and $uid should follow the special syntax for paste, see clipboard-class :: pasteUrl();
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record. NOTICE: Special syntax!
-        * @param       string  Type: "into" or "after"
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record. NOTICE: Special syntax!
+        * @param       string          Type: "into" or "after"
+        * @param       array           Contains instructions about whether to copy or cut an element.
+        * @return      array           Item array, element in $menuItems
         * @see t3lib_clipboard::pasteUrl()
         * @internal
         */
@@ -355,12 +419,12 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for Info
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_info($table,$uid)   {
@@ -371,12 +435,12 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for History
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_history($table,$uid)        {
@@ -389,13 +453,13 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for Permission setting
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @param       array   The "pages" record with "perms_*" fields inside.
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @param       array           The "pages" record with "perms_*" fields inside.
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_perms($table,$uid,$rec)     {
@@ -408,13 +472,13 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for DBlist
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @param       array   Record of the element (needs "pid" field if not pages-record)
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @param       array           Record of the element (needs "pid" field if not pages-record)
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_db_list($table,$uid,$rec)   {
@@ -427,13 +491,13 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for Moving wizard
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @param       array   Record. Needed for tt-content elements which will have the sys_language_uid sent
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @param       array           Record. Needed for tt-content elements which will have the sys_language_uid sent
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_moveWizard($table,$uid,$rec)        {
@@ -448,13 +512,13 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for Create new wizard (either db_new.php or db_new_content_el.php)
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @param       array   Record.
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @param       array           Record.
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_newWizard($table,$uid,$rec) {
@@ -467,12 +531,12 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for Editing of the access related fields of a table (disable, starttime, endtime, fe_groups)
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_editAccess($table,$uid)     {
@@ -486,11 +550,11 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for edit page header
         * 
-        * @param       integer page uid to edit (PID)
-        * @return      array   Item array, element in $menuItems
+        * @param       integer         page uid to edit (PID)
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_editPageHeader($uid)        {
@@ -503,12 +567,12 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for regular editing of the element!
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_edit($table,$uid)   {
@@ -542,12 +606,12 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for regular Create new element
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_new($table,$uid)    {
@@ -566,13 +630,13 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for hide/unhide of the input record
         * 
-        * @param       string  Table name
-        * @param       array   Record
-        * @param       string  Name of the hide field
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       array           Record
+        * @param       string          Name of the hide field
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_hideUnhide($table,$rec,$hideField)  {
@@ -590,13 +654,13 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for Delete
         * 
-        * @param       string  Table name
-        * @param       integer UID for the current record.
-        * @param       array   Label for including in the confirmation message, EXT:lang/locallang_core.php:mess.delete
-        * @return      array   Item array, element in $menuItems
+        * @param       string          Table name
+        * @param       integer         UID for the current record.
+        * @param       array           Label for including in the confirmation message, EXT:lang/locallang_core.php:mess.delete
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_delete($table,$uid,$elInfo) {
@@ -612,12 +676,12 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Adding CM element for View Page
         * 
-        * @param       integer Page uid (PID)
-        * @param       string  Anchor, if any
-        * @return      array   Item array, element in $menuItems
+        * @param       integer         Page uid (PID)
+        * @param       string          Anchor, if any
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function DB_view($id,$anchor='')        {
@@ -643,11 +707,11 @@ class clickMenu {
         *
         ***************************************/
 
-       /** 
+       /**
         * Make 1st level clickmenu:
-        *
-        * @param       string  The absolute path
-        * @return      string  HTML content
+        * 
+        * @param       string          The absolute path
+        * @return      string          HTML content
         */
        function printFileClickMenu($path)      {
                $menuItems=array();
@@ -711,24 +775,24 @@ class clickMenu {
        }
 
 
-       /** 
+       /**
         * Processing the $menuItems array (for extension classes) (FILES)
-        *
-        * @param       array   $menuItems array for manipulation. 
-        * @return      array   Processed $menuItems array 
+        * 
+        * @param       array           $menuItems array for manipulation.
+        * @return      array           Processed $menuItems array
         */
        function externalProcessingOfFileMenuItems($menuItems)  {
                return $menuItems;
        }
 
-       /** 
+       /**
         * Multi-function for adding an entry to the $menuItems array
-        *
-        * @param       string  Path to the file/directory (target)
-        * @param       string  Script (eg. file_edit.php) to pass &target= to
-        * @param       string  "type" is the code which fetches the correct label for the element from "cm."
-        * @param       string  icon image-filename from "gfx/" (12x12 icon)
-        * @return      array   Item array, element in $menuItems
+        * 
+        * @param       string          Path to the file/directory (target)
+        * @param       string          Script (eg. file_edit.php) to pass &target= to
+        * @param       string          "type" is the code which fetches the correct label for the element from "cm."
+        * @param       string          icon image-filename from "gfx/" (12x12 icon)
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function FILE_launch($path,$script,$type,$image)        {
@@ -742,12 +806,12 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Returns element for copy or cut of files.
-        *
-        * @param       string  Path to the file/directory (target)
-        * @param       string  Type: "copy" or "cut"
-        * @return      array   Item array, element in $menuItems
+        * 
+        * @param       string          Path to the file/directory (target)
+        * @param       string          Type: "copy" or "cut"
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function FILE_copycut($path,$type)      {
@@ -763,11 +827,11 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Creates element for deleting of target
-        *
-        * @param       string  Path to the file/directory (target)
-        * @return      array   Item array, element in $menuItems
+        * 
+        * @param       string          Path to the file/directory (target)
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function FILE_delete($path)     {
@@ -783,13 +847,13 @@ class clickMenu {
                );
        }
 
-       /** 
+       /**
         * Creates element for pasting files.
-        *
-        * @param       string  Path to the file/directory (target)
-        * @param       string  target - NOT USED.
-        * @param       array   Various values for the labels.
-        * @return      array   Item array, element in $menuItems
+        * 
+        * @param       string          Path to the file/directory (target)
+        * @param       string          target - NOT USED.
+        * @param       array           Various values for the labels.
+        * @return      array           Item array, element in $menuItems
         * @internal
         */
        function FILE_paste($path,$target,$elInfo)      {       
@@ -824,13 +888,13 @@ class clickMenu {
         *
         **************************************/
 
-       /** 
+       /**
         * Prints the items from input $menuItems array - both as topframe menu AND the JS section for writing to the div-layers. 
         * Of course the topframe menu will appear only if $this->doDisplayTopFrameCM() returns true
-        *
-        * @param       array   $menuItems array
-        * @param       string  HTML code for the element which was clicked - shown in the end of the horizontal menu in topframe after the close-button.
-        * @return      string  HTML code
+        * 
+        * @param       array           $menuItems array
+        * @param       string          HTML code for the element which was clicked - shown in the end of the horizontal menu in topframe after the close-button.
+        * @return      string          HTML code
         */
        function printItems($menuItems,$item)   {
                $out='';
@@ -857,11 +921,11 @@ class clickMenu {
                return $out;
        }
 
-       /** 
+       /**
         * Create the JavaScript section
         * 
-        * @param       array   The $menuItems array to print
-        * @return      string  The JavaScript section which will print the content of the CM to the div-layer in the target frame.
+        * @param       array           The $menuItems array to print
+        * @return      string          The JavaScript section which will print the content of the CM to the div-layer in the target frame.
         */
        function printLayerJScode($menuItems)   {
                $script='';
@@ -890,11 +954,11 @@ if (top.content && top.content'.$frameName.' && top.content'.$frameName.'.setLay
                return $script;
        }
 
-       /** 
+       /**
         * Wrapping the input string in a table with background color 4 and a black border style.
-        *
-        * @param       string  
-        * @return      string
+        * 
+        * @param       string          
+        * @return      string          
         */
        function wrapColorTableCM($str) {
                $str = '<table border="0" cellpadding="1" cellspacing="0" bgcolor="'.$GLOBALS['TBE_TEMPLATE']->bgColor4.'" style="border: solid 1px black;">
@@ -904,11 +968,11 @@ if (top.content && top.content'.$frameName.' && top.content'.$frameName.'.setLay
        }
 
 
-       /** 
+       /**
         * Wrapping the input string in a table with background color 2 and a black border style.
-        *
-        * @param       string  
-        * @return      string
+        * 
+        * @param       string          
+        * @return      string          
         */
        function wrapColorTable($str)   {
                return '<table border="0" cellpadding="0" cellspacing="0" bgcolor="'.$GLOBALS['TBE_TEMPLATE']->bgColor2.'" style="border: solid 1px black;">
@@ -919,11 +983,12 @@ if (top.content && top.content'.$frameName.' && top.content'.$frameName.'.setLay
                </table>';
        }
 
-       /** 
+       /**
         * Traverses the menuItems and generates an output array for implosion in the topframe horizontal menu
-        *
-        * @param       array   $menuItem array
-        * @param       array   Array with HTML content to be imploded between <td>-tags
+        * 
+        * @param       array           $menuItem array
+        * @param       array           Array with HTML content to be imploded between <td>-tags
+        * @return      array           Array of menu items for top frame.
         */
        function menuItemsForTopFrame($menuItems)       {
                reset($menuItems);
@@ -935,11 +1000,12 @@ if (top.content && top.content'.$frameName.' && top.content'.$frameName.'.setLay
                return $out;
        }
 
-       /** 
+       /**
         * Traverses the menuItems and generates an output array for implosion in the CM div-layers table.
-        *
-        * @param       array   $menuItem array
-        * @param       array   Array with HTML content to be imploded between <td>-tags
+        * 
+        * @param       array           $menuItem array
+        * @param       array           Array with HTML content to be imploded between <td>-tags
+        * @return      array           array for implosion in the CM div-layers table.
         */
        function menuItemsForClickMenu($menuItems)      {
                reset($menuItems);
@@ -973,15 +1039,15 @@ if (top.content && top.content'.$frameName.' && top.content'.$frameName.'.setLay
                return $out;
        }
 
-       /** 
+       /**
         * Creating an array with various elements for the clickmenu entry
-        *
-        * @param       string  The label, htmlspecialchar'ed already
-        * @param       string  <img>-tag for the icon
-        * @param       string  JavaScript onclick event for label/icon
-        * @param       boolean ==1 and the element will NOT appear in clickmenus in the topframe (unless clickmenu is totally unavailable)! ==2 and the item will NEVER appear in top frame. (This is mostly for "less important" options since the top frame is not capable of holding so many elements horizontally)
-        * @param       boolean If set, the clickmenu layer will not hide itself onclick - used for secondary menus to appear...
-        * @return      array   $menuItem entry with 6 numerical entries: [0] is the HTML for display of the element with link and icon an mouseover etc., [1]-[5] is simply the input params passed through!
+        * 
+        * @param       string          The label, htmlspecialchar'ed already
+        * @param       string          <img>-tag for the icon
+        * @param       string          JavaScript onclick event for label/icon
+        * @param       boolean         ==1 and the element will NOT appear in clickmenus in the topframe (unless clickmenu is totally unavailable)! ==2 and the item will NEVER appear in top frame. (This is mostly for "less important" options since the top frame is not capable of holding so many elements horizontally)
+        * @param       boolean         If set, the clickmenu layer will not hide itself onclick - used for secondary menus to appear...
+        * @return      array           $menuItem entry with 6 numerical entries: [0] is the HTML for display of the element with link and icon an mouseover etc., [1]-[5] is simply the input params passed through!
         */
        function linkItem($str,$icon,$onClick,$onlyCM=0,$dontHide=0)    {
                $this->elCount++;
@@ -998,40 +1064,40 @@ if (top.content && top.content'.$frameName.' && top.content'.$frameName.'.setLay
                );
        }
 
-       /** 
+       /**
         * Returns the input string IF not a user setting has disabled display of icons.
-        *
-        * @param       string  The icon-image tag
-        * @return string       The icon-image tag prefixed with space char IF the icon should be printed at all due to user settings
+        * 
+        * @param       string          The icon-image tag
+        * @return      string          The icon-image tag prefixed with space char IF the icon should be printed at all due to user settings
         */
        function excludeIcon($iconCode) {
                return ($GLOBALS['BE_USER']->uc['noMenuMode'] && strcmp($GLOBALS['BE_USER']->uc['noMenuMode'],'icons')) ? '' : ' '.$iconCode;
        }
 
-       /** 
+       /**
         * Get label from locallang_core.php:cm.*
-        *
-        * @param       string  The "cm."-suffix to get.
-        * @return      string
+        * 
+        * @param       string          The "cm."-suffix to get.
+        * @return      string          
         */
        function label($label)  {
                return $GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.'.$label,1));
        }
 
-       /** 
+       /**
         * Returns true if there should be writing to the div-layers (commands sent to clipboard MUST NOT write to div-layers)
-        *
-        * @return      boolean 
+        * 
+        * @return      boolean         
         */
        function isCMlayers()   {
                return $GLOBALS['SOBE']->doc->isCMlayers() && !t3lib_div::GPvar('CB');
        }
 
-       /** 
+       /**
         * Appends ".location" to input string
-        *
-        * @param       string
-        * @return      string
+        * 
+        * @param       string          
+        * @return      string          
         */
        function frameLocation($str)    {
                return $str.'.location';
@@ -1050,8 +1116,12 @@ if (top.content && top.content'.$frameName.' && top.content'.$frameName.'.setLay
 
 
 
-/** 
+/**
  * Main Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
  */
 class SC_alt_clickmenu {
        var $content='';                                // Content accumulation
@@ -1060,8 +1130,10 @@ class SC_alt_clickmenu {
        var $extClassArray=array();             // Internal array of classes for extending the clickmenu
        var $dontDisplayTopFrameCM=0;   // If set, then the clickmenu will NOT display in the top frame.
 
-       /** 
+       /**
         * Constructor:
+        * 
+        * @return      void            
         */
        function init() {
                global $BE_USER,$BACK_PATH;
@@ -1106,22 +1178,21 @@ class SC_alt_clickmenu {
        routImg =new Image(); 
        routImg.src = "clear.gif";
 
-       function mo(c)  {
+       function mo(c)  {       //
                var name="roimg_"+c;
                document[name].src = roImg.src;
                updateTime();
        }
-       function mout(c)        {
+       function mout(c)        {       //
                var name="roimg_"+c;
                document[name].src = routImg.src;
                updateTime();
        }
-       function updateTime()   {
+       function updateTime()   {       //
                date = new Date();
                mo_timeout = Math.floor(date.getTime()/1000);
        }       
-       
-       function timeout_func() {
+       function timeout_func() {       //
                date = new Date();
                if (Math.floor(date.getTime()/1000)-mo_timeout > '.$secs.')     {
                        hideCM();
@@ -1130,7 +1201,7 @@ class SC_alt_clickmenu {
                        window.setTimeout("timeout_func();",1*1000);
                }
        }
-       function hideCM()       {
+       function hideCM()       {       //
                document.location="alt_topmenu_dummy.php";
                return false;
        }
@@ -1140,8 +1211,10 @@ class SC_alt_clickmenu {
                ');
        }
 
-       /** 
+       /**
         * Main function - generating the click menu in whatever form it has.
+        * 
+        * @return      void            
         */
        function main() {
                global $HTTP_GET_VARS;
@@ -1178,8 +1251,10 @@ class SC_alt_clickmenu {
                $this->content.= $clickMenu->init(t3lib_div::GPvar('item'));
        }
 
-       /** 
+       /**
         * End page and output content.
+        * 
+        * @return      void            
         */
        function printContent() {
                $this->content.= $this->doc->endPage();
@@ -1211,5 +1286,4 @@ while(list(,$INC_FILE)=each($SOBE->include_once)) {include_once($INC_FILE);}
 
 $SOBE->main();
 $SOBE->printContent();
-
 ?>
\ No newline at end of file
index 8fa5ede..cd0ed86 100755 (executable)
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
 /**
- * Page tree for the Web module
- *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ * Page navigation tree for the Web module
  *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant (almost)
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   72: class localPageTree extends t3lib_browseTree 
+ *   79:     function localPageTree() 
+ *   90:     function wrapIcon($icon,&$row)    
+ *
+ *
+ *  120: class SC_alt_db_navframe 
+ *  130:     function init()   
+ *  219:     function main()   
+ *  252:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 5
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
 
@@ -43,19 +61,32 @@ require_once (PATH_t3lib.'class.t3lib_browsetree.php');
 
 
 
-// ***************************
-// Script Classes
-// ***************************
 /**
  * Extension class for the t3lib_browsetree class, specially made for browsing pages in the Web module
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
  * @see class t3lib_browseTree
  */
 class localPageTree extends t3lib_browseTree {
 
+       /**
+        * Calls init functions
+        * 
+        * @return      void            
+        */
        function localPageTree() {
                $this->init();
        }
 
+       /**
+        * Wrapping icon in browse tree
+        * 
+        * @param       string          Icon IMG code
+        * @param       array           Data row for element.
+        * @return      string          Page icon
+        */
        function wrapIcon($icon,&$row)  {
                        // If the record is locked, present a warning sign.
                if ($lockInfo=t3lib_BEfunc::isRecordLocked("pages",$row["uid"]))        {
@@ -81,6 +112,10 @@ class localPageTree extends t3lib_browseTree {
 
 /**
  * Main script class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
  */
 class SC_alt_db_navframe {
        var $content;
@@ -89,6 +124,8 @@ class SC_alt_db_navframe {
        
        /**
         * Initialiation
+        * 
+        * @return      void            
         */
        function init() {
                global $BE_USER,$BACK_PATH;
@@ -118,8 +155,7 @@ class SC_alt_db_navframe {
                        // Setting JavaScript for menu.
                $this->doc->JScode=$this->doc->wrapScriptTags(
        ($currentSubScript?'top.currentSubScript=unescape("'.rawurlencode($currentSubScript).'");':'').'
-       
-       function jumpTo(id,linkObj)     {
+       function jumpTo(id,linkObj)     {       //
                var theUrl = top.TS.PATH_typo3+top.currentSubScript+"?id="+id;
 
                if (top.condensedMode)  {
@@ -131,14 +167,13 @@ class SC_alt_db_navframe {
                '.(!$GLOBALS['CLIENT']['FORMSTYLE'] ? '' : 'if (linkObj) {linkObj.blur();}').'
                return false;
        }
-       function refresh_nav()  {
+       function refresh_nav()  {       //
                window.setTimeout("_refresh_nav();",0);
        }
-       function _refresh_nav() {
+       function _refresh_nav() {       //
                document.location="'.$this->pagetree->thisScript.'?unique='.time().'";
        }
-
-    function hilight_row(old_rowid,new_rowid) {
+    function hilight_row(old_rowid,new_rowid) {        //
        if(document.all) {
          if(document.all.item(old_rowid)) {
            document.all.item(old_rowid).style.backgroundColor="";
@@ -178,6 +213,8 @@ class SC_alt_db_navframe {
 
        /**
         * Main function
+        * 
+        * @return      void            
         */
        function main() {
                global $LANG,$CLIENT;
@@ -209,6 +246,8 @@ class SC_alt_db_navframe {
 
        /**
         * Output tree.
+        * 
+        * @return      void            
         */
        function printContent() {
                $this->content.= $this->doc->endPage();
index c688bb9..cb41e68 100755 (executable)
 ***************************************************************/
 /** 
  * Main form rendering script
- *
  * By sending certain parameters to this script you can bring up a form
  * which allows the user to edit the content of one or more database records.
+ *
+ * $Id$
  * 
  * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   88: class SC_alt_doc 
+ *  123:     function preInit()        
+ *  166:     function doProcessData()  
+ *  187:     function processData()    
+ *  289:     function init()   
+ *  363:     function main()   
+ *  415:     function printContent()   
+ *  427:     function editRegularContentFromId()       
+ *  449:     function makeEditForm()   
+ *  588:     function makeButtonPanel()        
+ *  635:     function makeDocSel()     
+ *  664:     function makeCmenu()      
+ *  682:     function compileForm($panel,$docSel,$cMenu,$editForm)     
+ *  712:     function compileStoreDat()        
+ *  724:     function functionMenus()  
+ *  741:     function shortCutLink()   
+ *  759:     function tceformMessages()        
+ *
+ *              SECTION: OTHER FUNCTIONS:
+ *  791:     function getNewIconMode($table,$key="saveDocNew") 
+ *  804:     function closeDocument($code=0)   
+ *  831:     function setDocument($currentDocFromHandlerMD5="",$retUrl="alt_doc_nodoc.php")    
+ *
+ * TOTAL FUNCTIONS: 19
+ * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
 
-require ("init.php");
-require ("template.php");
-include ("sysext/lang/locallang_alt_doc.php");
-require_once (PATH_t3lib."class.t3lib_tceforms.php");
+require ('init.php');
+require ('template.php');
+include ('sysext/lang/locallang_alt_doc.php');
+require_once (PATH_t3lib.'class.t3lib_tceforms.php');
 
 t3lib_BEfunc::lockRecords();
-t3lib_div::setGPvars("defVals,overrideVals,columnsOnly",1);
+t3lib_div::setGPvars('defVals,overrideVals,columnsOnly',1);
+
 
 
 
-// ***************************
-// Script Classes
-// ***************************
+/**
+ * Script Class: Drawing the editing form for editing records in TYPO3.
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_doc {
        var $viewId;
        var $generalPathOfForm;
@@ -81,22 +117,25 @@ class SC_alt_doc {
        var $firstEl;
        var $doc;       
 
+       /**
+        * @return      [type]          ...
+        */
        function preInit()      {
                global $BE_USER,$LANG,$BACK_PATH,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
                
-               $this->editconf = t3lib_div::GPvar("edit");
+               $this->editconf = t3lib_div::GPvar('edit');
 
-               $this->defVals=$GLOBALS["defVals"];
-               $this->overrideVals=$GLOBALS["overrideVals"];
-               $this->columnsOnly=$GLOBALS["columnsOnly"];
+               $this->defVals=$GLOBALS['defVals'];
+               $this->overrideVals=$GLOBALS['overrideVals'];
+               $this->columnsOnly=$GLOBALS['columnsOnly'];
                
                if (!is_array($this->defVals) && is_array($this->overrideVals)) {
                        $this->defVals = $this->overrideVals;   // Setting override values as default if defVals does not exist.
                }
-               $this->retUrl = t3lib_div::GPvar("returnUrl")?t3lib_div::GPvar("returnUrl"):"dummy.php";
+               $this->retUrl = t3lib_div::GPvar('returnUrl')?t3lib_div::GPvar('returnUrl'):'dummy.php';
                
                // Make R_URL (request url)
-               $this->R_URL_parts = parse_url(t3lib_div::getIndpEnv("REQUEST_URI"));
+               $this->R_URL_parts = parse_url(t3lib_div::getIndpEnv('REQUEST_URI'));
                $this->R_URL_getvars = $HTTP_GET_VARS;
                
                
@@ -104,74 +143,86 @@ class SC_alt_doc {
                $this->compileStoreDat();
                
                $this->dontStoreDocumentRef=0;
-               $this->storeTitle="";
-               $this->JSrefreshCode="";
+               $this->storeTitle='';
+               $this->JSrefreshCode='';
                
-               $this->docDat = $BE_USER->getModuleData("alt_doc.php","ses");
+               $this->docDat = $BE_USER->getModuleData('alt_doc.php','ses');
                $this->docHandler = $this->docDat[0];
                
-               if (t3lib_div::GPvar("closeDoc")>0)     {
-                       $this->closeDocument(t3lib_div::GPvar("closeDoc"));
+               if (t3lib_div::GPvar('closeDoc')>0)     {
+                       $this->closeDocument(t3lib_div::GPvar('closeDoc'));
                }
                        // If NO vars are send to the script, try to read first document:
                if (is_array($HTTP_GET_VARS) && count($HTTP_GET_VARS)<2 && !is_array($this->editconf))  {       // Added !is_array($this->editconf) because editConf must not be set either. Anyways I can't figure out when this situation here will apply...
                        $this->setDocument($this->docDat[1]);
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function doProcessData()        {
                global $HTTP_POST_VARS;
-#debug(array($HTTP_POST_VARS,$GLOBALS["HTTP_GET_VARS"]));
+#debug(array($HTTP_POST_VARS,$GLOBALS['HTTP_GET_VARS']));
 /*             debug(array(
-                       "_savedok_x" => isset($HTTP_POST_VARS["_savedok_x"]),
-                       "_saveandclosedok_x" => isset($HTTP_POST_VARS["_saveandclosedok_x"]),
-                       "_savedokview_x" => isset($HTTP_POST_VARS["_savedokview_x"]),
-                       "_savedoknew_x" => isset($HTTP_POST_VARS["_savedoknew_x"]),
-                       "doSave" => t3lib_div::GPvar("doSave"),
+                       '_savedok_x' => isset($HTTP_POST_VARS['_savedok_x']),
+                       '_saveandclosedok_x' => isset($HTTP_POST_VARS['_saveandclosedok_x']),
+                       '_savedokview_x' => isset($HTTP_POST_VARS['_savedokview_x']),
+                       '_savedoknew_x' => isset($HTTP_POST_VARS['_savedoknew_x']),
+                       'doSave' => t3lib_div::GPvar('doSave'),
                ));
        */      
                
-               $out = t3lib_div::GPvar("doSave") || isset($HTTP_POST_VARS["_savedok_x"]) || isset($HTTP_POST_VARS["_saveandclosedok_x"]) || isset($HTTP_POST_VARS["_savedokview_x"]) || isset($HTTP_POST_VARS["_savedoknew_x"]);
+               $out = t3lib_div::GPvar('doSave') || isset($HTTP_POST_VARS['_savedok_x']) || isset($HTTP_POST_VARS['_saveandclosedok_x']) || isset($HTTP_POST_VARS['_savedokview_x']) || isset($HTTP_POST_VARS['_savedoknew_x']);
                return $out;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function processData()  {
                global $BE_USER,$LANG,$BACK_PATH,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-               t3lib_div::setGPvars("data,mirror,cacheCmd,redirect");
+               t3lib_div::setGPvars('data,mirror,cacheCmd,redirect');
                
-               $this->data=$GLOBALS["data"];
-               $this->mirror=$GLOBALS["mirror"];
-               $this->cacheCmd=$GLOBALS["cacheCmd"];
-               $this->redirect=$GLOBALS["redirect"];
+               $this->data=$GLOBALS['data'];
+               $this->mirror=$GLOBALS['mirror'];
+               $this->cacheCmd=$GLOBALS['cacheCmd'];
+               $this->redirect=$GLOBALS['redirect'];
 
                
                        // See tce_db.php for relevate options here:
                        // Only options related to $this->data submission are included here.
-               $tce = t3lib_div::makeInstance("t3lib_TCEmain");
+               $tce = t3lib_div::makeInstance('t3lib_TCEmain');
        
-               if ($BE_USER->uc["neverHideAtCopy"])    {
+               if ($BE_USER->uc['neverHideAtCopy'])    {
                        $tce->neverHideAtCopy = 1;
                }
        
-               $TCAdefaultOverride = $BE_USER->getTSConfigProp("TCAdefaults");
+               $TCAdefaultOverride = $BE_USER->getTSConfigProp('TCAdefaults');
                if (is_array($TCAdefaultOverride))      {
                        $tce->setDefaultsFromUserTS($TCAdefaultOverride);
                }
        
                $tce->debug=0;
-               $tce->disableRTE=t3lib_div::GPvar("_disableRTE");
+               $tce->disableRTE=t3lib_div::GPvar('_disableRTE');
                $tce->start($this->data,array());
                if (is_array($this->mirror))    {$tce->setMirror($this->mirror);}
                
-               if (isset($this->data["pages"]))        {
-                       t3lib_BEfunc::getSetUpdateSignal("updatePageTree");
+               if (isset($this->data['pages']))        {
+                       t3lib_BEfunc::getSetUpdateSignal('updatePageTree');
                }
                
                // ***************************
                // Checking referer / executing
                // ***************************
-               $refInfo=parse_url(t3lib_div::getIndpEnv("HTTP_REFERER"));
-               $httpHost = t3lib_div::getIndpEnv("TYPO3_HOST_ONLY");
-               if ($httpHost!=$refInfo["host"] && t3lib_div::GPvar("vC")!=$BE_USER->veriCode() && !$TYPO3_CONF_VARS["SYS"]["doNotCheckReferer"])       {
-                       $tce->log("",0,0,0,1,"Referer host '%s' and server host '%s' did not match and veriCode was not valid either!",1,array($refInfo["host"],$httpHost));
+               $refInfo=parse_url(t3lib_div::getIndpEnv('HTTP_REFERER'));
+               $httpHost = t3lib_div::getIndpEnv('TYPO3_HOST_ONLY');
+               if ($httpHost!=$refInfo['host'] && t3lib_div::GPvar('vC')!=$BE_USER->veriCode() && !$TYPO3_CONF_VARS['SYS']['doNotCheckReferer'])       {
+                       $tce->log('',0,0,0,1,"Referer host '%s' and server host '%s' did not match and veriCode was not valid either!",1,array($refInfo["host"],$httpHost));
                        debug("Error: Referer host did not match with server host.");
                } else {
                        $tce->process_uploads($GLOBALS["HTTP_POST_FILES"]);
@@ -229,8 +280,12 @@ class SC_alt_doc {
                        $this->closeDocument(abs(t3lib_div::GPvar("closeDoc")));
                }
        }
-       
-       
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function init() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
@@ -265,7 +320,7 @@ class SC_alt_doc {
                $this->doc->form='<form action="'.$this->R_URI.'" method="post" enctype="'.$GLOBALS["TYPO3_CONF_VARS"]["SYS"]["form_enctype"].'" name="editform" onSubmit="'.$debugThing.'return TBE_EDITOR_checkSubmit(1);" autocomplete="off">';
                $this->doc->JScode = '
 <script language="javascript" type="text/javascript">
-       function jumpToUrl(URL,formEl)  {
+       function jumpToUrl(URL,formEl)  {       //
                if (!TBE_EDITOR_isFormChanged())        {
                        document.location = URL;
                } else if (formEl && formEl.type=="checkbox") {
@@ -274,13 +329,13 @@ class SC_alt_doc {
        }
 
                // Object: TS:
-       function typoSetup      ()      {
+       function typoSetup      ()      {       //
                this.uniqueID = "";
        }
        var TS = new typoSetup();
 
                // Info view:
-       function launchView(table,uid,bP)       {
+       function launchView(table,uid,bP)       {       //
                var backPath= bP ? bP : "";
                var thePreviewWindow="";
                thePreviewWindow = window.open(backPath+"show_item.php?table="+escape(table)+"&uid="+escape(uid),"ShowItem"+TS.uniqueID,"height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0"); 
@@ -288,8 +343,7 @@ class SC_alt_doc {
                        thePreviewWindow.focus();
                }
        }
-       
-       function deleteRecord(table,id,url)     {
+       function deleteRecord(table,id,url)     {       //
                if (confirm('.$GLOBALS['LANG']->JScharCode($LANG->getLL("deleteWarning")).'))   {       
                        document.location = "tce_db.php?cmd["+table+"]["+id+"][delete]=1&redirect="+escape(url)+"&vC='.$BE_USER->veriCode().'&prErr=1&uPT=1";
                }
@@ -300,6 +354,12 @@ class SC_alt_doc {
 </script>
                '.$this->JSrefreshCode;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
@@ -346,12 +406,24 @@ class SC_alt_doc {
                        }
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function printContent() {
                global $SOBE;
 
                //debug(array($this->content));
                echo $this->content.$this->doc->endPage();
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function editRegularContentFromId()     {
                if (t3lib_extMgm::isLoaded("cms"))      {
                        $query="SELECT uid FROM tt_content WHERE pid=".intval(t3lib_div::GPvar("editRegularContentFromId")).
@@ -368,6 +440,12 @@ class SC_alt_doc {
                        }
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function makeEditForm() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
@@ -501,6 +579,12 @@ class SC_alt_doc {
                }
                return $editForm;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function makeButtonPanel()      {
                global $TCA,$LANG;
                $panel="";
@@ -542,6 +626,12 @@ class SC_alt_doc {
                }
                return $panel;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function makeDocSel()   {
                global $BE_USER,$LANG;
                // DOC-handler
@@ -565,6 +655,12 @@ class SC_alt_doc {
                } else $docSel="";
                return $docSel;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function makeCmenu()    {
                global $SOBE;
                
@@ -573,6 +669,16 @@ class SC_alt_doc {
                } else $cMenu ="";
                return $cMenu;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $panel: ...
+        * @param       [type]          $docSel: ...
+        * @param       [type]          $cMenu: ...
+        * @param       [type]          $editForm: ...
+        * @return      [type]          ...
+        */
        function compileForm($panel,$docSel,$cMenu,$editForm)   {
                global $LANG;
                
@@ -597,12 +703,24 @@ class SC_alt_doc {
 
                return $formContent;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function compileStoreDat()      {
                global $HTTP_GET_VARS;
                $this->storeArray = t3lib_div::compileSelectedGetVarsFromArray("edit,defVals,overrideVals,columnsOnly,disHelp,noView,editRegularContentFromId",$HTTP_GET_VARS);
                $this->storeUrl = t3lib_div::implodeArrayForUrl("",$this->storeArray);
                $this->storeUrlMd5 = md5($this->storeUrl);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function functionMenus()        {
                global $BE_USER,$LANG;
 
@@ -614,6 +732,12 @@ class SC_alt_doc {
                if ($BE_USER->isRTE())  $funcMenus.= "<BR>".t3lib_BEfunc::getFuncCheck("","SET[disableRTE]",$this->MOD_SETTINGS["disableRTE"],"alt_doc.php",t3lib_div::implodeArrayForUrl("",array_merge($this->R_URL_getvars,array("SET"=>"")))).$LANG->sL("LLL:EXT:lang/locallang_core.php:labels.disableRTE");
                return $funcMenus;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function shortCutLink() {
                global $SOBE,$BE_USER,$LANG;
                        // ShortCut
@@ -626,6 +750,12 @@ class SC_alt_doc {
                }
                return $content;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function tceformMessages()      {
                if (count($this->tceforms->commentMessages))    {
                $this->content.='
@@ -639,15 +769,38 @@ class SC_alt_doc {
        }
 
        
-       // ***************************
-       // OTHER FUNCTIONS:     
-       // ***************************
+
+
+
+
+
+
+
+
+       /***************************
+        *
+        * OTHER FUNCTIONS:     
+        *
+        ***************************/
+        
+       /**
+        * @param       [type]          $table: ...
+        * @param       [type]          $key: ...
+        * @return      [type]          ...
+        */
        function getNewIconMode($table,$key="saveDocNew")       {
                global $BE_USER;
                $TSconfig = $BE_USER->getTSConfig("options.".$key);
                $output = trim(isset($TSconfig["properties"][$table]) ? $TSconfig["properties"][$table] : $TSconfig["value"]);
                return $output;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $code: ...
+        * @return      [type]          ...
+        */
        function closeDocument($code=0) {
                global $BE_USER;
                if (isset($this->docHandler[$this->storeUrlMd5]))       {
@@ -667,6 +820,14 @@ class SC_alt_doc {
                        $this->setDocument("",$this->retUrl);
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $currentDocFromHandlerMD5: ...
+        * @param       [type]          $retUrl: ...
+        * @return      [type]          ...
+        */
        function setDocument($currentDocFromHandlerMD5="",$retUrl="alt_doc_nodoc.php")  {
                if (!t3lib_extMgm::isLoaded("cms") && !strcmp($retUrl,"alt_doc_nodoc.php"))     return;
                
@@ -688,8 +849,8 @@ class SC_alt_doc {
 }
 
 // Include extension?
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_doc.php"])      {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_doc.php"]);
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc.php'])      {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc.php']);
 }
 
 
@@ -708,18 +869,18 @@ if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_d
 
 
 // Make instance:
-$SOBE = t3lib_div::makeInstance("SC_alt_doc");
+$SOBE = t3lib_div::makeInstance('SC_alt_doc');
 
 // Preprocessing, storing data if submitted to
 $SOBE->preInit();
 if ($SOBE->doProcessData())    {
-       require_once (PATH_t3lib."class.t3lib_tcemain.php");
+       require_once (PATH_t3lib.'class.t3lib_tcemain.php');
        $SOBE->processData();
 } else {
-       require_once (PATH_t3lib."class.t3lib_loaddbgroup.php");
-       $BACK_PATH="";
+       require_once (PATH_t3lib.'class.t3lib_loaddbgroup.php');
+       $BACK_PATH='';
 }
-require_once (PATH_t3lib."class.t3lib_transferdata.php");
+require_once (PATH_t3lib.'class.t3lib_transferdata.php');
 
 
 // Main:
index 4b51331..83aac65 100755 (executable)
 /** 
  * No-document script
  *
+ * $Id$
  *  
  * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   68: class SC_alt_doc_nodoc 
+ *   74:     function init()   
+ *   91:     function main()   
+ *  127:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 3
+ * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
 
-require ("init.php");
-require ("template.php");
-include ("sysext/lang/locallang_alt_doc.php");
+require ('init.php');
+require ('template.php');
+include ('sysext/lang/locallang_alt_doc.php');
 
 
-if (t3lib_extMgm::isLoaded("taskcenter") && t3lib_extMgm::isLoaded("taskcenter_recent"))       {
-       require_once(t3lib_extMgm::extPath("taskcenter")."task/class.mod_user_task.php");
-       require_once(t3lib_extMgm::extPath("taskcenter_recent")."class.tx_taskcenterrecent.php");
+if (t3lib_extMgm::isLoaded('taskcenter') && t3lib_extMgm::isLoaded('taskcenter_recent'))       {
+       require_once(t3lib_extMgm::extPath('taskcenter').'task/class.mod_user_task.php');
+       require_once(t3lib_extMgm::extPath('taskcenter_recent').'class.tx_taskcenterrecent.php');
 }
 
-// ***************************
-// Script Classes
-// ***************************
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_doc_nodoc {
        var $content;
        
+       /**
+        * @return      [type]          ...
+        */
        function init() {
                global $BACK_PATH;
 
-               $this->doc = t3lib_div::makeInstance("mediumDoc");
-               $this->doc->bodyTagMargins["x"]=5;
-               $this->doc->bodyTagMargins["y"]=5;
+               $this->doc = t3lib_div::makeInstance('mediumDoc');
+               $this->doc->bodyTagMargins['x']=5;
+               $this->doc->bodyTagMargins['y']=5;
                $this->doc->backPath = $BACK_PATH;
                
-               $this->content="";
-               $this->content.=$this->doc->startPage("TYPO3 Edit Document");
+               $this->content='';
+               $this->content.=$this->doc->startPage('TYPO3 Edit Document');
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
                $msg=array();
-               $msg[]=$LANG->getLL("noDocuments_msg");
-               $a_wl = $BE_USER->check("modules","web_list");
-               $a_wp = t3lib_extMgm::isLoaded("cms") && $BE_USER->check("modules","web_layout");
+               $msg[]=$LANG->getLL('noDocuments_msg');
+               $a_wl = $BE_USER->check('modules','web_list');
+               $a_wp = t3lib_extMgm::isLoaded('cms') && $BE_USER->check('modules','web_layout');
                if ($a_wl || $a_wp)     {
                        $msg_2 = array();
                        if ($a_wp)      {
@@ -91,14 +118,20 @@ class SC_alt_doc_nodoc {
                
                $this->content.=$this->doc->section($LANG->getLL("noDocuments"),implode(" ",$msg),0,1);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function printContent() {
                echo $this->content.$this->doc->endPage();
        }
 }
 
 // Include extension?
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_doc_nodoc.php"])        {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_doc_nodoc.php"]);
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc_nodoc.php'])        {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc_nodoc.php']);
 }
 
 
@@ -112,7 +145,7 @@ if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_d
 
 
 // Make instance:
-$SOBE = t3lib_div::makeInstance("SC_alt_doc_nodoc");
+$SOBE = t3lib_div::makeInstance('SC_alt_doc_nodoc');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
index 9b1abb5..b598506 100755 (executable)
 /**
  * Folder tree in the File main module.
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant (almost)
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   68: class SC_alt_file_navframe 
+ *   78:     function init()   
+ *  161:     function main()   
+ *  196:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 3
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
@@ -44,14 +57,13 @@ require_once (PATH_t3lib.'class.t3lib_foldertree.php');
 
 
 
-// ***************************
-// Script Classes
-// ***************************
 
-
-# require_once(t3lib_extMgm::extPath('cc_debug').'class.tx_ccdebug.php');
 /**
  * Main script class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
  */
 class SC_alt_file_navframe {
        var $content;
@@ -60,6 +72,8 @@ class SC_alt_file_navframe {
        
        /**
         * Initialiation
+        * 
+        * @return      void            
         */
        function init() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
@@ -84,7 +98,7 @@ class SC_alt_file_navframe {
                        // Setting JavaScript for menu.
                $this->doc->JScode=$this->doc->wrapScriptTags(
        ($currentSubScript?'top.currentSubScript=unescape("'.rawurlencode($currentSubScript).'");':'').'
-       function jumpTo(id,linkObj,intId)       {
+       function jumpTo(id,linkObj,intId)       {       //
                var theUrl = top.TS.PATH_typo3+top.currentSubScript+"?id="+id;
                if (top.condensedMode)  {
                        top.content.document.location=theUrl;
@@ -101,7 +115,7 @@ class SC_alt_file_navframe {
                '.(!$CLIENT['FORMSTYLE'] ? '' : 'if (linkObj) {linkObj.blur();}').'
                return false;
        }
-    function hilight_row(old_rowid,new_rowid) {
+    function hilight_row(old_rowid,new_rowid) {                //
        if(document.all) {
          if(document.all.item(old_rowid)) {
            document.all.item(old_rowid).style.backgroundColor="";
@@ -141,6 +155,8 @@ class SC_alt_file_navframe {
        
        /**
         * Main
+        * 
+        * @return      void            
         */
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
@@ -174,6 +190,8 @@ class SC_alt_file_navframe {
 
        /**
         * Output tree.
+        * 
+        * @return      void            
         */
        function printContent() {
                $this->content.= $this->doc->endPage();
index 13bbe94..cdcb91c 100755 (executable)
 ***************************************************************/
 /** 
  * 'About modules' script - the default start-up module.
- *
  * Will display the list of main- and sub-modules available to the user.
  * Each module will be show with description and a link to the module.
- * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
+ * $Id$ 
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   75: class SC_alt_intro 
+ *   84:     function init()   
+ *   97:     function main()   
+ *  166:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 3
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
@@ -47,15 +59,27 @@ require_once ('class.alt_menu_functions.inc');
 include ('sysext/lang/locallang_alt_intro.php');
 
 
-// ***************************
-// Script Class
-// ***************************
+
+
+
+
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_intro {
        var $loadModules;
        var $content;
        
-       /** 
+       /**
         * Initialization
+        * 
+        * @return      void            
         */
        function init() {
                global $TBE_MODULES;
@@ -65,8 +89,10 @@ class SC_alt_intro {
                $this->loadModules->load($TBE_MODULES);
        }
 
-       /** 
+       /**
         * Main content - displaying the module descriptions
+        * 
+        * @return      void            
         */
        function main() {
                global $BE_USER,$LANG,$TYPO3_CONF_VARS;
@@ -132,8 +158,10 @@ class SC_alt_intro {
                $this->content.= $TBE_TEMPLATE->endPage();
        }
 
-       /** 
+       /**
         * Prints output
+        * 
+        * @return      void            
         */
        function printContent() {
                echo $this->content;
@@ -161,5 +189,4 @@ $SOBE = t3lib_div::makeInstance('SC_alt_intro');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
-
 ?>
\ No newline at end of file
index 2df0b08..f9d91b5 100755 (executable)
 ***************************************************************/
 /** 
  * Main frameset of the TYPO3 backend
- * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
+ * $Id$ 
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
+ * XHTML Compliant (almost)
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   67: class SC_alt_main 
+ *   78:     function init()   
+ *   94:     function generateJScode() 
+ *  274:     function main()   
+ *  353:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 4
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
 require ('init.php');
@@ -42,9 +57,13 @@ require_once ('class.alt_menu_functions.inc');
 
 
 
-// ***************************
-// Script Class
-// ***************************
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_main {
        var $content;
        var $mainJScode;
@@ -53,6 +72,8 @@ class SC_alt_main {
        
        /**
         * Initialization
+        * 
+        * @return      void            
         */
        function init() {
                global $TBE_MODULES;
@@ -67,6 +88,8 @@ class SC_alt_main {
        
        /**
         * Generates the JavaScript code for the frameset.
+        * 
+        * @return      void            
         */
        function generateJScode()       {
                global $BE_USER,$LANG;
@@ -79,7 +102,7 @@ class SC_alt_main {
        /**
         * Function similar to PHPs  rawurlencode();
         */
-       function rawurlencode(str)      {
+       function rawurlencode(str)      {       //
                var output = escape(str);
                output = str_replace("*","%2A", output);
                output = str_replace("+","%2B", output);
@@ -91,7 +114,7 @@ class SC_alt_main {
        /**
         * String-replace function
         */
-       function str_replace(match,replace,string)      {
+       function str_replace(match,replace,string)      {       //
                var input = ""+string;
                var matchStr = ""+match;
                if (!matchStr)  {return string;}
@@ -110,7 +133,7 @@ class SC_alt_main {
        /**
         * TypoSetup object.
         */
-       function typoSetup      ()      {
+       function typoSetup      ()      {       //
                this.PATH_typo3 = "'.$pt3.'";
                this.username = "'.$BE_USER->user['username'].'";
                this.uniqueID = "'.t3lib_div::shortMD5(uniqid('')).'";
@@ -120,31 +143,31 @@ class SC_alt_main {
        /**
         * Functions for session-expiry detection:
         */
-       function busy() {
+       function busy() {       //
                this.loginRefreshed = busy_loginRefreshed;
                this.checkLoginTimeout = busy_checkLoginTimeout;
                this.openRefreshWindow = busy_OpenRefreshWindow;
                this.busyloadTime=0;
                this.openRefreshW=0;
        }
-       function busy_loginRefreshed()  {
+       function busy_loginRefreshed()  {       //
                var date = new Date();
                this.busyloadTime = Math.floor(date.getTime()/1000);
                this.openRefreshW=0;
        }
-       function busy_checkLoginTimeout()       {
+       function busy_checkLoginTimeout()       {       //
                var date = new Date();
                var theTime = Math.floor(date.getTime()/1000);
                if (theTime > this.busyloadTime+'.intval($BE_USER->auth_timeout_field).'-10)    {
                        return true;
                }
        }
-       function busy_OpenRefreshWindow()       {
+       function busy_OpenRefreshWindow()       {       //
                vHWin=window.open("login_frameset.php","relogin","height=350,width=600,status=0,menubar=0");
                vHWin.focus();
                this.openRefreshW=1;
        }
-       function busy_checkLoginTimeout_timer() {
+       function busy_checkLoginTimeout_timer() {       //
                if (busy.checkLoginTimeout())   {
                        if (!busy.openRefreshW && confirm('.$GLOBALS['LANG']->JScharCode($LANG->sL('LLL:EXT:lang/locallang_core.php:mess.refresh_login')).'))   {
                                busy.openRefreshWindow();
@@ -156,7 +179,7 @@ class SC_alt_main {
        /**
         * Launcing information window for records/files (fileref as "table" argument)
         */
-       function launchView(table,uid,bP)       {
+       function launchView(table,uid,bP)       {       //
                var backPath= bP ? bP : "";
                var thePreviewWindow="";
                thePreviewWindow = window.open(TS.PATH_typo3+"show_item.php?table="+escape(table)+"&uid="+escape(uid),"ShowItem"+TS.uniqueID,"height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
@@ -168,7 +191,7 @@ class SC_alt_main {
        /**
         * Loads a URL in the topmenuFrame
         */
-       function loadTopMenu(url)       {
+       function loadTopMenu(url)       {       //
                top.topmenuFrame.location = url;
        }
        
@@ -177,7 +200,7 @@ class SC_alt_main {
         * Used by the shortcut frame to set a "intermediate URL"
         */
        var nextLoadModuleUrl="";
-       function getModuleUrl(inUrl)    {
+       function getModuleUrl(inUrl)    {       //
                var nMU;
                if (top.nextLoadModuleUrl)      {
                        nMU=top.nextLoadModuleUrl;
@@ -191,7 +214,7 @@ class SC_alt_main {
        /**
         * Print properties of an object
         */
-       function debugObj(obj,name)     {
+       function debugObj(obj,name)     {       //
                var acc;
                for (i in obj) {
                        if (obj[i])     {
@@ -212,7 +235,7 @@ class SC_alt_main {
         * Function used to switch switch module.
         */
        var currentModuleLoaded = "";
-       function goToModule(modName,cMR_flag)   {
+       function goToModule(modName,cMR_flag)   {       //
                var cMR = 0;
                if (cMR_flag)   cMR=1;
        
@@ -230,7 +253,7 @@ class SC_alt_main {
         *              if (top.fsMod) top.fsMod.recentIds["web"] = "\'.intval($this->id).\'";
         *              if (top.fsMod) top.fsMod.recentIds["file"] = "...(file reference/string)...";
         */
-       function fsModules()    {
+       function fsModules()    {       //
                this.recentIds=new Array();
                this.currentMainLoaded="";
        }
@@ -245,6 +268,8 @@ class SC_alt_main {
        
        /**
         * Creates the header and frameset of the backend interface
+        * 
+        * @return      void            
         */
        function main() {
                global $BE_USER,$TYPO3_CONF_VARS,$TYPO_VERSION;
@@ -322,6 +347,8 @@ class SC_alt_main {
 
        /**
         * Outputs it all.
+        * 
+        * @return      void            
         */
        function printContent() {
                echo $this->content;
@@ -352,5 +379,4 @@ $SOBE = t3lib_div::makeInstance('SC_alt_main');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
-
 ?>
\ No newline at end of file
index 903c087..72cfcac 100755 (executable)
 /** 
  * Displays the vertical menu in the left most frame of TYPO3s backend
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML-trans compliant
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   67: class SC_alt_menu 
+ *   75:     function init()   
+ *   88:     function main()   
+ *  160:     function removeCacheFiles()       
+ *  179:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 4
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
@@ -43,14 +57,20 @@ require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
 require_once ('class.alt_menu_functions.inc');
 
 
-// ***************************
-// Script Class
-// ***************************
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_menu {
 
        /**
         * Initialize
         * Loads the backend modules available for the logged in user.
+        * 
+        * @return      void            
         */
        function init() {
                global $TBE_MODULES;
@@ -62,6 +82,8 @@ class SC_alt_menu {
 
        /**
         * Main content generated
+        * 
+        * @return      void            
         */
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
@@ -132,6 +154,8 @@ class SC_alt_menu {
 
        /**
         * Unlink (delete) cache files
+        * 
+        * @return      integer         The number of files deleted
         */
        function removeCacheFiles()     {
                $cacheFiles=t3lib_extMgm::currentCacheFiles();
@@ -149,6 +173,8 @@ class SC_alt_menu {
 
        /**
         * Outputs the content
+        * 
+        * @return      void            
         */
        function printContent() {
                echo $this->content;
index 7028a06..e2092fc 100755 (executable)
 ***************************************************************/
 /** 
  * Creates the selector-box menu.
- *
  * The selector-box menu is an alternative to the vertical default menu. 
  * If configured to appear it will be displayed in the top-frame.
  * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   66: class SC_alt_menu_sel 
+ *   74:     function main()   
+ *  104:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 2
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
@@ -45,16 +56,21 @@ require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
 require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
 require_once ('class.alt_menu_functions.inc');
 
-
-// ***************************
-// Script Class
-// ***************************
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_menu_sel {
        var $content;
        
        /**
         * Main function, making the selector box menu
-        */ 
+        * 
+        * @return      void            
+        */
        function main() {
                global $TBE_MODULES,$TBE_TEMPLATE;
                
@@ -82,7 +98,9 @@ class SC_alt_menu_sel {
        
        /**
         * Print output
-        */ 
+        * 
+        * @return      void            
+        */
        function printContent() {
                echo $this->content;
        }
index 059a7b2..f6b9576 100755 (executable)
 ***************************************************************/
 /** 
  * Creates the frameset for 'Frameset modules' like Web>* and File>*
- * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant content (with exception of a few attributes for the <frameset> tags)
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   63: class SC_alt_mod_frameset 
+ *   72:     function main()   
+ *  109:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 2
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
 require ('init.php');
@@ -41,15 +53,21 @@ require ('template.php');
 
 
 
-// ***************************
-// Script Class
-// ***************************
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_mod_frameset {
        var $content;
        var $defaultWidth = 245;
        
        /**
         * Creates the header and frameset for the module/submodules
+        * 
+        * @return      void            
         */
        function main() {
                global $BE_USER,$TBE_TEMPLATE;
@@ -85,6 +103,8 @@ class SC_alt_mod_frameset {
 
        /**
         * Outputs it all.
+        * 
+        * @return      void            
         */
        function printContent() {
                echo $this->content;
index c0269bc..8961d48 100755 (executable)
 ***************************************************************/
 /** 
  * Displays the secondary-options palette for the TCEFORMs wherever they are shown.
+ *
+ * $Id$
  * 
  * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   80: class formRender extends t3lib_TCEforms 
+ *   86:     function printPalette($palArr)    
+ *
+ *
+ *  112: class formRender_vert extends t3lib_TCEforms 
+ *  118:     function printPalette($palArr)    
+ *
+ *
+ *  147: class alt_palette_CMtemplate extends template 
+ *  152:     function docBodyTagBegin()        
+ *
+ *
+ *  164: class SC_alt_palette 
+ *  176:     function init()   
+ *  216:     function main()   
+ *  255:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 6
+ * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
 
 
 
-require ("init.php");
-require ("template.php");
-require_once (PATH_t3lib."class.t3lib_tceforms.php");
-require_once (PATH_t3lib."class.t3lib_transferdata.php");
-require_once (PATH_t3lib."class.t3lib_loaddbgroup.php");
-include ("sysext/lang/locallang_alt_doc.php");
+require ('init.php');
+require ('template.php');
+require_once (PATH_t3lib.'class.t3lib_tceforms.php');
+require_once (PATH_t3lib.'class.t3lib_transferdata.php');
+require_once (PATH_t3lib.'class.t3lib_loaddbgroup.php');
+include ('sysext/lang/locallang_alt_doc.php');
 
 
 
 
-// ***************************
-// Script Classes
-// ***************************
+/**
+ * Class for rendering the form fields.
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class formRender extends t3lib_TCEforms {
+
+       /**
+        * @param       [type]          $palArr: ...
+        * @return      [type]          ...
+        */
        function printPalette($palArr)  {
-               $out="";
+               $out='';
                reset($palArr);
                while(list(,$content)=each($palArr))    {
                        $iRow[]='<td valign=top nowrap><img name="req_'.$content["TABLE"].'_'.$content["ID"].'_'.$content["FIELD"].'" src="clear.gif" width=10 height=10 vspace=4><img name="cm_'.$content["TABLE"].'_'.$content["ID"].'_'.$content["FIELD"].'" src="clear.gif" width=7 height=10 vspace=4></td>
@@ -67,7 +101,20 @@ class formRender extends t3lib_TCEforms {
                return $out;
        }
 }
+
+/**
+ * Child class for alternative rendering of form fields (horizontally, despite name...)
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class formRender_vert extends t3lib_TCEforms {
+
+       /**
+        * @param       [type]          $palArr: ...
+        * @return      [type]          ...
+        */
        function printPalette($palArr)  {
                $out="";
                reset($palArr);
@@ -89,11 +136,31 @@ class formRender_vert extends t3lib_TCEforms {
                return $out;
        }
 }
+
+/**
+ * Child class of the template class - for rendering special body tag.
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class alt_palette_CMtemplate extends template {
+
+       /**
+        * @return      [type]          ...
+        */
        function docBodyTagBegin()      {
                return '<BODY bgColor="'.$this->bgColor2.'" LINK="#000000" ALINK="#000000" VLINK="#000000" marginwidth="0" marginheight="8" topmargin=8 leftmargin=0 background="gfx/alt_topmenu_back_full.gif">'.$this->form;
        }
 }
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_palette {
        var $content;
        var $backRef;
@@ -101,7 +168,11 @@ class SC_alt_palette {
        var $formRef;
        var $doc;       
        
-               // Constructor:
+       /**
+        * Constructor
+        * 
+        * @return      void            
+        */
        function init() {
                global $SOBE;
 
@@ -116,7 +187,7 @@ class SC_alt_palette {
                $this->doc->JScode = '
                <script language="javascript" type="text/javascript">
                        var serialNumber = "";
-                       function timeout_func() {
+                       function timeout_func() {       //
                                if ('.$this->backRef.' && '.$this->backRef.'.document && '.$this->formRef.')    {
                                        if ('.$this->formRef.'["_serialNumber"])        {
                                                if (serialNumber) {
@@ -128,7 +199,7 @@ class SC_alt_palette {
                                        window.setTimeout("timeout_func();",1*1000);
                                } else closePal();
                        }
-                       function closePal()     {
+                       function closePal()     {       //
                                '.(t3lib_div::GPvar("backRef")?'document.location="alt_topmenu_dummy.php";':'close();').'
                        }
                        timeout_func();
@@ -136,6 +207,12 @@ class SC_alt_palette {
                </script>
                ';              
        }
+
+       /**
+        * Main function
+        * 
+        * @return      void            
+        */
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
@@ -169,6 +246,12 @@ class SC_alt_palette {
                        $this->content.=$tceforms->printNeededJSFunctions_top().$formContent.$tceforms->printNeededJSFunctions();
                }
        }
+
+       /**
+        * Print content
+        * 
+        * @return      void            
+        */
        function printContent() {
                global $SOBE;
                echo $this->content.$this->doc->endPage();
@@ -176,8 +259,8 @@ class SC_alt_palette {
 }
 
 // Include extension?
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_palette.php"])  {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_palette.php"]);
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_palette.php'])  {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_palette.php']);
 }
 
 
@@ -192,7 +275,7 @@ if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/alt_p
 
 
 // Make instance:
-$SOBE = t3lib_div::makeInstance("SC_alt_palette");
+$SOBE = t3lib_div::makeInstance('SC_alt_palette');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
index 2931871..bb8206d 100755 (executable)
 ***************************************************************/
 /** 
  * Shortcut frame
- * 
  * Appears in the bottom frame of the backend frameset.
  * Provides links to registered shortcuts
  * If the 'cms' extension is loaded you will also have a field for entering page id/alias which will be found/edited
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant output
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   82: class SC_alt_shortcut 
+ *  105:     function preinit()        
+ *  122:     function preprocess()     
+ *  182:     function init()   
+ *  217:     function main()   
+ *  307:     function editLoadedFunc() 
+ *  360:     function editPageIdFunc() 
+ *  402:     function printContent()   
+ *
+ *              SECTION: OTHER FUNCTIONS:
+ *  430:     function mIconFilename($Ifilename,$backPath)      
+ *  443:     function getIcon($modName)        
+ *  467:     function itemLabel($inlabel,$modName,$M_modName='')       
+ *
+ * TOTAL FUNCTIONS: 10
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
@@ -48,9 +69,16 @@ require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
 
 
 
-// ***************************
-// Script Classes
-// ***************************
+
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_shortcut {
        var $content;
        var $loadModules;
@@ -71,6 +99,8 @@ class SC_alt_shortcut {
 
        /**
         * Pre-initialization - setting input variables for storing shortcuts etc.
+        * 
+        * @return      void            
         */
        function preinit()      {
                global $TBE_MODULES;
@@ -86,6 +116,8 @@ class SC_alt_shortcut {
 
        /**
         * Adding shortcuts, editing shortcuts etc.
+        * 
+        * @return      void            
         */
        function preprocess()   {
                global $BE_USER,$HTTP_POST_VARS;
@@ -144,6 +176,8 @@ class SC_alt_shortcut {
 
        /**
         * Initialize (page output)
+        * 
+        * @return      void            
         */
        function init() {
                global $BACK_PATH;
@@ -153,34 +187,32 @@ class SC_alt_shortcut {
                $this->doc->form='<form name="shForm" action="alt_shortcut.php" method="post">';
                $this->doc->docType='xhtml_trans';
                $this->doc->divClass='typo3-shortcut';
-               $this->doc->JScode.='
-               <script type="text/javascript">
-                       '.$this->doc->wrapInCData('
-                       function jump(url,modName,mainModName)  {
+               $this->doc->JScode.=$this->doc->wrapScriptTags('
+                       function jump(url,modName,mainModName)  {       //
                                top.nextLoadModuleUrl = url;
                                top.goToModule(modName);
                        }
-                       function editSh(uid)    {
+                       function editSh(uid)    {       //
                                document.location="alt_shortcut.php?editShortcut="+uid;
                        }
-                       function submitEditPage(id)     {
+                       function submitEditPage(id)     {       //
                                document.location="alt_shortcut.php?editPage="+top.rawurlencode(id);
                        }
-                       function loadEditId(id) {
+                       function loadEditId(id) {       //
                                top.fsMod.recentIds["web"]=id;
                                if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav)  {
                                        top.content.nav_frame.refresh_nav();
                                }
                                top.goToModule("web_layout");
                        }
-                       ').'
-               </script>
-               ';
+                       ');
                $this->content.=$this->doc->startPage('Shortcut frame');
        }
 
        /**
         * Main function, creating content in the frame
+        * 
+        * @return      void            
         */
        function main() {
                global $BE_USER,$LANG;
@@ -269,6 +301,8 @@ class SC_alt_shortcut {
 
        /**
         * Creates lines for the editing form.
+        * 
+        * @return      void            
         */
        function editLoadedFunc()       {
                global $BE_USER,$LANG;
@@ -320,6 +354,8 @@ class SC_alt_shortcut {
        /**
         * If "editPage" value is sent to script and it points to an accessible page, the internal var $this->theEditRec is set to the page record which should be loaded.
         * Returns void
+        * 
+        * @return      void            
         */
        function editPageIdFunc()       {
                global $BE_USER,$LANG;
@@ -360,6 +396,8 @@ class SC_alt_shortcut {
 
        /**
         * Output content
+        * 
+        * @return      void            
         */
        function printContent() {
                $this->content.= $this->doc->endPage();
@@ -367,12 +405,27 @@ class SC_alt_shortcut {
        }
        
 
-       // ***************************
-       // OTHER FUNCTIONS:     
-       // ***************************
+
+
+
+
+
+
+
+
+
+       /***************************
+        *
+        * OTHER FUNCTIONS:     
+        *
+        ***************************/
 
        /**
         * Returns relative filename for icon.
+        * 
+        * @param       string          $Ifilename: ...
+        * @param       string          $backPath: ...
+        * @return      void            
         */
        function mIconFilename($Ifilename,$backPath)    {
                if (t3lib_div::isAbsPath($Ifilename))   {
@@ -383,6 +436,9 @@ class SC_alt_shortcut {
 
        /**
         * Returns icon for shortcut display
+        * 
+        * @param       string          Backend module name
+        * @return      string          Icon file name
         */
        function getIcon($modName)      {
                global $LANG;
@@ -402,6 +458,11 @@ class SC_alt_shortcut {
 
        /**
         * Returns title-label for icon
+        * 
+        * @param       string          In-label
+        * @param       string          Backend module name (key)
+        * @param       string          Backend module label (user defined?)
+        * @return      string          Label for the shortcut item
         */
        function itemLabel($inlabel,$modName,$M_modName='')     {
                global $LANG;
index a609d2e..02ac31f 100755 (executable)
 ***************************************************************/
 /** 
  * Top logo frame
- *
  * Displays the logo in the top frame (upper left corner)
- * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant content
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   66: class SC_alt_toplogo 
+ *   74:     function main()   
+ *  106:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 2
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
 
@@ -43,14 +54,22 @@ require ('init.php');
 require ('template.php');
 
 
-// ***************************
-// Script Classes
-// ***************************
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_toplogo {
        var $content;
        
        /**
         * Create content
+        * 
+        * @return      void            
         */
        function main() {
                global $TBE_TEMPLATE,$TBE_STYLES;
@@ -81,6 +100,8 @@ class SC_alt_toplogo {
        
        /**
         * Print output
+        * 
+        * @return      void            
         */
        function printContent() {
                echo $this->content;
@@ -107,5 +128,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_t
 $SOBE = t3lib_div::makeInstance('SC_alt_toplogo');
 $SOBE->main();
 $SOBE->printContent();
-
 ?>
index 59b5508..9ed7c27 100755 (executable)
 ***************************************************************/
 /** 
  * Alternative top menu
- *
  * Displays a horizontal menu with the same items as the default left vertical menu
  * in the backend frameset. Only the icons are displayed and linked.
  * Will appear as the default document in the top frame if configured to appear.
  * This is the default menu used during "condensed mode"
- * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant content
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   72: class SC_alt_topmenu_dummy 
+ *   80:     function main()   
+ *  132:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 2
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
@@ -48,18 +59,26 @@ require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
 require_once ('class.alt_menu_functions.inc');
 
 
-// ***************************
-// Script Class
-// ***************************
+
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_alt_topmenu_dummy {
        var $content;
        
        /**
         * Main function - making the menu happen.
+        * 
+        * @return      void            
         */
        function main() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-               global $TBE_MODULES,$TBE_TEMPLATE;
+               global $BE_USER,$LANG,$BACK_PATH,$TBE_MODULES,$TBE_TEMPLATE;
                
                        // IF noMenuMode is set to 'icons', then display menu instead of nothingness
                if (!strcmp($BE_USER->uc['noMenuMode'],'icons'))        {
@@ -107,6 +126,8 @@ class SC_alt_topmenu_dummy {
        
        /**
         * Print output
+        * 
+        * @return      void            
         */
        function printContent() {
                echo $this->content;
index 73e3f0e..af8b892 100755 (executable)
  * Displays the page/file tree for browsing database records or files.
  * Used from TCEFORMS an other elements
  *
+ * $Id$
  * Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
  * XHTML compliant
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
  */
 /**
  * [CLASS/FUNCTION INDEX of SCRIPT]
  *
  *
  *
- *  151: class TBE_browser_recordList extends localRecordList 
- *  160:     function listURL($altId="",$table=-1,$exclList="")        
- *  179:     function ext_addP()       
- *  194:     function linkWrapItems($table,$uid,$code,$row)    
+ *  152: class TBE_browser_recordList extends localRecordList 
+ *  161:     function listURL($altId='',$table=-1,$exclList='')        
+ *  180:     function ext_addP()       
+ *  197:     function linkWrapItems($table,$uid,$code,$row)    
  *
  *
- *  224: class localPageTree extends t3lib_browseTree 
- *  232:     function wrapTitle($title,$v,$ext_pArrPages)      
- *  249:     function printTree($treeArr="")   
- *  277:     function ext_isLinkable($doktype,$uid)    
- *  291:     function PM_ATagWrap($icon,$cmd,$bMark="")        
- *  306:     function wrapIcon($icon,$row)     
+ *  233: class localPageTree extends t3lib_browseTree 
+ *  235:     function localPageTree() 
+ *  245:     function wrapTitle($title,$v,$ext_pArrPages)      
+ *  261:     function printTree($treeArr="")   
+ *  289:     function ext_isLinkable($doktype,$uid)    
+ *  303:     function PM_ATagWrap($icon,$cmd,$bMark="")        
+ *  318:     function wrapIcon($icon,$row)     
  *
  *
- *  322: class rtePageTree extends localPageTree 
+ *  334: class rtePageTree extends localPageTree 
  *
  *
- *  336: class TBE_PageTree extends localPageTree 
- *  343:     function ext_isLinkable($doktype,$uid)    
- *  355:     function wrapTitle($title,$v,$ext_pArrPages)      
+ *  348: class TBE_PageTree extends localPageTree 
+ *  355:     function ext_isLinkable($doktype,$uid)    
+ *  367:     function wrapTitle($title,$v,$ext_pArrPages)      
  *
  *
- *  378: class localFolderTree extends t3lib_browseTree 
- *  385:     function wrapTitle($title,$v)     
- *  400:     function printTree($treeArr="")   
- *  434:     function ext_isLinkable($v)       
- *  452:     function PM_ATagWrap($icon,$cmd,$bMark="")        
- *  466:     function ext_getRelFolder($path)  
+ *  390: class localFolderTree extends t3lib_folderTree 
+ *  397:     function wrapTitle($title,$v)     
+ *  412:     function printTree($treeArr="")   
+ *  446:     function ext_isLinkable($v)       
+ *  464:     function PM_ATagWrap($icon,$cmd,$bMark="")        
+ *  478:     function ext_getRelFolder($path)  
  *
  *
- *  483: class rteFolderTree extends localFolderTree 
+ *  495: class rteFolderTree extends localFolderTree 
  *
  *
- *  495: class TBE_FolderTree extends localFolderTree 
- *  502:     function ext_isLinkable($v)       
- *  515:     function wrapTitle($title,$v)     
+ *  507: class TBE_FolderTree extends localFolderTree 
+ *  514:     function ext_isLinkable($v)       
+ *  527:     function wrapTitle($title,$v)     
  *
  *
- *  535: class SC_browse_links 
- *  547:     function init()   
- *  611:     function setTarget(target)        
- *  616:     function setValue(value)  
- *  642:     function link_typo3Page(id,anchor)        
- *  648:     function link_folder(folder)      
- *  654:     function link_current()   
- *  665:     function checkReference() 
- *  673:     function updateValueInMainForm(input)     
- *  684:     function link_typo3Page(id,anchor)        
- *  690:     function link_folder(folder)      
- *  696:     function link_spec(theLink)       
- *  701:     function link_current()   
- *  711:     function jumpToUrl(URL,anchor)    
- *  733:     function launchView(url)  
- *  741:     function setReferences()  
- *  755:     function insertElement(table, uid, type, filename,fp,filetype,imagefile,action, close)    
- *  775:     function addElement(elName,elValue,altElValue,close)      
- *  795:     function main()   
- *  845:     function printContent()   
+ *  547: class SC_browse_links 
+ *  559:     function init()   
+ *  791:     function main()   
+ *  841:     function printContent()   
  *
- *              SECTION: OTHER FUNCTIONS:
- *  863:     function expandPage()     
- *  899:     function TBE_expandPage($tables)  
- * 1002:     function isWebFolder($folder)     
- * 1013:     function checkFolder($folder)     
+ *              SECTION: OTHER FUNCTIONS:      These functions are designed to display the records from a page
+ *  858:     function expandPage()     
+ *  894:     function TBE_expandPage($tables)  
+ *  997:     function isWebFolder($folder)     
+ * 1008:     function checkFolder($folder)     
  *
- *              SECTION: OTHER FUNCTIONS:
- * 1037:     function expandFolder($expandFolder=0,$extensionList="")  
- * 1080:     function TBE_expandFolder($expandFolder=0,$extensionList="")      
- * 1164:     function TBE_dragNDrop($expandFolder=0,$extensionList="") 
- * 1245:     function getMsgBox($in_msg,$icon="icon_note")     
+ *              SECTION: OTHER FUNCTIONS:      These functions are designed to display the files from a folder
+ * 1031:     function expandFolder($expandFolder=0,$extensionList="")  
+ * 1074:     function TBE_expandFolder($expandFolder=0,$extensionList="")      
+ * 1158:     function TBE_dragNDrop($expandFolder=0,$extensionList="") 
+ * 1239:     function getMsgBox($in_msg,$icon="icon_note")     
  *
  *              SECTION: Miscellaneous functions
- * 1266:     function barheader($str)  
- * 1276:     function printCurrentUrl($str)    
- * 1287:     function parseCurUrl($href,$siteUrl)      
- * 1348:     function uploadForm($path)        
- * 1370:     function createFolder($path)      
- * 1398:     function main_rte($content="",$wiz=0)     
- * 1564:     function main_db($content="")     
- * 1610:     function main_file($content="",$mode)     
+ * 1260:     function barheader($str)  
+ * 1270:     function printCurrentUrl($str)    
+ * 1281:     function parseCurUrl($href,$siteUrl)      
+ * 1342:     function uploadForm($path)        
+ * 1363:     function createFolder($path)      
+ * 1391:     function main_rte($content="",$wiz=0)     
+ * 1557:     function main_db($content="")     
+ * 1603:     function main_file($content="",$mode)     
  *
- * TOTAL FUNCTIONS: 52
+ * TOTAL FUNCTIONS: 37
  * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
@@ -631,13 +619,11 @@ class SC_browse_links {
                        var cur_href="'.($curUrlArray["href"]?$curUrlArray["href"]:"").'";
                        var cur_target="'.($this->setTarget?$this->setTarget:"").'";
                
-                               //
-                       function setTarget(target)      {
+                       function setTarget(target)      {       //
                                cur_target=target;
                                add_target="&curUrl[target]="+target;
                        }
-                               //
-                       function setValue(value)        {
+                       function setValue(value)        {       //
                                cur_href=value;
                                add_href="&curUrl[href]="+value;
                        }
@@ -662,20 +648,17 @@ class SC_browse_links {
                        $addPassOnParams.=t3lib_div::implodeArrayForUrl("P",$P2);
                
                        $this->doc->JScode.='
-                                       //
-                               function link_typo3Page(id,anchor)      {
+                               function link_typo3Page(id,anchor)      {       //
                                        updateValueInMainForm(id+(anchor?anchor:"")+" "+cur_target);
                                        close();
                                        return false;
                                }
-                                       //
-                               function link_folder(folder)    {
+                               function link_folder(folder)    {       //
                                        updateValueInMainForm(folder+" "+cur_target);
                                        close();
                                        return false;
                                }
-                                       //
-                               function link_current() {
+                               function link_current() {       //
                                        if (cur_href!="http://" && cur_href!="mailto:") {
                                                var setValue = cur_href+" "+cur_target;
                                                if (setValue.substr(0,7)=="http://")    setValue = setValue.substr(7);
@@ -685,16 +668,14 @@ class SC_browse_links {
                                        }
                                        return false;
                                }
-                                       //
-                               function checkReference()       {
+                               function checkReference()       {       //
                                        if (window.opener && window.opener.document && window.opener.document.'.$P["formName"].' && window.opener.document.'.$P["formName"].'["'.$P["itemName"].'"] )   {
                                                return window.opener.document.'.$P["formName"].'["'.$P["itemName"].'"];
                                        } else {
                                                close();
                                        }
                                }
-                                       //
-                               function updateValueInMainForm(input)   {
+                               function updateValueInMainForm(input)   {       //
                                        var field = checkReference();
                                        if (field)      {
                                                field.value = input;
@@ -704,25 +685,21 @@ class SC_browse_links {
                        ';
                } else {
                        $this->doc->JScode.='
-                                       //
-                               function link_typo3Page(id,anchor)      {
+                               function link_typo3Page(id,anchor)      {       //
                                        var theLink = \''.$this->siteURL.'?id=\'+id+(anchor?anchor:"");
                                        self.parent.parent.renderPopup_addLink(theLink,cur_target);
                                        return false;
                                }
-                                       //
-                               function link_folder(folder)    {
+                               function link_folder(folder)    {       //
                                        var theLink = \''.$this->siteURL.'\'+folder;
                                        self.parent.parent.renderPopup_addLink(theLink,cur_target);
                                        return false;
                                }
-                                       //
-                               function link_spec(theLink)     {
+                               function link_spec(theLink)     {       //
                                        self.parent.parent.renderPopup_addLink(theLink,cur_target);
                                        return false;
                                }
-                                       //
-                               function link_current() {
+                               function link_current() {       //
                                        if (cur_href!="http://" && cur_href!="mailto:") {
                                                self.parent.parent.renderPopup_addLink(cur_href,cur_target);    
                                        }
@@ -731,8 +708,7 @@ class SC_browse_links {
                        ';
                }
                $this->doc->JScode.='
-                               //
-                       function jumpToUrl(URL,anchor)  {
+                       function jumpToUrl(URL,anchor)  {       //
                                var add_act = URL.indexOf("act=")==-1 ? "&act='.$act.'" : "";
                                var add_mode = URL.indexOf("mode=")==-1 ? "&mode='.$mode.'" : "";
                                var theLocation = URL+add_act+add_mode+add_href+add_target+add_params'.($addPassOnParams?'+"'.$addPassOnParams.'"':"").'+(anchor?anchor:"");
@@ -753,16 +729,14 @@ class SC_browse_links {
                        var elRef="";
                        var targetDoc="";
                
-                               //
-                       function launchView(url)        {
+                       function launchView(url)        {       //
                                var thePreviewWindow="";
                                thePreviewWindow = window.open("show_item.php?table="+url,"ShowItem","height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
                                if (thePreviewWindow && thePreviewWindow.focus) {
                                        thePreviewWindow.focus();
                                }
                        }
-                               //
-                       function setReferences()        {
+                       function setReferences()        {       //
                                if (parent.typoWin
                                && parent.typoWin.content
                                && parent.typoWin.content.document.editform
@@ -775,8 +749,7 @@ class SC_browse_links {
                                        return false;
                                }
                        }
-                               //
-                       function insertElement(table, uid, type, filename,fp,filetype,imagefile,action, close)  {
+                       function insertElement(table, uid, type, filename,fp,filetype,imagefile,action, close)  {       //
                                if (1=='.($pArr[0]&&!$pArr[1]&&!$pArr[2] ? 1 : 0).')    {
                                        addElement(filename,table+"_"+uid,fp,close);
                                } else {
@@ -795,8 +768,7 @@ class SC_browse_links {
                                }
                                return false;
                        }
-                               //
-                       function addElement(elName,elValue,altElValue,close)    {
+                       function addElement(elName,elValue,altElValue,close)    {       //
                                if (parent.typoWin && parent.typoWin.setFormValueFromBrowseWin) {
                                        parent.typoWin.setFormValueFromBrowseWin("'.$pArr[0].'",altElValue?altElValue:elValue,elName);
                                        if (close)      {
@@ -875,8 +847,7 @@ class SC_browse_links {
        
        /******************************************************************
         *
-        * OTHER FUNCTIONS:     
-        * These functions are designed to display the records from a page
+        * OTHER FUNCTIONS:     These functions are designed to display the records from a page
         * 
         ******************************************************************/
        /**
@@ -1047,8 +1018,7 @@ class SC_browse_links {
        
        /******************************************************************
         *
-        * OTHER FUNCTIONS:     
-        * These functions are designed to display the files from a folder
+        * OTHER FUNCTIONS:     These functions are designed to display the files from a folder
         * 
         ******************************************************************/
        /**
@@ -1370,7 +1340,6 @@ class SC_browse_links {
         * @return      [type]          ...
         */
        function uploadForm($path)      {
-       //      debug($path);
                $count=3;
                $header = t3lib_div::isFirstPartOfStr($path,PATH_site)?substr($path,strlen(PATH_site)):$path;
                $code=$this->barheader($GLOBALS["LANG"]->getLL("uploadImage").":");
index 034ed2d..b830d12 100644 (file)
 ***************************************************************/
 /** 
  * This is the frameset to the file/record browser window
- *
+ * 
+ * $Id$
  * Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   65: class SC_browser 
+ *   76:     function main()   
+ *  131:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 2
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 require ('init.php');
 require ('template.php');
@@ -47,6 +63,8 @@ require ('template.php');
  * @subpackage core
  */
 class SC_browser {
+
+               // Internal, dynamic
        var $content;
 
        /**
@@ -60,11 +78,8 @@ class SC_browser {
 
                        // Set doktype:
                $GLOBALS["TBE_TEMPLATE"]->docType="xhtml_frames";
-               $GLOBALS["TBE_TEMPLATE"]->JScode= '
-                       <script type="text/javascript">
-                                 /*<![CDATA[*/
-                                       //
-                               function closing()      {
+               $GLOBALS["TBE_TEMPLATE"]->JScode=$GLOBALS["TBE_TEMPLATE"]->wrapScriptTags('
+                               function closing()      {       //
                                        if (parent.typoWin)     {
                                                if (parent.typoWin.clipBrd) {
                                                        parent.typoWin.focus();
@@ -75,8 +90,7 @@ class SC_browser {
                                        }
                                        close();
                                }
-                                       //
-                               function setParams(mode,params) {
+                               function setParams(mode,params) {       //
                                        parent.content.document.location = "browse_links.php?mode="+mode+"&bparams="+params;
                                }
                        
@@ -88,16 +102,12 @@ class SC_browser {
                                                close();
                                        }
                                }
-                               //alert(parent.typoWin);
                        
                                if (parent.typoWin)     {
                                        window.typoWin = parent.typoWin;
                                        theBrowser = parent.typoWin.theBrowser;
                                }
-
-                               /*]]>*/
-                       </script>
-               ';
+               ');
                
                $this->content.=$GLOBALS["TBE_TEMPLATE"]->startPage('TYPO3 Element Browser');
 
index 85cfadd..7079d3a 100755 (executable)
 ***************************************************************/
 /** 
  * Class for generation of the module menu.
- *
  * Will make the the vertical, horizontal, selectorbox based menus AND the "about modules" display.
  * Basically it traverses the module structure and generates output based on that.
- * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant content
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   70: class alt_menu_functions 
+ *   91:     function topMenu($theModules,$dontLink=0,$backPath='',$descr=0)   
+ *  340:     function mIconFile($Ifilename,$backPath)  
+ *  355:     function mIconFilename($Ifilename,$backPath)      
+ *  367:     function topButtons()     
+ *  380:     function wrapLinkWithAB($link)    
+ *
+ * TOTAL FUNCTIONS: 5
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
  
+
+
+
+
+
+
+
+/**
+ * Class with menu functions
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class alt_menu_functions {
 
                // Internal
@@ -47,15 +75,18 @@ class alt_menu_functions {
        /**
         * Creates the menu of modules.
         * 
-        * $theModules is the output from load_modules class ($this->loadModules->modules)
         * $descr determines the type of menu made:
-        *              0 = Ordinary vertical menu
+        *              0 = Ordinary vertical menu
         *              1 = Descriptions for 'About modules' display
         *              2 = selector-box menu
-        *              3 = topmenu - horizontal line of icons!
-        *              4 = part of JavaScript switch contruct for alt_main.php frameset.
-        * $dontLink == true will prevent the output from being linked with A-tags (used in the 'beuser' extension)
-        * $backPath must be the 'backPath' to PATH_typo3 from where the the menu is displayed.
+        *              3 = topmenu - horizontal line of icons!
+        *              4 = part of JavaScript switch contruct for alt_main.php frameset.
+        * 
+        * @param       array           $theModules is the output from load_modules class ($this->loadModules->modules)
+        * @param       boolean         $dontLink == true will prevent the output from being linked with A-tags (used in the 'beuser' extension)
+        * @param       string          $backPath must be the 'backPath' to PATH_typo3 from where the the menu is displayed.
+        * @param       integer         $descr determines the type of menu made (see above)
+        * @return      string          The menu HTML
         */
        function topMenu($theModules,$dontLink=0,$backPath='',$descr=0) {
                global $LANG, $TBE_TEMPLATE;
@@ -300,6 +331,11 @@ class alt_menu_functions {
        /**
         * Returns $Ifilename readable for script in PATH_typo3. 
         * That means absolute names are just returned while relative names are prepended with $backPath (pointing back to typo3/ dir)
+        * 
+        * @param       string          Icon filename
+        * @param       string          Back path
+        * @return      string          Result
+        * @see mIconFilename()
         */
        function mIconFile($Ifilename,$backPath)        {
                if (t3lib_div::isAbsPath($Ifilename))   {
@@ -310,6 +346,11 @@ class alt_menu_functions {
 
        /**
         * Returns relative filename to the $Ifilename (for use in img-tags)
+        * 
+        * @param       string          Icon filename
+        * @param       string          Back path
+        * @return      string          Result
+        * @see mIconFile()
         */
        function mIconFilename($Ifilename,$backPath)    {
                if (t3lib_div::isAbsPath($Ifilename))   {
@@ -320,6 +361,8 @@ class alt_menu_functions {
 
        /**
         * Returns logout button.
+        * 
+        * @return      string          
         */
        function topButtons()   {
                global $LANG;
@@ -330,6 +373,9 @@ class alt_menu_functions {
 
        /**
         * Appends a '?' if there is none in the string already
+        * 
+        * @param       string          Link URL
+        * @return      string          
         */
        function wrapLinkWithAB($link)  {
                if (!strstr($link,'?')) {
@@ -342,5 +388,4 @@ class alt_menu_functions {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.alt_menu_functions.inc'])     {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.alt_menu_functions.inc']);
 }
-
 ?>
\ No newline at end of file
index d4bcaf6..9a7fc50 100755 (executable)
 /** 
  * Include file extending t3lib_recordList
  *
+ * $Id$
+ *
  * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   79: class recordList extends t3lib_recordList 
+ *  124:     function start($id,$table,$pointer,$search="",$levels="",$showLimit=0)    
+ *  165:     function setDispFields()  
+ *  183:     function generateList()   
+ *  227:     function thumbCode($row,$table,$field)    
+ *  240:     function makeQuery($table, $id, $addWhere="",$fieldList="*")      
+ *  269:     function setTotalItems()  
+ *  288:     function makeSearchString($table) 
+ *  319:     function linkWrapTable($table,$code)      
+ *  337:     function linkWrapItems($table,$uid,$code,$row)    
+ *  356:     function listURL($altId="",$table=-1,$exclList="")        
+ *  375:     function requestUri()     
+ *  385:     function getSearchBox($formFields=1)      
+ *  432:     function makeFieldList($table,$dontCheckUser=0)   
+ *  464:     function getTreeObject($id,$depth,$perms_clause)  
+ *  482:     function showSysNotesForPage()    
+ *
+ * TOTAL FUNCTIONS: 15
+ * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
 
+
+
+
+
+
+/**
+ * Child class for rendering of Web > List (not the final class. see class.db_list_extra)
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ * @see localRecordList
+ */
 class recordList extends t3lib_recordList {
        var $thumbs = 0;                                                // Boolean. Thumbnails on records containing files (pictures)
        var $itemsLimitPerTable = 20;                   // default Max items shown per table in "multi-table mode", may be overridden by tables.php
@@ -69,6 +112,15 @@ class recordList extends t3lib_recordList {
        var $duplicateStack=array();
        
 
+       /**
+        * @param       [type]          $id: ...
+        * @param       [type]          $table: ...
+        * @param       [type]          $pointer: ...
+        * @param       [type]          $search: ...
+        * @param       [type]          $levels: ...
+        * @param       [type]          $showLimit: ...
+        * @return      [type]          ...
+        */
        function start($id,$table,$pointer,$search="",$levels="",$showLimit=0)  {
                        // Starts the list-generation.
                        // $id is the parent-id from which we generate the list
@@ -104,6 +156,12 @@ class recordList extends t3lib_recordList {
                        $this->pidSelect = "pid=".intval($id);
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function setDispFields()        {
                        // Display fields:
                $dispFields = $GLOBALS["BE_USER"]->getModuleData("db_list.php/displayFields");
@@ -116,6 +174,12 @@ class recordList extends t3lib_recordList {
                }
                $this->setFields=$dispFields;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function generateList() {
                        // For each table we wish to show, this->getTable is called.
                        // Finishes off with a stopper-gif
@@ -151,9 +215,28 @@ class recordList extends t3lib_recordList {
                        }
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $row: ...
+        * @param       [type]          $table: ...
+        * @param       [type]          $field: ...
+        * @return      [type]          ...
+        */
        function thumbCode($row,$table,$field)  {
                return t3lib_BEfunc::thumbCode($row,$table,$field,$this->backPath,$this->thumbScript);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $id: ...
+        * @param       [type]          $addWhere: ...
+        * @param       [type]          $fieldList: ...
+        * @return      [type]          ...
+        */
        function makeQuery($table, $id, $addWhere="",$fieldList="*")    {
                        // returns the SQL-query to select the records from a table $table with pid = $id
                        // Depends on the global var $perms_clause to exist!!
@@ -177,6 +260,12 @@ class recordList extends t3lib_recordList {
 //             debug($query,1);
                return $query;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function setTotalItems()        {
                $result = mysql(TYPO3_db,$this->temp_countQ);
                if (mysql_error())      {
@@ -189,6 +278,13 @@ class recordList extends t3lib_recordList {
                list($rCount) = mysql_fetch_row($result);
                $this->totalItems = $rCount;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @return      [type]          ...
+        */
        function makeSearchString($table)       {
                global $TCA;
                if ($TCA[$table] && $this->searchString)        {
@@ -212,6 +308,14 @@ class recordList extends t3lib_recordList {
                        }
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $code: ...
+        * @return      [type]          ...
+        */
        function linkWrapTable($table,$code)    {
                        // Returns the title (based on $code) of a table ($table) with the proper link around
                if ($this->table!=$table)       {
@@ -220,6 +324,16 @@ class recordList extends t3lib_recordList {
                        return '<A HREF="'.$this->listURL("","","sortField,sortRev,table").'">'.$code.'</a>';
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $uid: ...
+        * @param       [type]          $code: ...
+        * @param       [type]          $row: ...
+        * @return      [type]          ...
+        */
        function linkWrapItems($table,$uid,$code,$row)  {
                        // Returns the title (based on $code) of a record (from table $table) with the proper link around (that is for "pages"-records a link to the level of that record...)
                if (!strcmp($code,"")) {$code="<i>[".$GLOBALS["LANG"]->sL("LLL:EXT:lang/locallang_core.php:labels.no_title")."]</i> - ".t3lib_BEfunc::getRecordTitle($table,$row);}
@@ -230,6 +344,15 @@ class recordList extends t3lib_recordList {
                        return $code;
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $altId: ...
+        * @param       [type]          $table: ...
+        * @param       [type]          $exclList: ...
+        * @return      [type]          ...
+        */
        function listURL($altId="",$table=-1,$exclList="")      {
                return $this->script.
                        '?id='.(strcmp($altId,"")?$altId:$this->id).
@@ -243,9 +366,22 @@ class recordList extends t3lib_recordList {
                        ((!$exclList || !t3lib_div::inList($exclList,"sortRev")) && $this->sortRev?"&sortRev=".rawurlencode($this->sortRev):"")
                        ;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function requestUri()   {
                return $this->listURL();
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $formFields: ...
+        * @return      [type]          ...
+        */
        function getSearchBox($formFields=1)    {
                if ($GLOBALS["CLIENT"]["BROWSER"]=="net")       {
 //                     $content.= '<img src=clear.gif width=1 height=100><BR>';
@@ -285,6 +421,14 @@ class recordList extends t3lib_recordList {
                ';
                return $content;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $dontCheckUser: ...
+        * @return      [type]          ...
+        */
        function makeFieldList($table,$dontCheckUser=0) {
                global $TCA,$BE_USER;
                $fieldListArr = array();
@@ -308,6 +452,15 @@ class recordList extends t3lib_recordList {
                }
                return $fieldListArr;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $id: ...
+        * @param       [type]          $depth: ...
+        * @param       [type]          $perms_clause: ...
+        * @return      [type]          ...
+        */
        function getTreeObject($id,$depth,$perms_clause)        {
                $tree = t3lib_div::makeInstance("t3lib_pageTree");
                $tree->init("AND ".$perms_clause);
@@ -320,6 +473,12 @@ class recordList extends t3lib_recordList {
 //             debug($tree->ids);
                return $tree;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function showSysNotesForPage()  {
                global $TCA;
 
@@ -367,8 +526,7 @@ class recordList extends t3lib_recordList {
 }
 
 
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/class.db_list.inc"])        {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/class.db_list.inc"]);
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list.inc'])        {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list.inc']);
 }
-
 ?>
\ No newline at end of file
index 0e676ee..9292d0d 100755 (executable)
 /** 
  * Include file extending recordList which extended t3lib_recordList
  *
+ * $Id$
+ *
  * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   78: class localRecordList extends recordList 
+ *  103:     function writeTop($row,$path)     
+ *  202:     function linkClipboardHeaderIcon($string,$table,$cmd,$warning="") 
+ *  216:     function getTable($table,$id,$rowlist)    
+ *  482:     function clipNumPane()    
+ *  494:     function addSortLink($code,$field,$table) 
+ *  511:     function makeControl($table,$row) 
+ *  639:     function makeClip($table,$row)    
+ *  693:     function fieldSelectBox($table,$formFields=1)     
+ *  741:     function initCSV()        
+ *  759:     function addToCSV($row)   
+ *  778:     function setCsvRow($csvRow)       
+ *  788:     function outputCSV($prefix)       
+ *  803:     function recPath($pid)    
+ *  816:     function showNewRecLink($table)   
+ *  825:     function makeReturnUrl()  
+ *
+ * TOTAL FUNCTIONS: 15
+ * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
 
- class localRecordList extends recordList {
+
+
+
+/**
+ * Class for rendering of Web>List module
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
+class localRecordList extends recordList {
        var $noControlPanels = 0;
        var $showClipboard=0;
        var $clipObj;
        var $newWizards=0;
        var $dontShowClipControlPanels=0;
        
+
+
+
+
+
+
+
+
+
+       /**
+        * @param       [type]          $row: ...
+        * @param       [type]          $path: ...
+        * @return      [type]          ...
+        */
        function writeTop($row,$path)   {
                global $LANG;
                
                $out.="</table>";
                $this->HTMLcode.=$out;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $string: ...
+        * @param       [type]          $table: ...
+        * @param       [type]          $cmd: ...
+        * @param       [type]          $warning: ...
+        * @return      [type]          ...
+        */
        function linkClipboardHeaderIcon($string,$table,$cmd,$warning="")       {
                $onClickEvent = 'document.dblistForm.cmd.value=\''.$cmd.'\';document.dblistForm.cmd_table.value=\''.$table.'\';document.dblistForm.submit();';
                if ($warning)   $onClickEvent = 'if (confirm('.$GLOBALS['LANG']->JScharCode($warning).')){'.$onClickEvent.'}';
                return '<a href="#" onClick="'.$onClickEvent.'return false;">'.$string.'</a>';
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $id: ...
+        * @param       [type]          $rowlist: ...
+        * @return      [type]          ...
+        */
        function getTable($table,$id,$rowlist)  {
                        // Adds the code of a single table
                global $TCA;
                }
                return $out;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function clipNumPane()  {
                return in_Array("_CLIPBOARD_",$this->fieldArray) && $this->clipObj->current!="normal";
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $code: ...
+        * @param       [type]          $field: ...
+        * @param       [type]          $table: ...
+        * @return      [type]          ...
+        */
        function addSortLink($code,$field,$table)       {
                if ($field=="_CONTROL_")        return $code;
                if ($field=="_CLIPBOARD_")      return $code;
                ($this->sortField==$field?'<img src="gfx/red'.($this->sortRev?"up":"down").'.gif" hspace=2 width="7" height="4" border="0">':'').
                '</a>';
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $row: ...
+        * @return      [type]          ...
+        */
        function makeControl($table,$row)       {
                global $TCA, $LANG;
                if ($this->dontShowClipControlPanels)   return "";
                
                return '<table border=0 cellpadding=1 cellspacing=0 bgColor="'.$GLOBALS["SOBE"]->doc->bgColor4.'"><tr><td>'.implode("</td><td>",$cells).'</td></tr></table>';
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $row: ...
+        * @return      [type]          ...
+        */
        function makeClip($table,$row)  {
                global $TCA;
                if ($this->dontShowClipControlPanels)   return "";
                }
                return '<table border=0 cellpadding=1 cellspacing=0 bgColor="'.$GLOBALS["SOBE"]->doc->bgColor5.'"'.$w100.'><tr><td'.$w40.'>&nbsp;</td><td align=center>'.implode("</td><td>",$cells).'</td><td'.$w40.'>&nbsp;</td></tr></table>';
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $formFields: ...
+        * @return      [type]          ...
+        */
        function fieldSelectBox($table,$formFields=1)   {
                global $TCA;
                t3lib_div::loadTCA($table);
                ';
                return $content;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function initCSV()      {
                $this->csvLines=array();
                
                $this->setCsvRow($csvRow);
                $this->csvLines[]="";
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $row: ...
+        * @return      [type]          ...
+        */
        function addToCSV($row) {
                reset($this->fieldArray);
                $csvRow=array();
                }
                $this->setCsvRow($csvRow);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $csvRow: ...
+        * @return      [type]          ...
+        */
        function setCsvRow($csvRow)     {
                $this->csvLines[] = t3lib_div::csvValues($csvRow);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $prefix: ...
+        * @return      [type]          ...
+        */
        function outputCSV($prefix)     {
                $filename=$prefix."_".date("dmy-Hi").".csv";
                $mimeType = "application/octet-stream";
                echo implode(chr(13).chr(10),$this->csvLines);
                exit;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $pid: ...
+        * @return      [type]          ...
+        */
        function recPath($pid)  {
                if (!isset($this->recPath_cache[$pid])) {
                        $this->recPath_cache[$pid] = t3lib_BEfunc::getRecordPath ($pid,$this->perms_clause,20);
                }
                return $this->recPath_cache[$pid];
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @return      [type]          ...
+        */
        function showNewRecLink($table) {
                return !count($this->allowedNewTables) || in_array($table,$this->allowedNewTables);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function makeReturnUrl()        {
                return '&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI"));
        }
 
  
 
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/class.db_list_extra.inc"])  {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/class.db_list_extra.inc"]);
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list_extra.inc'])  {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list_extra.inc']);
 }
-
 ?>
\ No newline at end of file
index aa4fe68..7ee5357 100755 (executable)
 /** 
  * Include file extending t3lib_recordList
  *
+ * $Id$
+ * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   73: class fileList extends t3lib_recordList 
+ *  110:     function start($path,$pointer,$sort,$sortRev,$clipBoard=0)        
+ *  131:     function generateList()   
+ *  144:     function writeTop($path)  
+ *  199:     function linkClipboardHeaderIcon($string,$table,$cmd,$warning='') 
+ *  213:     function getTable($files,$dirs,$rowlist)  
+ *  305:     function formatDirList($items)    
+ *  369:     function linkWrapDir($code,$path) 
+ *  379:     function listURL()        
+ *  389:     function dirData($theFile)        
+ *  414:     function formatFileList($items)   
+ *  486:     function isImage($ext)    
+ *  498:     function linkWrapSort($code,$path,$col)   
+ *  516:     function readDirectory($path,$type,$extList='')   
+ *  570:     function makeClip($theData)       
+ *
+ * TOTAL FUNCTIONS: 14
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
+ */
+
+
+
+
+
+
+/**
+ * Class for rendering of File>Filelist
+ * 
  * @author     Kasper Skaarhoj <kasper@typo3.com>
  * @package TYPO3
  * @subpackage core
- * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  */
-
 class fileList extends t3lib_recordList {
        var $iLimit = 40;                                       // default Max items shown 
        var $thumbs = 0;                                        // Boolean. Thumbnails on records containing files (pictures)
@@ -62,14 +99,14 @@ class fileList extends t3lib_recordList {
 
        /**
         * Initialization
-        *
-        * @param       string  The path to list
-        * @param       integer Pointer
-        * @param       boolean Sorting column
-        * @param       boolean Sorting direction
-        * @param       boolean Show clipboard flag
-        * @return      void
-        */     
+        * 
+        * @param       string          The path to list
+        * @param       integer         Pointer
+        * @param       boolean         Sorting column
+        * @param       boolean         Sorting direction
+        * @param       boolean         Show clipboard flag
+        * @return      void            
+        */
        function start($path,$pointer,$sort,$sortRev,$clipBoard=0)      {
                $this->counter=0;
                $this->totalbytes=0;
@@ -88,9 +125,9 @@ class fileList extends t3lib_recordList {
 
        /**
         * Reading files and directories, counting elements and generating the list in ->HTMLcode
-        *
-        * @return void
-        */     
+        * 
+        * @return      void            
+        */
        function generateList() {
                $this->dirs = $this->readDirectory($this->path,'dir');
                $this->files = $this->readDirectory($this->path,'file');
@@ -100,10 +137,10 @@ class fileList extends t3lib_recordList {
 
        /**
         * Make the top of the list
-        *
-        * @param       string  The path to list.
-        * @return      void
-        */     
+        * 
+        * @param       string          The path to list.
+        * @return      void            
+        */
        function writeTop($path)        {
                        // Makes the code for the foldericon in the top
                $path = $GLOBALS['SOBE']->basicFF->is_directory($path); // Cleaning name...
@@ -152,13 +189,13 @@ class fileList extends t3lib_recordList {
 
        /**
         * Wrapping input string in a link with clipboard command.
-        *
-        * @param       string  String to be linked - must be htmlspecialchar'ed / prepared before.
-        * @param       string  table - NOT USED
-        * @param       string  "cmd" value
-        * @param       string  Warning for JS confirm message
-        * @return      string  Linked string
-        */     
+        * 
+        * @param       string          String to be linked - must be htmlspecialchar'ed / prepared before.
+        * @param       string          table - NOT USED
+        * @param       string          "cmd" value
+        * @param       string          Warning for JS confirm message
+        * @return      string          Linked string
+        */
        function linkClipboardHeaderIcon($string,$table,$cmd,$warning='')       {
                $onClickEvent = 'document.dblistForm.cmd.value=\''.$cmd.'\';document.dblistForm.submit();';
                if ($warning)   $onClickEvent = 'if (confirm('.$GLOBALS['LANG']->JScharCode($warning).')){'.$onClickEvent.'}';
@@ -167,12 +204,12 @@ class fileList extends t3lib_recordList {
 
        /**
         * Returns a table with directories and files listed.
-        *
-        * @param       array   Files
-        * @param       array   Directories
-        * @param       string  List of rows to display horizontallyh
-        * @return      string  HTML-table
-        */     
+        * 
+        * @param       array           Files
+        * @param       array           Directories
+        * @param       string          List of rows to display horizontallyh
+        * @return      string          HTML-table
+        */
        function getTable($files,$dirs,$rowlist)        {
                        // Adds the code of files/dirs
                $out='';
@@ -260,11 +297,11 @@ class fileList extends t3lib_recordList {
        }
 
        /**
-        * This returns tablerows for the directories in the array $items['sorting']. 
-        *
-        * @param       array   Items
-        * @return      string  HTML table rows.
-        */     
+        * This returns tablerows for the directories in the array $items['sorting'].
+        * 
+        * @param       array           Items
+        * @return      string          HTML table rows.
+        */
        function formatDirList($items)  {
                $out='';
 
@@ -324,11 +361,11 @@ class fileList extends t3lib_recordList {
 
        /**
         * Wraps the directory-titles
-        *
-        * @param       string  String to be wrapped in links
-        * @param       string  ID (path)
-        * @return      string  HTML
-        */     
+        * 
+        * @param       string          String to be wrapped in links
+        * @param       string          ID (path)
+        * @return      string          HTML
+        */
        function linkWrapDir($code,$path)       {
                $href = $this->script.'?id='.rawurlencode($path);
                return '<a href="'.htmlspecialchars($href).'">'.$code.'</a>';
@@ -336,19 +373,19 @@ class fileList extends t3lib_recordList {
 
        /**
         * Returns list URL
-        *
-        * @return      string  URL
-        */     
+        * 
+        * @return      string          URL
+        */
        function listURL()      {
                return $this->script.'?id='.rawurlencode($this->path).'&imagemode='.$this->thumbs;
        }
 
        /**
         * Returns some data specific for the directories...
-        *
-        * @param       array   File information array
-        * @return      array   (title, icon, path)
-        */     
+        * 
+        * @param       array           File information array
+        * @return      array           (title, icon, path)
+        */
        function dirData($theFile)      {
                $path = $theFile['path'].$theFile['file'].'/';
                $webpath=t3lib_BEfunc::getPathType_web_nonweb($path);
@@ -369,11 +406,11 @@ class fileList extends t3lib_recordList {
        }
 
        /**
-        * This returns tablerows for the files in the array $items['sorting']. 
-        *
-        * @param       array   Items
-        * @return      string  HTML table rows.
-        */     
+        * This returns tablerows for the files in the array $items['sorting'].
+        * 
+        * @param       array           Items
+        * @return      string          HTML table rows.
+        */
        function formatFileList($items) {
                $out='';
 
@@ -442,22 +479,22 @@ class fileList extends t3lib_recordList {
 
        /**
         * Returns true if $ext is an image-extension according to $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
-        *
-        * @param       string  file extension 
-        * @return      boolean 
-        */     
+        * 
+        * @param       string          file extension
+        * @return      boolean         
+        */
        function isImage($ext)  {
                return t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],strtolower($ext));
        }
 
        /**
         * Wraps the directory-titles ($code) in a link to file_list.php (id=$path) and sorting commands...
-        *
-        * @param       string  String to be wrapped
-        * @param       string  ID (path)
-        * @param       string  Sorting column
-        * @return      string  HTML
-        */     
+        * 
+        * @param       string          String to be wrapped
+        * @param       string          ID (path)
+        * @param       string          Sorting column
+        * @return      string          HTML
+        */
        function linkWrapSort($code,$path,$col) {
                if ($this->sort==$col && !$this->sortRev)       {               // reverse sorting
                        $params='&SET[sort]='.$col.'&SET[reverse]=1';
@@ -470,12 +507,12 @@ class fileList extends t3lib_recordList {
 
        /**
         * Returns an array with file/dir items + a array with the sorted items
-        *
-        * @param       string  Path
-        * @param       string  $type is the technical type; file,dir,link. empty is all kinds of stuff.
-        * @param       string  $extList: List of fileextensions to select. If empty, all are selected.
-        * @return      array   Array('files'=>array(), 'sorting'=>array());
-        */     
+        * 
+        * @param       string          Path
+        * @param       string          $type is the technical type; file,dir,link. empty is all kinds of stuff.
+        * @param       string          $extList: List of fileextensions to select. If empty, all are selected.
+        * @return      array           Array('files'=>array(), 'sorting'=>array());
+        */
        function readDirectory($path,$type,$extList='') {
                $items = Array('files'=>array(), 'sorting'=>array());
                $path = $GLOBALS['SOBE']->basicFF->is_directory($path); // Cleaning name...
@@ -526,10 +563,10 @@ class fileList extends t3lib_recordList {
 
        /**
         * Creates the clipboard control pad
-        *
-        * @param       array
-        * @return      string  HTML-table
-        */     
+        * 
+        * @param       array           
+        * @return      string          HTML-table
+        */
        function makeClip($theData)     {
                $cells=array();
                $fullIdent = $theData['path'].$theData['file'];
@@ -583,5 +620,4 @@ class fileList extends t3lib_recordList {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.file_list.inc'])      {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.file_list.inc']);
 }
-
 ?>
\ No newline at end of file
index 3db0668..b44c406 100755 (executable)
 /** 
  * Class for the record history display script (show_rechis.php)
  *
+ * $Id$
+ *
  * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   77: class recordHistory 
+ *   88:     function getChangesSinceRecord($element,$hisUid=0,$hisUid_Stop=0) 
+ *  133:     function nextHisUid($element,$hisUid)     
+ *  167:     function compareChangesWithCurrent($element,$changeRec,$discardFileLists=0)       
+ *  203:     function readFieldTypes($table,$id)       
+ *  226:     function cmp($changeStatus,$oldRecord)    
+ *  245:     function revertToPreviousValues($element,$field)  
+ *  298:     function saveState($element,$sumUp)       
+ *  343:     function removeFilefields($table,$dataArray)      
+ *  363:     function displayHistory($element) 
+ *  487:     function renderEntry($entry,$table)       
+ *  537:     function displaySysHistoryEntry($sh_uid)  
+ *  573:     function listHeader()     
+ *  613:     function linkPage($str,$inparams=array(),$anchor="")      
+ *
+ * TOTAL FUNCTIONS: 13
+ * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
 
+
+
+
+
+
+
+
+
+
+
+
+/**
+ * Class for the record history display script (show_rechis.php)
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class recordHistory {
        var $listType = 0;
        var $maxSteps=20;
        
+       
+       /**
+        * @param       [type]          $element: ...
+        * @param       [type]          $hisUid: ...
+        * @param       [type]          $hisUid_Stop: ...
+        * @return      [type]          ...
+        */
        function getChangesSinceRecord($element,$hisUid=0,$hisUid_Stop=0)       {
                global $TCA;
 
@@ -74,6 +122,14 @@ class recordHistory {
                }       
                return $sumChangesArray;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $element: ...
+        * @param       [type]          $hisUid: ...
+        * @return      [type]          ...
+        */
        function nextHisUid($element,$hisUid)   {
                $elParts = explode(":",$element);
                // Prev:
@@ -99,6 +155,15 @@ class recordHistory {
 
                return array($prevUid,$nextUid);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $element: ...
+        * @param       [type]          $changeRec: ...
+        * @param       [type]          $discardFileLists: ...
+        * @return      [type]          ...
+        */
        function compareChangesWithCurrent($element,$changeRec,$discardFileLists=0)     {
                global $TCA;
 
@@ -127,6 +192,14 @@ class recordHistory {
                
                return $newChangeRec;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $id: ...
+        * @return      [type]          ...
+        */
        function readFieldTypes($table,$id)     {
                $res = mysql(TYPO3_db,"SELECT * FROM $table WHERE uid=".intval($id));
                        // Fetch the types of the fields.
@@ -142,6 +215,14 @@ class recordHistory {
                }
                return array($currentRecord,$cRecTypes);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $changeStatus: ...
+        * @param       [type]          $oldRecord: ...
+        * @return      [type]          ...
+        */
        function cmp($changeStatus,$oldRecord)  {
                reset($oldRecord);
                $changes=array();
@@ -153,6 +234,14 @@ class recordHistory {
                }
                return $changes;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $element: ...
+        * @param       [type]          $field: ...
+        * @return      [type]          ...
+        */
        function revertToPreviousValues($element,$field)        {
                $sumUp = t3lib_div::GPvar("sumUp");
 
@@ -198,6 +287,14 @@ class recordHistory {
                        exit;
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $element: ...
+        * @param       [type]          $sumUp: ...
+        * @return      [type]          ...
+        */
        function saveState($element,$sumUp)     {
                $elParts = explode(":",$element);
 
@@ -235,6 +332,14 @@ class recordHistory {
                $query = t3lib_BEfunc::DBcompileInsert("sys_history",$fields_values);
                $res = mysql(TYPO3_db,$query);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $table: ...
+        * @param       [type]          $dataArray: ...
+        * @return      [type]          ...
+        */
        function removeFilefields($table,$dataArray)    {
                global $TCA;
                if ($TCA[$table])       {
@@ -248,6 +353,13 @@ class recordHistory {
                }
                return $dataArray;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $element: ...
+        * @return      [type]          ...
+        */
        function displayHistory($element)       {
                global $SOBE, $LANG, $TCA;
                
@@ -364,6 +476,14 @@ class recordHistory {
                        return $SOBE->doc->section($LANG->getLL("changes"),$theCode,0,1);
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $entry: ...
+        * @param       [type]          $table: ...
+        * @return      [type]          ...
+        */
        function renderEntry($entry,$table)     {
                global $SOBE, $LANG, $TCA;
                $lines=array();
@@ -407,6 +527,13 @@ class recordHistory {
                }
                return $lines;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $sh_uid: ...
+        * @return      [type]          ...
+        */
        function displaySysHistoryEntry($sh_uid)        {
                global $SOBE, $LANG, $TCA;
 
@@ -437,6 +564,12 @@ class recordHistory {
                }
                return $content;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function listHeader()   {
                global $SOBE, $LANG, $TCA;
 
@@ -468,6 +601,15 @@ class recordHistory {
                }
                return $out;
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @param       [type]          $str: ...
+        * @param       [type]          $inparams: ...
+        * @param       [type]          $anchor: ...
+        * @return      [type]          ...
+        */
        function linkPage($str,$inparams=array(),$anchor="")    {
                $params["sh_uid"]=t3lib_div::GPvar("sh_uid");
                $params["sumUp"]=t3lib_div::GPvar("sumUp");
@@ -479,8 +621,7 @@ class recordHistory {
        }
 }
 
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/class.show_rechis.inc"])    {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/class.show_rechis.inc"]);
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.show_rechis.inc'])    {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.show_rechis.inc']);
 }
-
 ?>
\ No newline at end of file
index e042402..e5d4d57 100755 (executable)
@@ -1,4 +1,5 @@
 <!-- Close script, used in particular by the alt_doc.php script to close the current edit window -->
+<!-- TYPO3 CVS ID: $Id$ -->
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 <HTML>
index 0d53cc1..edbe7c5 100755 (executable)
  * are NOT located in their actual module directories (fx. mod/web/list/) but in the 
  * backend root directory. This has some historical and practical causes.
  *
+ * $Id$
+ *
  * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   87: class SC_db_list 
+ *  107:     function init()   
+ *  128:     function menuConfig()     
+ *  151:     function clearCache()     
+ *  164:     function main()   
+ *  342:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 5
+ * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
  
 
 unset($MCONF);
-require ("mod/web/list/conf.php");
-require ("init.php");
-require ("template.php");
-$LANG->includeLLFile("EXT:lang/locallang_mod_web_list.php");
-require_once (PATH_t3lib."class.t3lib_page.php");
-require_once (PATH_t3lib."class.t3lib_pagetree.php");
-require_once (PATH_t3lib."class.t3lib_recordlist.php");
-require_once (PATH_t3lib."class.t3lib_clipboard.php");
-require_once ("class.db_list.inc");
-require_once ("class.db_list_extra.inc");
+require ('mod/web/list/conf.php');
+require ('init.php');
+require ('template.php');
+$LANG->includeLLFile('EXT:lang/locallang_mod_web_list.php');
+require_once (PATH_t3lib.'class.t3lib_page.php');
+require_once (PATH_t3lib.'class.t3lib_pagetree.php');
+require_once (PATH_t3lib.'class.t3lib_recordlist.php');
+require_once (PATH_t3lib.'class.t3lib_clipboard.php');
+require_once ('class.db_list.inc');
+require_once ('class.db_list_extra.inc');
 $BE_USER->modAccess($MCONF,1);
 
 t3lib_BEfunc::lockRecords();
 
 
 
-// ***************************
-// Script Classes
-// ***************************
+
+
+
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_db_list {
        var $MCONF=array();
        var $MOD_MENU=array();
@@ -77,21 +101,30 @@ class SC_db_list {
        var $id;
        var $doc;       
 
+       /**
+        * @return      [type]          ...
+        */
        function init() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-               $this->MCONF = $GLOBALS["MCONF"];
-               $this->id = t3lib_div::GPvar("id");
+               $this->MCONF = $GLOBALS['MCONF'];
+               $this->id = t3lib_div::GPvar('id');
 
                $this->perms_clause = $BE_USER->getPagePermsClause(1);
-               $this->pointer = t3lib_div::GPvar("pointer");
-               $this->imagemode = t3lib_div::GPvar("imagemode");
-               $this->table = t3lib_div::GPvar("table");
+               $this->pointer = t3lib_div::GPvar('pointer');
+               $this->imagemode = t3lib_div::GPvar('imagemode');
+               $this->table = t3lib_div::GPvar('table');
                $this->menuConfig();
 
-               if (t3lib_div::GPvar("clear_cache") || t3lib_div::GPvar("cmd")=="delete")       {
-                       $this->include_once[]=PATH_t3lib."class.t3lib_tcemain.php";
+               if (t3lib_div::GPvar('clear_cache') || t3lib_div::GPvar('cmd')=='delete')       {
+                       $this->include_once[]=PATH_t3lib.'class.t3lib_tcemain.php';
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function menuConfig()   {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
@@ -109,6 +142,12 @@ class SC_db_list {
                        // CLEANSE SETTINGS
                $this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::GPvar("SET"), $this->MCONF["name"]);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function clearCache()   {
                if (t3lib_div::GPvar("clear_cache"))    {
                        $tce = t3lib_div::makeInstance("t3lib_TCEmain");
@@ -116,6 +155,12 @@ class SC_db_list {
                        $tce->clear_cacheCmd($this->id);
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
@@ -199,29 +244,29 @@ class SC_db_list {
                
                $this->doc->JScode='
                <script language="javascript" type="text/javascript">
-                       function jumpToUrl(URL) {
+                       function jumpToUrl(URL) {       //
 //     alert("jumpToUrl: "+URL);
                                document.location = URL;
                                return false;
                        }
-                       function jumpExt(URL,anchor)    {
+                       function jumpExt(URL,anchor)    {       //
                                var anc = anchor?anchor:"";
 //     alert("jumpExt: "+URL+(T3_THIS_LOCATION?"&returnUrl="+T3_THIS_LOCATION:"")+anc);
                                document.location = URL+(T3_THIS_LOCATION?"&returnUrl="+T3_THIS_LOCATION:"")+anc;
                                return false;
                        }
-                       function jumpSelf(URL)  {
+                       function jumpSelf(URL)  {       //
 //     alert("jumpSelf: "+URL+(T3_RETURN_URL?"&returnUrl="+T3_RETURN_URL:""));
                                document.location = URL+(T3_RETURN_URL?"&returnUrl="+T3_RETURN_URL:"");
                                return false;
                        }
                        '.$this->doc->redirectUrls($dblist->listURL()).'
                        '.$dblist->CBfunctions().'
-                       function editRecords(table,idList,addParams,CBflag)     {
+                       function editRecords(table,idList,addParams,CBflag)     {       //
                                document.location="'.$backPath.'alt_doc.php?returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).
                                        '&edit["+table+"]["+idList+"]=edit"+addParams;
                        }
-                       function editList(table,idList) {
+                       function editList(table,idList) {       //
                                var list="";
                
                                        // Checking how many is checked, how many is not
@@ -288,19 +333,23 @@ class SC_db_list {
                        }
                }
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function printContent() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
                $this->content.= $this->doc->endPage();
                echo $this->content;
-               
-//             echo strlen($this->content)."<BR>";
        }
 }
 
 // Include extension?
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/db_list.php"])      {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/db_list.php"]);
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/db_list.php'])      {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/db_list.php']);
 }
 
 
@@ -315,7 +364,7 @@ if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/db_li
 
 
 // Make instance:
-$SOBE = t3lib_div::makeInstance("SC_db_list");
+$SOBE = t3lib_div::makeInstance('SC_db_list');
 $SOBE->init();
 
 // Include files?
index 4963811..2bfce30 100755 (executable)
  * This script lets users choose a new database element to create.
  * Includes a wizard mode for visually pointing out the position of new pages
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant (not with pages wizard yet... position map and other classes needs cleaning)
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
  */
 /**
  * [CLASS/FUNCTION INDEX of SCRIPT]
  *
  *
  *
- *   92: class localPageTree extends t3lib_pageTree 
- *  101:     function wrapIcon($icon,$row)     
- *  112:     function expandNext($id)  
+ *   90: class localPageTree extends t3lib_pageTree 
+ *   99:     function wrapIcon($icon,$row)     
+ *  110:     function expandNext($id)  
  *
  *
- *  125: class SC_db_new 
- *  151:     function init()   
- *  208:     function main()   
- *  265:     function pagesOnly()      
- *  281:     function regularNew()     
- *  414:     function printContent()   
- *  431:     function linkWrap($code,$table,$pid,$addContentTable=0)   
- *  451:     function isTableAllowedForThisPage($pid_row, $checkTable) 
- *  481:     function showNewRecLink($table,$allowedNewTables='')      
+ *  123: class SC_db_new 
+ *  149:     function init()   
+ *  206:     function main()   
+ *  263:     function pagesOnly()      
+ *  279:     function regularNew()     
+ *  412:     function printContent()   
+ *  426:     function linkWrap($code,$table,$pid,$addContentTable=0)   
+ *  446:     function isTableAllowedForThisPage($pid_row, $checkTable) 
+ *  476:     function showNewRecLink($table,$allowedNewTables='')      
  *
  * TOTAL FUNCTIONS: 10
  * (This index is automatically created/updated by the extension "extdeveval")
@@ -78,9 +79,6 @@ require_once (PATH_t3lib.'class.t3lib_pagetree.php');
 
 
 
-// ***************************
-// Script Classes
-// ***************************
 
 /**
  * Extension for the tree class that generates the tree of pages in the page-wizard mode
@@ -94,9 +92,9 @@ class localPageTree extends t3lib_pageTree {
        /**
         * Inserting uid-information in title-text for an icon
         * 
-        * @param       [type]          $icon: ...
-        * @param       [type]          $row: ...
-        * @return      [type]          ...
+        * @param       string          Icon image
+        * @param       array           Item row
+        * @return      string          Wrapping icon image.
         */
        function wrapIcon($icon,$row)   {
                return substr($icon,0,-1).' title="id='.htmlspecialchars($row['uid']).'">';
@@ -106,8 +104,8 @@ class localPageTree extends t3lib_pageTree {
         * Determines whether to expand a branch or not.
         * Here the branch is expanded if the current id matches the global id for the listing/new
         * 
-        * @param       [type]          $id: ...
-        * @return      [type]          ...
+        * @param       integer         The ID
+        * @return      boolean         Returns true if the IDs matches
         */
        function expandNext($id)        {
                return $id==$GLOBALS['SOBE']->id ? 1 : 0;
@@ -146,7 +144,7 @@ class SC_db_new {
        /**
         * Constructor
         * 
-        * @return      [type]          ...
+        * @return      void            
         */
        function init() {
                global $SOBE,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA;
@@ -203,7 +201,7 @@ class SC_db_new {
        /**
         * Main processing
         * 
-        * @return      [type]          ...
+        * @return      void            
         */
        function main() {
                global $SOBE,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA;
@@ -260,7 +258,7 @@ class SC_db_new {
        /**
         * Creates the position map for pages wizard
         * 
-        * @return      [type]          ...
+        * @return      void            
         */
        function pagesOnly()    {
                global $LANG;
@@ -276,7 +274,7 @@ class SC_db_new {
        /**
         * Create a regular new element (pages and records)
         * 
-        * @return      [type]          ...
+        * @return      void            
         */
        function regularNew()   {
                global $SOBE,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA;
@@ -409,24 +407,21 @@ class SC_db_new {
        /**
         * Ending page output and echo'ing content to browser.
         * 
-        * @return      [type]          ...
+        * @return      void            
         */
        function printContent() {
-               global $SOBE,$BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA;
-
                $this->content.= $this->doc->endPage();
                echo $this->content;
        }
 
        /**
         * Links the string $code to a create-new form for a record in $table created on page $pid
-        * If $addContentTable is set, then a new contentTable record is created together with pages
         * 
-        * @param       [type]          $code: ...
-        * @param       [type]          $table: ...
-        * @param       [type]          $pid: ...
-        * @param       [type]          $addContentTable: ...
-        * @return      [type]          ...
+        * @param       string          Link string
+        * @param       string          Table name (in which to create new record)
+        * @param       integer         PID value for the "&edit['.$table.']['.$pid.']=new" command (positive/negative)
+        * @param       boolean         If $addContentTable is set, then a new contentTable record is created together with pages
+        * @return      string          The link.
         */
        function linkWrap($code,$table,$pid,$addContentTable=0) {
                $params = '&edit['.$table.']['.$pid.']=new'.
@@ -444,9 +439,9 @@ class SC_db_new {
        /**
         * Returns true if the tablename $checkTable is allowed to be created on the page with record $pid_row
         * 
-        * @param       [type]          $pid_row: ...
-        * @param       [type]          $checkTable: ...
-        * @return      [type]          ...
+        * @param       array           Record for parent page.
+        * @param       string          Table name to check
+        * @return      boolean         Returns true if the tablename $checkTable is allowed to be created on the page with record $pid_row
         */
        function isTableAllowedForThisPage($pid_row, $checkTable)       {
                global $TCA, $PAGES_TYPES;
@@ -474,9 +469,9 @@ class SC_db_new {
        /**
         * Returns true if the $table tablename is found in $allowedNewTables (or if $allowedNewTables is empty)
         * 
-        * @param       [type]          $table: ...
-        * @param       [type]          $allowedNewTables: ...
-        * @return      [type]          ...
+        * @param       string          Table name to test if in allowedTables
+        * @param       array           Array of new tables that are allowed.
+        * @return      boolean         Returns true if the $table tablename is found in $allowedNewTables (or if $allowedNewTables is empty)
         */
        function showNewRecLink($table,$allowedNewTables='')    {
                $allowedNewTables = is_array($allowedNewTables) ? $allowedNewTables : $this->allowedNewTables;
index b439dad..8adcc1c 100755 (executable)
@@ -1,4 +1,5 @@
 <!-- Default script designed to just redirect to login screen -->
+<!-- TYPO3 CVS ID: $Id$ -->
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 <HTML>
index b439dad..8adcc1c 100755 (executable)
@@ -1,4 +1,5 @@
 <!-- Default script designed to just redirect to login screen -->
+<!-- TYPO3 CVS ID: $Id$ -->
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 <HTML>
index 59d72e6..b07d1de 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
+*  (c) 1999-2003 Kasper Skaarhoj (kasper@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is 
@@ -32,7 +32,7 @@
  *
  * $Id$
  *
- * @author     Kasper Skårhøj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
  * @package TYPO3
  * @subpackage core
  */
index 88acf63..ece1690 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
+*  (c) 1999-2003 Kasper Skaarhoj (kasper@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is 
@@ -29,7 +29,7 @@
  *
  * $Id$
  *
- * @author     Kasper Skårhøj <kasper@typo3.com>
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
  * @package TYPO3
  * @subpackage core
  */
index 1d33952..1ad274f 100755 (executable)
 ***************************************************************/
 /** 
  * Dummy document - displays nothing but background color.
- * 
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
  *
+ * $Id$ 
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant content
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
  */
-
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   68: class SC_dummy 
+ *   76:     function main()   
+ *   92:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 2
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
+ */
 require ('init.php');
 require ('template.php');
 
-// ***************************
-// Script Classes
-// ***************************
+
+
+
+
+
+
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_dummy {
        var $content;
        
        /**
         * Create content
+        * 
+        * @return      void            
         */
        function main() {
                global $TBE_TEMPLATE;
@@ -60,6 +86,8 @@ class SC_dummy {
        
        /**
         * Print output
+        * 
+        * @return      void            
         */
        function printContent() {
                echo $this->content;
@@ -78,5 +106,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/dummy
 $SOBE = t3lib_div::makeInstance('SC_dummy');
 $SOBE->main();
 $SOBE->printContent();
-
 ?>
index 182dd53..dd73495 100755 (executable)
 /** 
  * Web>File: Editing documents
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
  * XHTML compliant (except textarea field)
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   75: class SC_file_edit 
+ *   89:     function init()   
+ *  127:     function backToList()     
+ *  139:     function main()   
+ *  191:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 4
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
-
 
 $BACK_PATH='';
 require ('init.php');
@@ -42,9 +55,23 @@ require ('template.php');
 require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
 
 
-// ***************************
-// Script Classes
-// ***************************
+
+
+
+
+
+
+
+
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_file_edit {
        var $content;
        var $basicff;
@@ -56,9 +83,11 @@ class SC_file_edit {
 
        /**
         * Initialize
+        * 
+        * @return      void            
         */
        function init() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
+               global $BACK_PATH,$TYPO3_CONF_VARS;
                
                        // Setting target, which must be a file reference to a file within the mounts.
                $this->target = t3lib_div::GPvar('target');
@@ -104,6 +133,8 @@ class SC_file_edit {
 
        /**
         * Main
+        * 
+        * @return      void            
         */
        function main() {
                global $BE_USER, $LANG, $TYPO3_CONF_VARS;
@@ -154,10 +185,10 @@ class SC_file_edit {
 
        /**
         * Ends page and outputs content
+        * 
+        * @return      void            
         */
        function printContent() {
-               global $SOBE;
-
                $this->content.=$this->doc->endPage();
                echo $this->content;
        }
index af8f6cc..bf2dd0e 100755 (executable)
 /** 
  * Web>File: File listing
  *
- * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ * $Id$
  * Revised for TYPO3 3.6 2/2003 by Kasper Skaarhoj
+ *
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   78: class SC_file_list 
+ *  101:     function init()   
+ *  122:     function menuConfig()     
+ *  143:     function main()   
+ *  217:     function jumpToUrl(URL)   
+ *  265:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 5
+ * (This index is automatically created/updated by the extension "extdeveval")
+ *
  */
 
 unset($MCONF);
 require ('mod/file/list/conf.php');
@@ -47,9 +64,17 @@ $BE_USER->modAccess($MCONF,1);
 
 
 
-// ***************************
-// Script Classes
-// ***************************
+
+
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_file_list {
        var $MCONF=array();                     // Module configuration
        var $MOD_MENU=array();          
@@ -70,9 +95,9 @@ class SC_file_list {
        /**
         * Initialize variables, file object
         * Incoming GET vars include id, pointer, table, imagemode
-        *
-        * @return      void
-        */     
+        * 
+        * @return      void            
+        */
        function init() {
                global $TYPO3_CONF_VARS,$FILEMOUNTS;
                        
@@ -92,8 +117,8 @@ class SC_file_list {
        /**
         * Setting the menu/session variables
         * 
-        * @return      void
-        */     
+        * @return      void            
+        */
        function menuConfig()   {
                        // MENU-ITEMS:
                        // If array, then it's a selector box menu
@@ -112,10 +137,9 @@ class SC_file_list {
 
        /**
         * Main function, creating the listing
-        *
-        * @param       
-        * @return      
-        */     
+        * 
+        * @return      void            
+        */
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$HTTP_GET_VARS,$HTTP_POST_VARS,$TYPO3_CONF_VARS,$FILEMOUNTS;
                
@@ -235,10 +259,10 @@ class SC_file_list {
 
        /**
         * Ending page and outputting content from ->content
-        */     
+        * 
+        * @return      void            
+        */
        function printContent() {
-               global $SOBE;
-
                $this->content.= $this->doc->endPage();
                echo $this->content;
        }
index 155fc1d..70de1a5 100755 (executable)
 /** 
  * Web>File: Create new folders in the filemounts
  *
+ * $Id$
+ *
  * @author     Kasper Skaarhoj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
+ */
+/**
+ * [CLASS/FUNCTION INDEX of SCRIPT]
+ *
+ *
+ *
+ *   75: class SC_file_newfolder 
+ *   91:     function init()   
+ *  145:     function main()   
+ *  186:     function printContent()   
+ *
+ * TOTAL FUNCTIONS: 3
+ * (This index is automatically created/updated by the extension "extdeveval")
  *
  */
+
+
+$BACK_PATH='';
+require ('init.php');
+require ('template.php');
+require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
+
+
 
 
-$BACK_PATH="";
-require ("init.php");
-require ("template.php");
-require_once (PATH_t3lib."class.t3lib_basicfilefunc.php");
 
 
 
-// ***************************
-// Script Classes
-// ***************************
+
+
+
+
+
+
+/**
+ * Script Class
+ * 
+ * @author     Kasper Skaarhoj <kasper@typo3.com>
+ * @package TYPO3
+ * @subpackage core
+ */
 class SC_file_newfolder {
        var $content;
        var $number;
@@ -55,7 +83,11 @@ class SC_file_newfolder {
        var $target;
        var $doc;       
 
-               // Constructor:
+       /**
+        * Constructor:
+        * 
+        * @return      [type]          ...
+        */
        function init() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
@@ -88,13 +120,13 @@ class SC_file_newfolder {
                <script language="javascript" type="text/javascript">
                        var path = "'.$this->target.'";
                
-                       function reload(a)      {
+                       function reload(a)      {       //
                                if (!changed || (changed && confirm("'.$LANG->sL("LLL:EXT:lang/locallang_core.php:mess.redraw").'")))   {
                                        var params = "&target="+escape(path)+"&number="+a; 
                                        document.location = "file_newfolder.php?"+params;
                                }
                        }
-                       function backToList()   {
+                       function backToList()   {       //
                                top.goToModule("file_list");
                        }
                        
@@ -104,6 +136,12 @@ class SC_file_newfolder {
                ';
                $this->doc->form='<form action="tce_file.php" method="POST" name="editform">';
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function main() {
                global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
 
@@ -139,6 +177,12 @@ class SC_file_newfolder {
                $code.='<BR><input type="Submit" value="'.$LANG->sL("LLL:EXT:lang/locallang_core.php:file_newfolder.php.newfile_submit").'">&nbsp;&nbsp;<input type="Submit" value="'.$LANG->sL("LLL:EXT:lang/locallang_core.php:labels.cancel").'" onClick="backToList(); return false;">';
                $this->content.= $this->doc->section($LANG->sL("LLL:EXT:lang/locallang_core.php:file_newfolder.php.newfile"),$code);
        }
+
+       /**
+        * [Describe function...]
+        * 
+        * @return      [type]          ...
+        */
        function printContent() {
                global $SOBE;
 
index f3d6bf5..06fcfee 100755 (executable)
--- a/