t3lib_admin Class Reference

List of all members.

Public Member Functions

 genTree ($theID, $depthData)
 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)
 genTree ($theID, $depthData)
 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)

Public Attributes

 $genTree_includeDeleted = 1
 $perms_clause = ''
 $genTree_makeHTML = 0
 $genTree_idlist = ''
 $getTree_HTML = ''
 $backPath = ''
 $checkFileRefs = Array()
 $checkSelectDBRefs = Array()
 $checkGroupDBRefs = Array()
 $page_idArray = Array()
 $recStat = Array()
 $lRecords = Array()
 $lostPagesList = ''

Detailed Description

Definition at line 90 of file class.t3lib_admin.php.


Member Function Documentation

t3lib_admin::countRecords pid_list  ) 
 

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

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

Definition at line 208 of file class.t3lib_admin.php.

t3lib_admin::countRecords pid_list  ) 
 

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

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

Definition at line 208 of file class.t3lib_admin.php.

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.

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

Definition at line 187 of file class.t3lib_admin.php.

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.

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

Definition at line 187 of file class.t3lib_admin.php.

t3lib_admin::genTree theID,
depthData
 

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.

Parameters:
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.
Returns:
integer Number of $GLOBALS['TYPO3_DB']->sql_num_rows (most recent query)

Definition at line 116 of file class.t3lib_admin.php.

References $GLOBALS, $res, $row, t3lib_div::fixed_lgd_cs(), genTree(), height, img, t3lib_extMgm::isLoaded(), and pages.

t3lib_admin::genTree theID,
depthData
 

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.

Parameters:
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.
Returns:
integer Number of $GLOBALS['TYPO3_DB']->sql_num_rows (most recent query)

Definition at line 116 of file class.t3lib_admin.php.

References $GLOBALS, $res, $row, t3lib_div::fixed_lgd_cs(), height, img, t3lib_extMgm::isLoaded(), and pages.

Referenced by genTree().

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

Parameters:
string Table name
Returns:
array

Definition at line 293 of file class.t3lib_admin.php.

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

Parameters:
string Table name
Returns:
array

Definition at line 293 of file class.t3lib_admin.php.

t3lib_admin::getFileFields uploadfolder  ) 
 

Finds all fields that hold filenames from uploadfolder

Parameters:
string Path to uploadfolder
Returns:
array An array with all fields listed that have references to files in the $uploadfolder

Definition at line 270 of file class.t3lib_admin.php.

t3lib_admin::getFileFields uploadfolder  ) 
 

Finds all fields that hold filenames from uploadfolder

Parameters:
string Path to uploadfolder
Returns:
array An array with all fields listed that have references to files in the $uploadfolder

Definition at line 270 of file class.t3lib_admin.php.

t3lib_admin::getGroupFields mode  ) 
 

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

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

Definition at line 236 of file class.t3lib_admin.php.

t3lib_admin::getGroupFields mode  ) 
 

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

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

Definition at line 236 of file class.t3lib_admin.php.

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.

Parameters:
string list of pid's (page-record uid's). This list is probably made by genTree()
Returns:
void

Definition at line 156 of file class.t3lib_admin.php.

References $GLOBALS, $TCA, t3lib_div::loadTCA(), pages, and table.

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.

Parameters:
string list of pid's (page-record uid's). This list is probably made by genTree()
Returns:
void

Definition at line 156 of file class.t3lib_admin.php.

References $GLOBALS, $TCA, t3lib_div::loadTCA(), pages, and table.

t3lib_admin::selectNonEmptyRecordsWithFkeys fkey_arrays  ) 
 

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

Parameters:
array Array with tables/fields generated by getGroupFields()
Returns:
void
See also:
getGroupFields()

Definition at line 321 of file class.t3lib_admin.php.

t3lib_admin::selectNonEmptyRecordsWithFkeys fkey_arrays  ) 
 

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

Parameters:
array Array with tables/fields generated by getGroupFields()
Returns:
void
See also:
getGroupFields()

Definition at line 321 of file class.t3lib_admin.php.

