Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

class.tx_install.php File Reference

Go to the source code of this file.

Namespaces

namespace  TYPO3

Classes

class  tx_install

Functions

 getItemArrayType ($arr)
 Private.
 getItemBlobSize ($len)
 Private.
 suggestTCAFieldDefinition ($fieldName, $fieldInfo)
 Should suggest a TCA configuration for a specific field.
 includeTCA ()
 Includes TCA.
 linkIt ($url, $link="")
 This creates a link to the given $url.
 message ($head, $short_string="", $long_string="", $type=0, $force=0)
 Setting a message in the message-log and sets the fatalError flag if error type is 3.
 printSection ($head, $short_string, $long_string, $type)
 This "prints" a section with a message to the ->sections array.
 fw ($str, $size=1)
 Wraps the str in a font-tag with verdana 1.
 fwheader ($str)
 Wraps the str in a font-tag with verdana 1.
 wrapInCells ($label, $content)
 Wrapping labal/content in a table-row.
 printAll ()
 This prints all the messages in the ->section array.
 outputWrapper ($content)
 This wraps and returns the main content of the page into proper html-code.
 menu ()
 [Describe function...]
 stepHeader ()
 [Describe function...]
 note123 ()
 [Describe function...]
 endNotes ()
 [Describe function...]
 convertByteSize ($bytes)
 [Describe function...]
 securityRisk ()
 [Describe function...]
 alterPasswordForm ()
 [Describe function...]
 messageBasicFinished ()
 [Describe function...]
 setScriptName ($type)
 [Describe function...]
 formWidth ($size=48, $textarea=0, $styleOverride="")
 [Describe function...]
 formWidthText ($size=48, $styleOverride="", $wrap="")
 [Describe function...]


Function Documentation

alterPasswordForm  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 4605 of file class.tx_install.php.

References $content.

04605                                  {
04606          $content = '<form action="'.$this->scriptSelf.'?TYPO3_INSTALL[type]=extConfig" method="POST">
04607          Enter new password:
04608          <input type="password" name="TYPO3_INSTALL[extConfig][BE][installToolPassword]"><BR>Enter again:
04609          <input type="password" name="installToolPassword_check">
04610          <input type="hidden" name="installToolPassword_md5" value=1>
04611          <input type="submit" value="Set new password"><br>
04612          </form>';
04613          return $content;
04614    }

convertByteSize bytes  ) 
 

[Describe function...]

Parameters:
[type] $bytes: ...
Returns:
[type] ...

Definition at line 4573 of file class.tx_install.php.

Referenced by tx_install::checkConfiguration().

04573                                     {
04574       if (stristr($bytes,"m"))   {
04575          $bytes=doubleval($bytes)*1024*1024;
04576       } elseif (stristr($bytes,"k"))   {
04577          $bytes=doubleval($bytes)*1024;
04578       }
04579       return $bytes;
04580    }

endNotes  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 4554 of file class.tx_install.php.

References fw().

04554                         {
04555       if ($this->mode!="123" && $this->passwordOK) {
04556          $c.="OS detected: <strong>".(TYPO3_OS=="WIN"?"WIN":"UNIX")."</strong><BR>";
04557          $c.="UNIX/CGI detected: <strong>".(php_sapi_name()=="cgi" ? "YES" : "NO")."</strong><BR>";
04558          $c.="PATH_thisScript: <strong>".PATH_thisScript."</strong><BR>";
04559          $c.="<BR>";
04560          $c.="<a href='../index.php' target='install_backend'>Backend admin in new window.</a><BR>";
04561          $c.="<a href='../../index.php' target='install_frontend'>Frontend website in new window.</a><BR>";
04562 
04563          return $this->fw($c);
04564       }
04565    }

formWidth size = 48,
textarea = 0,
styleOverride = ""
 

[Describe function...]

Parameters:
[type] $size: ...
[type] $textarea: ...
[type] $styleOverride: ...
Returns:
[type] ...

Definition at line 4656 of file class.tx_install.php.

