Solutions Open Source

Référence de la classe t3lib_admin

Liste de tous les membres

Fonctions membres publiques

 genTree ($theID, $depthData, $versions=FALSE)
 genTree_records ($theID, $depthData, $table='', $versions=FALSE)
 genTreeStatus ($root=0)
 lostRecords ($pid_list)
 fixLostRecord ($table, $uid)
 countRecords ($pid_list)
 getGroupFields ($mode)
 getFileFields ($uploadfolder)
 getDBFields ($theSearchTable)
 selectNonEmptyRecordsWithFkeys ($fkey_arrays)
 testFileRefs ()
 testDBRefs ($theArray)
 whereIsRecordReferenced ($searchTable, $id)
 whereIsFileReferenced ($uploadfolder, $filename)

Attributs publics

 $genTree_includeDeleted = TRUE
 $genTree_includeVersions = TRUE
 $genTree_includeRecords = FALSE
 $perms_clause = ''
 $genTree_makeHTML = 0
 $page_idArray = Array()
 $rec_idArray = Array()
 $getTree_HTML = ''
 $backPath = ''
 $checkFileRefs = Array()
 $checkSelectDBRefs = Array()
 $checkGroupDBRefs = Array()
 $recStats
 $lRecords = Array()
 $lostPagesList = ''


Documentation des fonctions membres

t3lib_admin::genTree ( theID,
depthData,
versions = FALSE 
)

Generates a list of Page-uid's that corresponds to the tables in the tree. This list should ideally include all records in the pages-table.

Paramètres:
integer a pid (page-record id) from which to start making the tree
string HTML-code (image-tags) used when this function calls itself recursively.
boolean Internal variable, don't set from outside!
Renvoie:
void

t3lib_admin::genTree_records ( theID,
depthData,
table = '',
versions = FALSE 
)

Paramètres:
[type] $theID: ...
[type] $depthData: ...
[type] $table: ...
[type] $versions: ...
Renvoie:
[type] ...

t3lib_admin::genTreeStatus ( root = 0  ) 

[Describe function...]

Renvoie:
[type] ...

t3lib_admin::lostRecords ( pid_list  ) 

Fills $this->lRecords with the records from all tc-tables that are not attached to a PID in the pid-list.

Paramètres:
string list of pid's (page-record uid's). This list is probably made by genTree()
Renvoie:
void

t3lib_admin::fixLostRecord ( table,
uid 
)

Fixes lost record from $table with uid $uid by setting the PID to zero. If there is a disabled column for the record that will be set as well.

Paramètres:
string Database tablename
integer The uid of the record which will have the PID value set to 0 (zero)
Renvoie:
boolean True if done.

t3lib_admin::countRecords ( pid_list  ) 

Counts records from $TCA-tables that ARE attached to an existing page.

Paramètres:
string list of pid's (page-record uid's). This list is probably made by genTree()
Renvoie:
array an array with the number of records from all $TCA-tables that are attached to a PID in the pid-list.

t3lib_admin::getGroupFields ( mode  ) 

Finding relations in database based on type 'group' (files or database-uid's in a list)

Paramètres:
string $mode = file, $mode = db, $mode = '' (all...)
Renvoie:
array An array with all fields listed that somehow are references to other records (foreign-keys) or files

t3lib_admin::getFileFields ( uploadfolder  ) 

Finds all fields that hold filenames from uploadfolder

Paramètres:
string Path to uploadfolder
Renvoie:
array An array with all fields listed that have references to files in the $uploadfolder

t3lib_admin::getDBFields ( theSearchTable  ) 

Returns an array with arrays of table/field pairs which are allowed to hold references to the input table name - according to $TCA

Paramètres:
string Table name
Renvoie:
array

t3lib_admin::selectNonEmptyRecordsWithFkeys ( fkey_arrays  ) 

This selects non-empty-records from the tables/fields in the fkey_array generated by getGroupFields()

Paramètres:
array Array with tables/fields generated by getGroupFields()
Renvoie:
void
Voir également:
getGroupFields()

t3lib_admin::testFileRefs (  ) 

Depends on selectNonEmpty.... to be executed first!!

Renvoie:
array Report over files; keys are "moreReferences", "noReferences", "noFile", "error"

t3lib_admin::testDBRefs ( theArray  ) 

Depends on selectNonEmpty.... to be executed first!!

Paramètres:
array Table with key/value pairs being table names and arrays with uid numbers
Renvoie:
string HTML Error message

t3lib_admin::whereIsRecordReferenced ( searchTable,
id 
)

Finding all references to record based on table/uid

Paramètres:
string Table name
integer Uid of database record
Renvoie:
array Array with other arrays containing information about where references was found

t3lib_admin::whereIsFileReferenced ( uploadfolder,
filename 
)

Finding all references to file based on uploadfolder / filename

Paramètres:
string Upload folder where file is found
string Filename to search for
Renvoie:
array Array with other arrays containing information about where references was found


Documentation des données membres

t3lib_admin::$genTree_includeDeleted = TRUE

t3lib_admin::$genTree_includeVersions = TRUE

t3lib_admin::$genTree_includeRecords = FALSE

t3lib_admin::$perms_clause = ''

t3lib_admin::$genTree_makeHTML = 0

t3lib_admin::$page_idArray = Array()

t3lib_admin::$rec_idArray = Array()

t3lib_admin::$getTree_HTML = ''

t3lib_admin::$backPath = ''

t3lib_admin::$checkFileRefs = Array()

t3lib_admin::$checkSelectDBRefs = Array()

t3lib_admin::$checkGroupDBRefs = Array()

t3lib_admin::$recStats

Valeur initiale :

 Array(
                'allValid' => array(),
                'published_versions' => array(),
                'deleted' => array(),
        )

t3lib_admin::$lRecords = Array()

t3lib_admin::$lostPagesList = ''


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:41:57 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3