Documentation TYPO3 par Ameos

db_config.lib.php

00001 <?php
00002 /* $Id: db_config.lib.php,v 2.4 2004/05/20 16:14:10 nijel Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00023 function obj2xml($v, $indent = '') {
00024     $attr = '';
00025     foreach ($v AS $key => $val) {
00026         if (is_string($key) && ($key == '__attr')) {
00027             continue;
00028         }
00029 
00030         // Check for __attr
00031         if (is_object($val->__attr)) {
00032             foreach ($val->__attr AS $key2 => $val2) {
00033                 $attr .= " $key2=\"$val2\"";
00034             }
00035         } else {
00036             $attr     = '';
00037         }
00038 
00039         // Preserve data type information
00040         $attr .= ' type="' . gettype($val) . '"';
00041 
00042         if (is_array($val) || is_object($val)) {
00043             echo "$indent<$key$attr>\n";
00044             obj2xml($val, $indent . '  ');
00045             echo "$indent</$key>\n";
00046         } else {
00047             if (is_string($val) && ($val == '')) {
00048                 echo "$indent<$key$attr />\n";
00049             } else {
00050                 echo "$indent<$key$attr>$val</$key>\n";
00051             }
00052         }
00053     } // end while
00054 } // end of the "obj2xml()" function
00055 
00056 
00057 $cfg['DBConfig']['AllowUserOverride'] = array(
00058     'Servers/*/bookmarkdb',
00059     'Servers/*/bookmarktable',
00060     'Servers/*/relation',
00061     'Servers/*/pdf_table_position',
00062     'ShowSQL',
00063     'Confirm',
00064     'LeftFrameLight',
00065     'ShowTooltip',
00066     'ShowBlob',
00067     'NavigationBarIconic',
00068     'ShowAll',
00069     'MaxRows',
00070     'Order',
00071     'ProtectBinary',
00072     'ShowFunctionFields',
00073     'LeftWidth',
00074     'LeftBgColor',
00075     'LeftPointerColor',
00076     'RightBgColor',
00077     'Border',
00078     'ThBgcolor',
00079     'BgcolorOne',
00080     'BgcolorTwo',
00081     'BrowsePointerColor',
00082     'BrowseMarkerColor',
00083     'TextareaCols',
00084     'TextareaRows',
00085     'LimitChars',
00086     'ModifyDeleteAtLeft',
00087     'ModifyDeleteAtRight',
00088     'DefaultDisplay',
00089     'RepeatCells'
00090 );
00091 
00092 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6