04656                                                               {
04657          // Input or text-field attribute (size or cols)
04658       $wAttrib = $textarea?"cols":"size";
04659       if (!$GLOBALS["CLIENT"]["FORMSTYLE"])  {  // If not setting the width by style-attribute
04660          $size = ceil($size*1);
04661          $retVal = ' '.$wAttrib.'="'.$size.'"';
04662       } else { // Setting width by style-attribute. "cols" MUST be avoided with NN6+
04663          $pixels = ceil($size*10);
04664          $retVal = $styleOverride ? ' style="'.$styleOverride.'"' : ' style="width:'.$pixels.'px;"';
04665       }
04666       return $retVal;
04667    }

formWidthText size = 48,
styleOverride = "",
wrap = ""
 

[Describe function...]

Parameters:
[type] $size: ...
[type] $styleOverride: ...
[type] $wrap: ...
Returns:
[type] ...

Definition at line 4677 of file class.tx_install.php.

References formWidth().

04677                                                                {
04678       $wTags = $this->formWidth($size,1,$styleOverride);
04679          // Netscape 6+ seems to have this ODD problem where there WILL ALWAYS be wrapping with the cols-attribute set and NEVER without the col-attribute...
04680       if (strtolower(trim($wrap))!="off" && $GLOBALS["CLIENT"]["BROWSER"]=="net" && $GLOBALS["CLIENT"]["VERSION"]>=5)   {
04681          $wTags.=' cols="'.$size.'"';
04682       }
04683       return $wTags;
04684    }

fw str,
size = 1
 

Wraps the str in a font-tag with verdana 1.

Parameters:
[type] $str: ...
[type] $size: ...
Returns:
[type] ...

Definition at line 4371 of file class.tx_install.php.

04371                               {
04372       if ($GLOBALS["CLIENT"]["SYSTEM"]=="unix" && $GLOBALS["CLIENT"]["BROWSER"]=="konqu") {
04373          return '<font face="sans-serif" size='.($size+2).' color=black>'.$str.'</font>';
04374       }
04375       return '<font face="verdana,sans-serif" size='.$size.' color=black>'.$str.'</font>';
04376    }

fwheader str  ) 
 

Wraps the str in a font-tag with verdana 1.

Parameters:
[type] $str: ...
Returns:
[type] ...

Definition at line 4384 of file class.tx_install.php.

04384                            {
04385       return '<div align=center><strong>'.$this->fw($str,3).'</strong></div>';
04386    }

getItemArrayType arr  ) 
 

Private.

Parameters:
[type] $arr: ...
Returns:
[type] ...

Definition at line 4076 of file class.tx_install.php.

References $out.

Referenced by tx_install::suggestFieldDefinition().

04076                                     {
04077       if (is_array($arr))  {
04078          reset($arr);
04079          $type[]=0;
04080          $intSize[]=0;
04081          while(list(,$item)=each($arr))   {
04082             if (!t3lib_div::testInt($item[1]) && $item[1]!="--div--")   {
04083                $type[]=strlen($item[1]);
04084             } else {
04085                $intSize[]=$item[1];
04086             }
04087          }
04088          $us = min($intSize)>=0 ? " unsigned" : "";
04089          if (max($type)>0) {
04090             $out = "varchar(".max($type).") NOT NULL default ''";
04091          } elseif (max($intSize)>(!$us?127:255))   {
04092             $out = "int(11)".$us." NOT NULL default '0'";
04093          } else {
04094             $out = "tinyint(3)".$us." NOT NULL default '0'";
04095          }
04096       }
04097       return $out;
04098    }

getItemBlobSize len  ) 
 

Private.

Parameters:
[type] $len: ...
Returns:
[type] ...

Definition at line 4106 of file class.tx_install.php.

Referenced by tx_install::suggestFieldDefinition().

04106                                     {
04107       return ($len>255 ? "tiny" : "")."blob NOT NULL";
04108    }

includeTCA  ) 
 

Includes TCA.

