Documentation TYPO3 par Ameos

SC_mod_tools_log_index Class Reference

Inheritance diagram for SC_mod_tools_log_index:

Inheritance graph
[legend]
Collaboration diagram for SC_mod_tools_log_index:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 init ()
 menuConfig ()
 main ()
 printContent ()
 main ()
 printContent ()
 exportData ($inData)
 exec_listQueryPid ($table, $pid)
 makeConfigurationForm ($inData)
 importData ($inData)
 tableSelector ($prefix, $value, $excludeList='')
 renderSelectBox ($prefix, $value, $optValues)
 userTempFolder ()

Public Attributes

 $MCONF = array()
 $MOD_MENU = array()
 $MOD_SETTINGS = array()
 $doc
 $content
 $lF
 $be_user_Array
 $pageinfo

Detailed Description

Definition at line 52 of file index.php.


Member Function Documentation

SC_mod_tools_log_index::exec_listQueryPid table,
pid
 

[Describe function...]

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

Definition at line 536 of file index.php.

References t3lib_BEfunc::deleteClause().

Referenced by exportData().

SC_mod_tools_log_index::exportData inData  ) 
 

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

Definition at line 383 of file index.php.

References exec_listQueryPid(), t3lib_BEfunc::getRecord(), t3lib_div::makeInstance(), and t3lib_div::trimExplode().

Referenced by main().

SC_mod_tools_log_index::importData inData  ) 
 

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

Definition at line 641 of file index.php.

References t3lib_div::getFileAbsFileName(), t3lib_div::getFilesInDir(), t3lib_BEfunc::getSetUpdateSignal(), t3lib_div::makeInstance(), and t3lib_BEfunc::readPageAccess().

Referenced by main().

SC_mod_tools_log_index::init  ) 
 

Initializes the backend module by setting internal variables, initializing the menu.

Returns:
void
See also:
menuConfig()

Reimplemented from t3lib_SCbase.

Definition at line 62 of file index.php.

References t3lib_BEfunc::getUserNames(), t3lib_div::makeInstance(), and menuConfig().

SC_mod_tools_log_index::main  ) 
 

Returns:
[type] ...
IMPORTING DATA:

Incoming array has syntax: GETvar 'id' = import page id (must be readable)

file = (pointing to filename relative to PATH_site)

[all relation fields are clear, but not files]

  • page-tree is written first
  • then remaining pages (to the root of import)
  • then all other records are written either to related included pages or if not found to import-root (should be a sysFolder in most cases)
  • then all internal relations are set and non-existing relations removed, relations to static tables preserved.

EXPORTING DATA:

Incoming array has syntax:

record[]=table:uid,,,,

FUTURE: list[]=table,,,,:pid,,,

pagetree[id] = (single id) pagetree[levels]=1,2,3, -1=currently unpacked tree. pagetree[tables][]=table/_ALL

external_ref[tables][]=table/_ALL

EXAMPLE for using the impexp-class for exporting stuff:

Create and initialize: $this->export = t3lib_div::makeInstance('tx_impexp'); $this->export->init(); Set which tables relations we will allow: $this->export->relExclTables[]='tt_news'; // excludes $this->export->relOnlyTables[]="tt_news"; // exclusively includes. See comment in the class

Adding records: $this->export->export_addRecord("pages",$this->pageinfo); $this->export->export_addRecord("pages",t3lib_BEfunc::getRecord("pages",38)); $this->export->export_addRecord("pages",t3lib_BEfunc::getRecord("pages",39)); $this->export->export_addRecord("tt_content",t3lib_BEfunc::getRecord("tt_content",12)); $this->export->export_addRecord("tt_content",t3lib_BEfunc::getRecord("tt_content",74)); $this->export->export_addRecord("sys_template",t3lib_BEfunc::getRecord("sys_template",20));

