Documentation TYPO3 par Ameos |
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 | |
Definition at line 128 of file db_new.php.
| SC_db_new::init | ( | ) |
Constructor function for the class
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
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
Definition at line 276 of file db_new.php.
References t3lib_BEfunc::cshItem(), and t3lib_div::makeInstance().
| SC_db_new::regularNew | ( | ) |
Create a regular new element (pages and records)
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.
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
| 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 |
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
| array | Record for parent page. | |
| string | Table name to check |
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)
| string | Table name to test if in allowedTables | |
| array | Array of new tables that are allowed. |
Definition at line 523 of file db_new.php.
References $allowedNewTables.
Referenced by main(), and regularNew().
1.4.6