Returns:
[type] ...

Definition at line 4260 of file class.tx_install.php.

References PATH_t3lib, PATH_typo3conf, and TYPO3_tables_script.

Referenced by tx_install::checkTheDatabase().

04260                            {
04261       global $TCA;
04262 
04263       include (TYPO3_tables_script ? PATH_typo3conf.TYPO3_tables_script : PATH_t3lib."stddb/tables.php");
04264 
04265          // Extension additions
04266       if ($GLOBALS["TYPO3_LOADED_EXT"]["_CACHEFILE"]) {
04267          include(PATH_typo3conf.$GLOBALS["TYPO3_LOADED_EXT"]["_CACHEFILE"]."_ext_tables.php");
04268       } else {
04269          include(PATH_t3lib."stddb/load_ext_tables.php");
04270       }
04271 
04272       if (TYPO3_extTableDef_script) {
04273          include (PATH_typo3conf.TYPO3_extTableDef_script);
04274       }
04275 
04276       reset($TCA);
04277       while(list($table)=each($TCA))   {
04278          t3lib_div::loadTCA($table);
04279       }
04280    }

linkIt url,
link = ""
 

This creates a link to the given $url.

If $link is set, that'll be the link-text

Parameters:
[type] $url: ...
[type] $link: ...
Returns:
[type] ...

Definition at line 4302 of file class.tx_install.php.

04302                                     {
04303       return '<a href="'.$url.'" target="_blank">'.($link?$link:$url).'</a>';
04304    }

menu  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 4476 of file class.tx_install.php.

References $out, and table().

Referenced by SC_alt_doc::compileForm(), getDynTabMenu(), t3lib_BEfunc::getModuleData(), tx_cms_layout::getTableMenu(), getTabMenuRaw(), tx_funcwizards_webfunc::main(), SC_mod_tools_em_index::main(), SC_alt_topmenu_dummy::main(), SC_alt_menu_sel::main(), SC_alt_menu::main(), localFolderTree::SC_browse_links::main_rte(), t3lib_superadmin::make(), tslib_imgmenu::makeImageMap(), SC_db_layout::menuConfig(), t3lib_SCbase::menuConfig(), tx_funcwizards_webfunc::modMenu(), outputWrapper(), tslib_pibase::pi_list_modeSelector(), tslib_menu::start(), tx_cms_layout::tt_content_drawItem(), and SC_db_new_content_el::wizardArray().

04476                      {
04477       if (!$this->passwordOK) return;
04478 
04479       reset($this->menuitems);
04480       $c=0;
04481       $out=array();
04482       while(list($k,$v)=each($this->menuitems)) {
04483          $bgColor = ($this->INSTALL["type"]==$k ? ' bgColor="#ABBBB4"' : ' bgColor="#F4F0E8"');
04484          $c++;
04485          $out[]='<tr><td'.$bgColor.'><a href="'.$this->scriptSelf.'?TYPO3_INSTALL[type]='.$k.($this->mode?"&mode=".rawurlencode($this->mode):"").'">'.$this->fw($c.': '.$v).'</a></td></tr>';
04486       }
04487 
04488       $code = '<table border=0 cellpadding=0 cellspacing=1>'.implode($out,chr(10)).'</table>';
04489       $code = '<table border=0 cellpadding=0 cellspacing=0 bgColor="#ABBBB4"><tr><td>'.$code.'</td></tr></table>';
04490       return '<div align="center">'.$code.'</div>';
04491    }

message head,
short_string = "",
long_string = "",
type = 0,
force = 0
 

Setting a message in the message-log and sets the fatalError flag if error type is 3.

Definition at line 4309 of file class.tx_install.php.

References printSection().

