SC_db_new Class Reference

List of all members.

Public Member Functions

 init ()
 main ()
 pagesOnly ()
 regularNew ()
 printContent ()
 linkWrap ($code, $table, $pid, $addContentTable=0)
 isTableAllowedForThisPage ($pid_row, $checkTable)
 showNewRecLink ($table, $allowedNewTables=')

Public Attributes

 $pageinfo
 $pidInfo
 $newPagesInto
 $newContentInto
 $newPagesAfter
 $web_list_modTSconfig
 $allowedNewTables
 $web_list_modTSconfig_pid
 $allowedNewTables_pid
 $code
 $R_URI
 $id
 $returnUrl
 $pagesOnly
 $perms_clause
 $doc
 $content

Detailed Description

Definition at line 128 of file db_new.php.


Member Function Documentation

SC_db_new::init  ) 
 

Constructor function for the class

Returns:
void

Definition at line 157 of file db_new.php.

References $BACK_PATH, $LANG, t3lib_div::_GP(), t3lib_BEfunc::getRecord(), t3lib_div::makeInstance(), pages, pagesOnly(), and t3lib_BEfunc::readPageAccess().

SC_db_new::isTableAllowedForThisPage pid_row,
checkTable
 

Returns true if the tablename $checkTable is allowed to be created on the page with record $pid_row

Parameters:
array Record for parent page.
string Table name to check
Returns:
boolean Returns true if the tablename $checkTable is allowed to be created on the page with record $pid_row

Definition at line 476 of file db_new.php.

References $PAGES_TYPES, $TCA, and t3lib_div::inList().

Referenced by regularNew().

SC_db_new::linkWrap code,
table,
pid,
addContentTable = 0
 

Links the string $code to a create-new form for a record in $table created on page $pid

Parameters:
string Link string
string Table name (in which to create new record)
integer PID value for the "&edit['.$table.']['.$pid.']=new" command (positive/negative)
boolean If $addContentTable is set, then a new contentTable record is created together with pages
Returns:
string The link.

Definition at line 456 of file db_new.php.

References $GLOBALS, $table, a, t3lib_BEfunc::editOnClick(), onclick, and pages.

Referenced by regularNew().

SC_db_new::main  ) 
 

Main processing, creating the list of new record tables to select from

Returns:
void

Definition at line 217 of file db_new.php.

References $LANG, a, t3lib_BEfunc::getModTSconfig(), height, img, pages, pagesOnly(), regularNew(), and t3lib_div::trimExplode().

SC_db_new::pagesOnly  ) 
 

Creates the position map for pages wizard

Returns:
void

Definition at line 269 of file db_new.php.

References $LANG, t3lib_BEfunc::cshItem(), and t3lib_div::makeInstance().

Referenced by init(), and main().

SC_db_new::printContent  ) 
 

Ending page output and echo'ing content to browser.

Returns:
void

Definition at line 442 of file db_new.php.

SC_db_new::regularNew  ) 
 

Create a regular new element (pages and records)

Returns:
void

Definition at line 287 of file db_new.php.

References $BACK_PATH, $LANG, $TCA, a, t3lib_BEfunc::cshItem(), t3lib_extMgm::extRelPath(), t3lib_iconWorks::getIconImage(), height, img, t3lib_extMgm::isLoaded(), isTableAllowedForThisPage(), linkWrap(), nowrap, pages, t3lib_iconWorks::skinImg(), table, and td.

Referenced by main().

SC_db_new::showNewRecLink table,
allowedNewTables = '
 

Returns true if the $table tablename is found in $allowedNewTables (or if $allowedNewTables is empty)

Parameters:
string Table name to test if in allowedTables
array Array of new tables that are allowed.
Returns:
boolean Returns true if the $table tablename is found in $allowedNewTables (or if $allowedNewTables is empty)

Definition at line 506 of file db_new.php.

References $allowedNewTables, and table.


Member Data Documentation

SC_db_new::$allowedNewTables
 

Definition at line 135 of file db_new.php.

Referenced by showNewRecLink().

SC_db_new::$allowedNewTables_pid
 

Definition at line 137 of file db_new.php.

SC_db_new::$code
 

Definition at line 138 of file db_new.php.

SC_db_new::$content
 

Definition at line 149 of file db_new.php.

SC_db_new::$doc
 

Definition at line 148 of file db_new.php.

SC_db_new::$id
 

Definition at line 142 of file db_new.php.

SC_db_new::$newContentInto
 

Definition at line 132 of file db_new.php.

SC_db_new::$newPagesAfter
 

Definition at line 133 of file db_new.php.

SC_db_new::$newPagesInto
 

Definition at line 131 of file db_new.php.

SC_db_new::$pageinfo
 

Definition at line 129 of file db_new.php.

SC_db_new::$pagesOnly
 

Definition at line 144 of file db_new.php.

SC_db_new::$perms_clause
 

Definition at line 147 of file db_new.php.

SC_db_new::$pidInfo
 

Definition at line 130 of file db_new.php.

SC_db_new::$R_URI
 

Definition at line 139 of file db_new.php.

SC_db_new::$returnUrl
 

Definition at line 143 of file db_new.php.

SC_db_new::$web_list_modTSconfig
 

Definition at line 134 of file db_new.php.

SC_db_new::$web_list_modTSconfig_pid
 

Definition at line 136 of file db_new.php.


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