Adding all the relations (recursively so relations has THEIR relations registered as well) for($a=0;$a<5;$a++) { $addR = $this->export->export_addDBRelations($a); if (!count($addR)) break; # debug("ADDED: ".count($addR),1); }

Finally load all the files. $this->export->export_addFilesFromRelations(); // MUST be after the DBrelations are set so that file from ALL added records are included!

Not the internal DAT array is ready to export: debug($this->export->dat);

Write export $out = $this->export->compileMemoryToFileContent(); t3lib_div::writeFile(PATH_site."fileadmin/relations.trd",$out); debug(strlen($out));

Definition at line 234 of file index.php.

References t3lib_div::_GP(), t3lib_SCbase::checkExtObj(), exportData(), importData(), and t3lib_div::makeInstance().

SC_mod_tools_log_index::makeConfigurationForm inData  ) 
 

[Describe function...]

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

Definition at line 548 of file index.php.

References t3lib_BEfunc::getRecord(), and t3lib_div::trimExplode().

SC_mod_tools_log_index::menuConfig  ) 
 

Initializes the internal MOD_MENU array setting and unsetting items based on various conditions. It also merges in external menu items from the global array TBE_MODULES_EXT (see mergeExternalItems()) Then MOD_SETTINGS array is cleaned up (see t3lib_BEfunc::getModuleData()) so it contains only valid values. It's also updated with any SET[] values submitted. Also loads the modTSconfig internal variable.

Returns:
void
See also:
init(), $MOD_MENU, $MOD_SETTINGS, t3lib_BEfunc::getModuleData(), mergeExternalItems()

Reimplemented from t3lib_SCbase.

Definition at line 95 of file index.php.

References t3lib_div::_GP(), t3lib_BEfunc::getGroupNames(), and t3lib_BEfunc::getModuleData().

Referenced by init().

SC_mod_tools_log_index::printContent  ) 
 

[Describe function...]

Returns:
[type] ...

Definition at line 363 of file index.php.

SC_mod_tools_log_index::renderSelectBox prefix,
value,
optValues
 

Makes a selector-box from optValues

Parameters:
[type] $prefix: ...
[type] $value: ...
[type] $optValues: ...
Returns:
[type] ...

Definition at line 808 of file index.php.

SC_mod_tools_log_index::tableSelector prefix,
value,
excludeList = ''
 

Returns a selector-box with tables

Parameters:
[type] $prefix: ...
[type] $value: ...
[type] $excludeList: ...
Returns:
[type] ...

Definition at line 775 of file index.php.

References t3lib_div::inList().

SC_mod_tools_log_index::userTempFolder  ) 
 

Returns first temporary folder of the user account (from $FILEMOUNTS)

Returns:
string Absolute path to first "_temp_" folder of the current user, otherwise blank.

Definition at line 829 of file index.php.


Member Data Documentation

SC_mod_tools_log_index::$content
 

Generally used for accumulating the output content of backend modules

Reimplemented from t3lib_SCbase.

Definition at line 58 of file index.php.

SC_mod_tools_log_index::$doc
 

Generally used to hold an instance of the 'template' class from typo3/template.php

Reimplemented from t3lib_SCbase.

Definition at line 56 of file index.php.

SC_mod_tools_log_index::$MCONF = array()
 

Loaded with the global array $MCONF which holds some module configuration from the conf.php file of backend modules.

See also:
init()

Reimplemented from t3lib_SCbase.

Definition at line 53 of file index.php.

SC_mod_tools_log_index::$MOD_MENU = array()
 

The module menu items array. Each key represents a key for which values can range between the items in the array of that key.

See also:
init()

Reimplemented from t3lib_SCbase.

Definition at line 54 of file index.php.

SC_mod_tools_log_index::$MOD_SETTINGS = array()
 

Current settings for the keys of the MOD_MENU array

See also:
$MOD_MENU

Reimplemented from t3lib_SCbase.

Definition at line 55 of file index.php.


The documentation for this class was generated from the following files:


Généré par TYPO3 Ameos avec  doxygen 1.4.6