Referenced by t3lib_htmlmail::add_message(), t3lib_readmail::analyseReturnError(), tx_install::checkConfiguration(), tx_install::checkDirs(), tx_install::checkExtensions(), tx_install::checkImageMagick(), tx_install::checkPassword(), tx_install::checkTheDatabase(), tx_install::checkTheImageProcessing(), tx_install::cleanupManager(), t3lib_dmailer::dmailer_sendAdvanced(), t3lib_dmailer::dmailer_setBeginEnd(), tx_install::generateConfigForm(), tx_cms_layout::getTable_sys_note(), tx_install::getTwinImageMessage(), tx_install::init(), tx_install::isBasicComplete(), tx_install::isExtensionEnabled(), tx_install::phpinformation(), t3lib_htmlmail::setContent(), tslib_fe::tempPageCacheContent(), tx_install::tx_install(), tx_install::typo3conf_edit(), and tx_install::typo3TempManager().

04309                                                                                  {     // type: -1=OK sign, 0=message, 1=notification, 2=warning , 3=error
04310       if (!$force && $this->mode=="123" && $type<2)   {return;}   // Return directly if mode-123 is enabled.
04311 
04312       if ($type==3)  {$this->fatalError=1;}
04313       if ($this->messageFunc_nl2br) {
04314          $long_string = nl2br(trim($long_string));
04315       } else {
04316          $long_string = trim($long_string);
04317       }
04318       if (!$this->silent)  $this->printSection($head, $short_string, $long_string, $type);
04319    }

messageBasicFinished  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 4621 of file class.tx_install.php.

04621                                     {
04622       $msg ="
04623             Apparently you have completed the basic setup of the TYPO3 database.
04624             Now you can choose between these options:
04625 
04626             - <a href='../../index.php'><strong>Go to the frontend pages</strong></a>
04627 
04628             - <a href='../index.php?u=admin&p=password'><strong>Go to the backend login</strong></a>
04629              (username may be: <i>admin</i>, password may be: <i>password</i>.)
04630 
04631             - <a href='".$this->scriptSelf."'><strong>Continue to configure TYPO3</strong></a> (Recommended).
04632              This will let you analyse and verify that everything in your PHP installation is alright. Also if you want to configure TYPO3 to use all the cool features, you <em>must</em> dig into the this!
04633             ";
04634       return $msg;
04635    }

note123  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 4540 of file class.tx_install.php.

References table().

04540                         {
04541       if ($this->mode=="123") {
04542          $c='<table border=0 cellpadding=0 cellspacing=0 width=100%>
04543             <tr><td bgcolor=#D9D5C9 nowrap><img src="../t3lib/gfx/icon_note.gif" width=18 height=16 align=top><strong>'.$this->fontTag1.'NOTICE: Install Tool is running in \'123\' mode. <a href="'.$this->scriptSelf.'">Click here to disable.</a></font></strong></td></tr>
04544          </table>';
04545          return $c;
04546       }
04547    }

outputWrapper content  ) 
 

This wraps and returns the main content of the page into proper html-code.

Parameters:
[type] $content: ...
Returns:
[type] ...

Definition at line 4423 of file class.tx_install.php.

References $out, menu(), stepHeader(), and table().

Referenced by tx_install::checkPassword(), tx_install::checkTheDatabase(), tx_install::checkTheImageProcessing(), tx_install::cleanupManager(), tx_install::init(), tx_install::phpinformation(), tx_install::typo3conf_edit(), and tx_install::typo3TempManager().

