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

t3lib_tsStyleConfig Class Reference

List of all members.

Public Member Functions

 ext_initTSstyleConfig ($configTemplate, $pathRel, $pathAbs, $backPath)
 ext_setValueArray ($theConstants, $valueArray)
 [Describe function...]
 ext_getCategoriesForModMenu ()
 [Describe function...]
 ext_makeHelpInformationForCategory ($cat)
 [Describe function...]
 ext_getForm ($cat, $theConstants, $script="", $addFields="")
 [Describe function...]
 ext_displayExample ()
 [Describe function...]

Public Attributes

 $categories = array()
 $ext_dontCheckIssetValues = 1
 $ext_CEformName = "tsStyleConfigForm"
 $ext_noCEUploadAndCopying = 1
 $ext_printAll = 1
 $ext_defaultOnlineResourceFlag = 1
 $ext_incomingValues = array()

Member Function Documentation

t3lib_tsStyleConfig::ext_displayExample  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 197 of file class.t3lib_tsstyleconfig.php.

References $out.

Referenced by ext_getForm().

t3lib_tsStyleConfig::ext_getCategoriesForModMenu  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 145 of file class.t3lib_tsstyleconfig.php.

00145                                           {
00146       return $this->ext_getCategoryLabelArray();
00147    }

t3lib_tsStyleConfig::ext_getForm cat,
theConstants,
script = "",
addFields = ""
 

[Describe function...]

Parameters:
[type] $cat: ...
[type] $theConstants: ...
[type] $script: ...
[type] $addFields: ...
Returns:
[type] ...

Definition at line 168 of file class.t3lib_tsstyleconfig.php.

References $content, ext_displayExample(), and ext_makeHelpInformationForCategory().

00168                                                                      {
00169       $this->ext_makeHelpInformationForCategory($cat);
00170       $printFields = trim($this->ext_printFields($theConstants,$cat));
00171 
00172       $content='';
00173       $content.='
00174       <script language="javascript" type="text/javascript">
00175          function uFormUrl(aname)   {
00176             document.'.$this->ext_CEformName.'.action = "'.t3lib_div::linkThisScript().'#"+aname;
00177          }
00178       </script>
00179       ';
00180       $content.= '<form action="'.($script?$script:t3lib_div::linkThisScript()).'" name="'.$this->ext_CEformName.'" method="POST" enctype="'.$GLOBALS["TYPO3_CONF_VARS"]["SYS"]["form_enctype"].'">';
00181       $content.= $addFields;
00182 #     $content.= '<input type="Submit" name="submit" value="Update"><BR>';
00183       $content.= $printFields;
00184       $content.= '<input type="Submit" name="submit" value="Update">';
00185 
00186       $example = $this->ext_displayExample();
00187       $content.= $example?'<HR>'.$example:"";
00188 
00189       return $content;
00190    }

t3lib_tsStyleConfig::ext_initTSstyleConfig configTemplate,
pathRel,
pathAbs,
backPath
 

Parameters:
string pathRel is the path relative to the typo3/ directory
string pathAbs is the absolute path from root
string backPath is the backReference from current position to typo3/ dir
[type] $backPath: ...
Returns:
[type] ...

Definition at line 98 of file class.t3lib_tsstyleconfig.php.

00098                                                                                  {
00099       $this->tt_track = 0; // Do not log time-performance information
00100       $this->constants=array($configTemplate,"");
00101 
00102       $theConstants = $this->generateConfig_constants(); // The editable constants are returned in an array.
00103 
00104       $this->ext_localGfxPrefix=$pathAbs;
00105       $this->ext_localWebGfxPrefix=$backPath.$pathRel;
00106       $this->ext_backPath = $backPath;
00107 
00108       return $theConstants;
00109    }

t3lib_tsStyleConfig::ext_makeHelpInformationForCategory cat  ) 
 

[Describe function...]

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

Definition at line 155 of file class.t3lib_tsstyleconfig.php.

Referenced by ext_getForm().

00155                                                       {
00156       return $this->ext_getTSCE_config($cat);
00157    }

t3lib_tsStyleConfig::ext_setValueArray theConstants,
valueArray
 

[Describe function...]

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

Definition at line 118 of file class.t3lib_tsstyleconfig.php.

00118                                                          {
00119 
00120       $temp = $this->flatSetup;
00121       $this->flatSetup = Array();
00122       $this->flattenSetup($valueArray,"","");
00123       $this->objReg = $this->ext_realValues = $this->flatSetup;
00124       $this->flatSetup = $temp;
00125 
00126 
00127       reset($theConstants);
00128       while(list($k,$p)=each($theConstants)) {
00129          if (isset($this->objReg[$k])) {
00130             $theConstants[$k]["value"] = $this->ext_realValues[$k];
00131          }
00132       }
00133 
00134       $this->categories=array(); // Reset the default pool of categories.
00135       $this->ext_categorizeEditableConstants($theConstants);   // The returned constants are sorted in categories, that goes into the $this->categories array
00136 
00137       return $theConstants;
00138    }


Member Data Documentation

t3lib_tsStyleConfig::$categories = array()
 

Definition at line 81 of file class.t3lib_tsstyleconfig.php.

t3lib_tsStyleConfig::$ext_CEformName = "tsStyleConfigForm"
 

Definition at line 83 of file class.t3lib_tsstyleconfig.php.

t3lib_tsStyleConfig::$ext_defaultOnlineResourceFlag = 1
 

Definition at line 86 of file class.t3lib_tsstyleconfig.php.

t3lib_tsStyleConfig::$ext_dontCheckIssetValues = 1
 

Definition at line 82 of file class.t3lib_tsstyleconfig.php.

t3lib_tsStyleConfig::$ext_incomingValues = array()
 

Definition at line 88 of file class.t3lib_tsstyleconfig.php.

t3lib_tsStyleConfig::$ext_noCEUploadAndCopying = 1
 

Definition at line 84 of file class.t3lib_tsstyleconfig.php.

t3lib_tsStyleConfig::$ext_printAll = 1
 

Definition at line 85 of file class.t3lib_tsstyleconfig.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:07:29 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913