Documentation TYPO3 par Ameos

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 t3lib_div::_GP(), t3lib_BEfunc::getRecord(), t3lib_div::makeInstance(), pagesOnly(), and t3lib_BEfunc::readPageAccess().

SC_db_new::main (  ) 

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

Returns:
void

Definition at line 224 of file db_new.php.

References t3lib_BEfunc::getModTSconfig(), pagesOnly(), regularNew(), showNewRecLink(), and t3lib_div::trimExplode().

SC_db_new::pagesOnly (  ) 

Creates the position map for pages wizard

Returns:
void

Definition at line 276 of file db_new.php.

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

Referenced by init(), and main().

SC_db_new::regularNew (  ) 

Create a regular new element (pages and records)

Returns:
void

Definition at line 294 of file db_new.php.

References t3lib_BEfunc::cshItem(), t3lib_extMgm::extRelPath(), t3lib_iconWorks::getIconImage(), t3lib_div::getIndpEnv(), t3lib_extMgm::isLoaded(), isTableAllowedForThisPage(), linkWrap(), showNewRecLink(), and t3lib_iconWorks::skinImg().

Referenced by main().

SC_db_new::printContent (  ) 

Ending page output and echo'ing content to browser.

Returns:
void

Definition at line 458 of file db_new.php.

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 473 of file db_new.php.

References t3lib_BEfunc::editOnClick().

Referenced by regularNew().

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 493 of file db_new.php.

References t3lib_div::inList().

Referenced by regularNew().

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 523 of file db_new.php.

References $allowedNewTables.

Referenced by main(), and regularNew().


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


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6