t3lib_admin::testDBRefs theArray  ) 
 

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

Parameters:
array Table with key/value pairs being table names and arrays with uid numbers
Returns:
string HTML Error message

Definition at line 461 of file class.t3lib_admin.php.

References $GLOBALS, $result, a, and t3lib_BEfunc::deleteClause().

t3lib_admin::testDBRefs theArray  ) 
 

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

Parameters:
array Table with key/value pairs being table names and arrays with uid numbers
Returns:
string HTML Error message

Definition at line 461 of file class.t3lib_admin.php.

References $GLOBALS, $result, a, and t3lib_BEfunc::deleteClause().

t3lib_admin::testFileRefs  ) 
 

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

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

Definition at line 410 of file class.t3lib_admin.php.

References index.

t3lib_admin::testFileRefs  ) 
 

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

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

Definition at line 410 of file class.t3lib_admin.php.

References index.

t3lib_admin::whereIsFileReferenced uploadfolder,
filename
 

Finding all references to file based on uploadfolder / filename

Parameters:
string Upload folder where file is found
string Filename to search for
Returns:
array Array with other arrays containing information about where references was found

Definition at line 536 of file class.t3lib_admin.php.

References $field, $file, $GLOBALS, and $table.

t3lib_admin::whereIsFileReferenced uploadfolder,
filename
 

Finding all references to file based on uploadfolder / filename

Parameters:
string Upload folder where file is found
string Filename to search for
Returns:
array Array with other arrays containing information about where references was found

Definition at line 536 of file class.t3lib_admin.php.

References $field, $file, $GLOBALS, and $table.

t3lib_admin::whereIsRecordReferenced searchTable,
id
 

Finding all references to record based on table/uid

Parameters:
string Table name
integer Uid of database record
Returns:
array Array with other arrays containing information about where references was found

Definition at line 499 of file class.t3lib_admin.php.

References $field, $GLOBALS, $table, t3lib_div::loadTCA(), and t3lib_div::makeInstance().

t3lib_admin::whereIsRecordReferenced searchTable,
id
 

Finding all references to record based on table/uid

Parameters:
string Table name
integer Uid of database record
Returns:
array Array with other arrays containing information about where references was found

Definition at line 499 of file class.t3lib_admin.php.

References $field, $GLOBALS, $table, t3lib_div::loadTCA(), and t3lib_div::makeInstance().


Member Data Documentation

t3lib_admin::$backPath = ''
 

Definition at line 97 of file class.t3lib_admin.php.

t3lib_admin::$checkFileRefs = Array()
 

Definition at line 100 of file class.t3lib_admin.php.

t3lib_admin::$checkGroupDBRefs = Array()
 

Definition at line 102 of file class.t3lib_admin.php.

t3lib_admin::$checkSelectDBRefs = Array()
 

Definition at line 101 of file class.t3lib_admin.php.

t3lib_admin::$genTree_idlist = ''
 

Definition at line 95 of file class.t3lib_admin.php.

t3lib_admin::$genTree_includeDeleted = 1
 

Definition at line 91 of file class.t3lib_admin.php.

t3lib_admin::$genTree_makeHTML = 0
 

Definition at line 93 of file class.t3lib_admin.php.

t3lib_admin::$getTree_HTML = ''
 

Definition at line 96 of file class.t3lib_admin.php.

t3lib_admin::$lostPagesList = ''
 

Definition at line 107 of file class.t3lib_admin.php.

t3lib_admin::$lRecords = Array()
 

Definition at line 106 of file class.t3lib_admin.php.

t3lib_admin::$page_idArray = Array()
 

Definition at line 104 of file class.t3lib_admin.php.

t3lib_admin::$perms_clause = ''
 

Definition at line 92 of file class.t3lib_admin.php.

t3lib_admin::$recStat = Array()
 

Definition at line 105 of file class.t3lib_admin.php.


The documentation for this class was generated from the following files:
Generated on Wed Aug 10 07:57:25 2005 for TYPO3 3.8.0 by  doxygen 1.4.3-20050530