04423                                     {
04424       $out='
04425 <html>
04426 
04427 
04428 <STYLE TYPE="text/css">
04429 <!--
04430 A:link {text-decoration: none}
04431 A:visited {text-decoration: none}
04432 A:active {text-decoration: none}
04433 A:hover {color: #000066}
04434 -->
04435 </STYLE>
04436 '.$this->headerStyle.'
04437    <head>
04438       <title>TYPO3 Install Tool</title>
04439       '.($this->JSmessage?'
04440 <script language="javascript" type="text/javascript">alert(unescape(\''.rawurlencode($this->JSmessage).'\'));</script>
04441 
04442       ':'').'
04443    </head>
04444    <body bgcolor="white" alink="maroon" link="maroon" vlink="maroon">'.$this->contentBeforeTable.'
04445       <div align="center">
04446       <table border=0 cellspacing=0 cellpadding=0 width=333 bgcolor="white">
04447       <tr>
04448          <td><img src="'.$this->backPath.'t3lib/gfx/typo3logo.gif" width=333 height=43 vspace=10 hspace=50></td>
04449       </tr>
04450       <tr>
04451          <td bgcolor="black">
04452             <table width="100%" border=0 cellspacing=1 cellpadding=10>
04453                <tr>
04454                   <td bgcolor=#F4F0E8>
04455                   <font face="verdana,sans-serif" size=4 color=black><strong><div align="center">TYPO3 '.$GLOBALS["TYPO_VERSION"].' Install Tool</div></strong></font>
04456                   <font face="verdana,sans-serif" size=2 color=navy><strong><div align="center">Site: '.$GLOBALS["TYPO3_CONF_VARS"]["SYS"]["sitename"].'</div></strong></font><br>
04457 
04458 '.($this->step?$this->stepHeader():$this->menu()).$content.'<HR>'.$this->note123().$this->endNotes().'
04459                   </td>
04460                </tr>
04461             </table>
04462          </td>
04463       </tr>
04464       </table>
04465       </div>
04466    </body>
04467 </html>';
04468       return $out;
04469    }

printAll  ) 
 

This prints all the messages in the ->section array.

Returns:
[type] ...

Definition at line 4404 of file class.tx_install.php.

References $out, header(), and table().

Referenced by tx_install::init().

04404                         {
04405       reset($this->sections);
04406       $out="";
04407       while(list($header,$valArray)=each($this->sections))  {
04408          $out.='
04409          <tr><td>&nbsp;</td></tr>
04410          <tr><td><strong><div align="center">'.$this->fw($header.":",2).'</div></strong></td></tr>
04411          ';
04412          $out.=implode($valArray,chr(10));
04413       }
04414       return '<table border=0 cellpadding=2 cellspacing=2>'.$out.'</table>';
04415    }

printSection head,
short_string,
long_string,
type
 

This "prints" a section with a message to the ->sections array.

Parameters:
[type] $head: ...
[type] $short_string: ...
[type] $long_string: ...
[type] $type: ...
Returns:
[type] ...

Definition at line 4330 of file class.tx_install.php.

Referenced by message().

04330                                                                      {
04331       $icon="";
04332 
04333       $bgCol =' bgcolor=#D9D5C9';
04334       switch($type)  {
04335          case "3":
04336             $bgCol =' bgcolor=red';
04337             $icon = 't3lib/gfx/icon_fatalerror.gif';
04338          break;
04339          case "2":
04340 //          $bgCol =' bgcolor=#9BA1A8';
04341             $icon = 't3lib/gfx/icon_warning.gif';
04342          break;
04343          case "1":
04344 //          $bgCol =' bgcolor=#ABBBB4';
04345             $icon = 't3lib/gfx/icon_note.gif';
04346          break;
04347          case "-1":
04348 //          $bgCol =' bgcolor=yellow';
04349             $icon = 't3lib/gfx/icon_ok.gif';
04350          break;
04351          default:
04352             $bgCol =' bgcolor='.t3lib_div::modifyHTMLcolor("#ABBBB4",+40,+30,+40);
04353          break;
04354       }
04355       if (!trim($short_string))  {
04356          $this->sections[$head][]="";
04357       } else {
04358          $this->sections[$head][]='
04359          <tr><td'.$bgCol.' nowrap>'.($icon?'<img src="'.$this->backPath.$icon.'" width=18 height=16 align=top>':'').'<strong>'.$this->fw($short_string).'</strong></td></tr>'.(trim($long_string)?'
04360          <tr><td>'.$this->fw($long_string).'<BR><BR></td></tr>' : '');
04361       }
04362    }

securityRisk  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 4587 of file class.tx_install.php.

04587                            {
04588       $c="This script is a <strong>great danger to the security of TYPO3</strong> if you don't secure it somehow.
04589          We suggest one of the following:
04590 
04591          - change the password as defined by the md5-hash in TYPO3_CONF_VARS[BE][installToolPassword].
04592          - delete the folder 'typo3/install/' with this script in or just insert an 'exit;' line in the script-file there.
04593          - password protect the 'typo3/install/' folder, eg. with a .htaccess file
04594 
04595          The TYPO3_CONF_VARS[BE][installToolPassword] is always active, but choosing one of the other options will improve security and is recommended highly.
04596       ";
04597       return $c;
04598    }

setScriptName type  ) 
 

[Describe function...]

Parameters:
[type] $type: ...
Returns:
[type] ...

Definition at line 4643 of file class.tx_install.php.

04643                                  {
04644       $value = $this->scriptSelf."?TYPO3_INSTALL[type]=".$type.($this->mode?"&mode=".rawurlencode($this->mode):"").($this->step?"&step=".rawurlencode($this->step):"");
04645       return $value;
04646    }

stepHeader  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 4498 of file class.tx_install.php.

References $out.

Referenced by outputWrapper().

04498                            {
04499       $msg1='Type in your database parameters here:';
04500       $msg2='Database';
04501       $msg3='Import the database sql-file';
04502       $msg4='You\'re done!';
04503       $out='<img src="../t3lib/gfx/123_'.$this->step.'.png" width="402" height="73" border="0" alt="" usemap="#id123_print_Map">
04504 <MAP NAME="id123_print_Map">
04505 <AREA title="'.$msg4.'" SHAPE="poly" ALT="" COORDS="299,35, 303,19, 313,9, 335,5, 366,6, 379,11, 388,21, 392,35, 390,47, 381,58, 376,64, 359,67, 320,66, 307,60, 302,51, 300,44" HREF="'.$this->scriptSelf.'?mode='.$this->mode.'&step=go">
04506 <AREA title="'.$msg3.'" SHAPE="circle" ALT="" COORDS="234,36,32" HREF="'.$this->scriptSelf.'?mode='.$this->mode.'&step=3">
04507 <AREA title="'.$msg2.'" SHAPE="circle" ALT="" COORDS="136,37,30" HREF="'.$this->scriptSelf.'?mode='.$this->mode.'&step=2">
04508 <AREA title="'.$msg1.'" SHAPE="circle" ALT="" COORDS="40,36,29" HREF="'.$this->scriptSelf.'?mode='.$this->mode.'&step=1">
04509 </MAP>
04510 
04511 
04512       <BR>';
04513       $msg="";
04514       switch(strtolower($this->step))  {
04515          case 1:
04516             $msg=$msg1;
04517          break;
04518          case 2:
04519             $msg=$msg2;
04520          break;
04521          case 3:
04522             $msg=$msg3;
04523          break;
04524          case "go":
04525             $msg=$msg4;
04526          break;
04527          default:
04528          break;
04529       }
04530       $out.='<BR><div align="center"><strong>'.$this->fw($msg,2).'</strong></div>';
04531 
04532       return $out;
04533    }

suggestTCAFieldDefinition fieldName,
fieldInfo
 

Should suggest a TCA configuration for a specific field.

Parameters:
[type] $fieldName: ...
[type] $fieldInfo: ...
Returns:
[type] ...

Definition at line 4117 of file class.tx_install.php.

References $out.

Referenced by tx_install::compareDatabaseAndTCA().

04117                                                                {
04118       list($type,$len) = split(" |\(|\)",$fieldInfo,3);
04119       switch($type)  {
04120          case "int":
04121 $out='
04122 "'.$fieldName.'" => Array (
04123    "label" => "'.strtoupper($fieldName).':",
04124    "exclude" => 0,
04125    "config" => Array (
04126       "type" => "input",
04127       "size" => "8",
04128       "max" => "20",
04129       "eval" => "date",
04130       "default" => "0",
04131       "checkbox" => "0"
04132    )
04133 ),
04134 
04135 ----- OR -----
04136 
04137 "'.$fieldName.'" => Array (
04138    "label" => "'.strtoupper($fieldName).':",
04139    "exclude" => 0,
04140    "config" => Array (
04141       "type" => "select",
04142       "items" => Array (
04143          Array("[nothing]", 0),
04144          Array("Extra choice! Only negative values here.", -1),
04145          Array("__Divider:__", "--div--")
04146       ),
04147       "foreign_table" => "[some_table_name]"
04148    )
04149 ),';
04150          break;
04151          case "varchar":
04152             if ($len>10)   {
04153                $out='
04154 "'.$fieldName.'" => Array (
04155    "label" => "'.strtoupper($fieldName).':",
04156    "exclude" => 0,
04157    "config" => Array (
04158       "type" => "input",
04159       "size" => "8",
04160       "max" => "'.$len.'",
04161       "eval" => "trim",
04162       "default" => ""
04163    )
04164 ),';
04165             } else {
04166                $out='
04167 "'.$fieldName.'" => Array (
04168    "label" => "'.strtoupper($fieldName).':",
04169    "exclude" => 0,
04170    "config" => Array (
04171       "type" => "select",
04172       "items" => Array (
04173          Array("Item number 1", "key1"),
04174          Array("Item number 2", "key2"),
04175          Array("-----", "--div--"),
04176          Array("Item number 3", "key3")
04177       ),
04178       "default" => "1"
04179    )
04180 ),';
04181             }
04182          break;
04183          case "tinyint":
04184                $out='
04185 "'.$fieldName.'" => Array (
04186    "label" => "'.strtoupper($fieldName).':",
04187    "exclude" => 0,
04188    "config" => Array (
04189       "type" => "select",
04190       "items" => Array (
04191          Array("Item number 1", "1"),
04192          Array("Item number 2", "2"),
04193          Array("-----", "--div--"),
04194          Array("Item number 3", "3")
04195       ),
04196       "default" => "1"
04197    )
04198 ),
04199 
04200 ----- OR -----
04201 
04202 "'.$fieldName.'" => Array (
04203    "label" => "'.strtoupper($fieldName).':",
04204    "exclude" => 0,
04205    "config" => Array (
04206       "type" => "check",
04207       "default" => "1"
04208    )
04209 ),';
04210          break;
04211          case "tinytext":
04212 $out='
04213 "'.$fieldName.'" => Array (
04214    "label" => "'.strtoupper($fieldName).':",
04215    "exclude" => 0,
04216    "config" => Array (
04217       "type" => "input",
04218       "size" => "40",
04219       "max" => "255",
04220       "eval" => "",
04221       "default" => ""
04222    )
04223 ),';
04224          break;
04225          case "text":
04226          case "mediumtext":
04227 $out='
04228 "'.$fieldName.'" => Array (
04229    "label" => "'.strtoupper($fieldName).':",
04230    "config" => Array (
04231       "type" => "text",
04232       "cols" => "48",
04233       "rows" => "5"
04234    )
04235 ),';
04236          break;
04237          default:
04238             $out='
04239 "'.$fieldName.'" => Array (
04240    "label" => "'.strtoupper($fieldName).':",
04241    "exclude" => 0,
04242    "config" => Array (
04243       "type" => "input",
04244       "size" => "30",
04245       "max" => "",
04246       "eval" => "",
04247       "default" => ""
04248    )
04249 ),';
04250          break;
04251       }
04252       return $out?$out:$fieldInfo;
04253    }

wrapInCells label,
content
 

Wrapping labal/content in a table-row.

Parameters:
[type] $label: ...
[type] $content: ...
Returns:
[type] ...

Definition at line 4395 of file class.tx_install.php.

04395                                           {
04396       return '<tr><td valign=top nowrap><strong>'.$this->fw($label).'</strong></td><td>&nbsp;</td><td valign=top>'.$this->fw($content).'<BR></td></tr>';
04397    }


Generated on Sun Oct 3 01:06:18 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913