Public Member Functions | |
| init () | |
| main () | |
| pagesOnly () | |
| regularNew () | |
| printContent () | |
| linkWrap ($code, $table, $pid, $addContentTable=0) | |
| isTableAllowedForThisPage ($pid_row, $checkTable) | |
| showNewRecLink ($table, array $allowedNewTables=array(), array $deniedNewTables=array()) | |
Public Attributes | |
| $pageinfo | |
| $pidInfo | |
| $newPagesInto | |
| $newContentInto | |
| $newPagesAfter | |
| $web_list_modTSconfig | |
| $allowedNewTables | |
| $deniedNewTables | |
| $web_list_modTSconfig_pid | |
| $allowedNewTables_pid | |
| $deniedNewTables_pid | |
| $code | |
| $R_URI | |
| $id | |
| $returnUrl | |
| $pagesOnly | |
| $perms_clause | |
| $doc | |
| $content | |
Protected Member Functions | |
| getButtons () | |
Definition at line 128 of file db_new.php.
| SC_db_new::getButtons | ( | ) | [protected] |
Create the panel of buttons for submitting the form or otherwise perform operations.
Definition at line 300 of file db_new.php.
References $BACK_PATH, $GLOBALS, t3lib_BEfunc::cshItem(), t3lib_div::getIndpEnv(), pagesOnly(), showNewRecLink(), and t3lib_iconWorks::skinImg().
Referenced by main().
| SC_db_new::init | ( | ) |
Constructor function for the class
Definition at line 165 of file db_new.php.
References $BACK_PATH, $GLOBALS, t3lib_div::_GP(), t3lib_BEfunc::getRecord(), t3lib_div::makeInstance(), 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
| array | Record for parent page. | |
| string | Table name to check |
Definition at line 551 of file db_new.php.
References $GLOBALS, $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
| 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 531 of file db_new.php.
References $GLOBALS, and t3lib_BEfunc::editOnClick().
Referenced by regularNew().
| SC_db_new::main | ( | ) |
Main processing, creating the list of new record tables to select from
Definition at line 234 of file db_new.php.
References $GLOBALS, t3lib_div::fixed_lgd_cs(), getButtons(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getModTSconfig(), pagesOnly(), regularNew(), showNewRecLink(), t3lib_iconWorks::skinImg(), and t3lib_div::trimExplode().
| SC_db_new::pagesOnly | ( | ) |
Creates the position map for pages wizard
Definition at line 358 of file db_new.php.
References t3lib_div::makeInstance().
Referenced by getButtons(), init(), and main().
| SC_db_new::printContent | ( | ) |
Ending page output and echo'ing content to browser.
Definition at line 518 of file db_new.php.
| SC_db_new::regularNew | ( | ) |
Create a regular new element (pages and records)
Definition at line 373 of file db_new.php.
References $BACK_PATH, $GLOBALS, $TCA, 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::showNewRecLink | ( | $ | table, | |
| array $ | allowedNewTables = array(), |
|||
| array $ | deniedNewTables = array() | |||
| ) |
Returns true if:
If $table tablename is found in $allowedNewTables and $deniedNewTables, $deniedNewTables has priority over $allowedNewTables.
| string | Table name to test if in allowedTables | |
| array | Array of new tables that are allowed. | |
| array | Array of new tables that are not allowed. |
Definition at line 587 of file db_new.php.
References $allowedNewTables, and $deniedNewTables.
Referenced by getButtons(), main(), and regularNew().
| SC_db_new::$allowedNewTables |
| SC_db_new::$allowedNewTables_pid |
Definition at line 138 of file db_new.php.
| SC_db_new::$code |
Definition at line 140 of file db_new.php.
| SC_db_new::$content |
Definition at line 157 of file db_new.php.
| SC_db_new::$deniedNewTables |
| SC_db_new::$deniedNewTables_pid |
Definition at line 139 of file db_new.php.
| SC_db_new::$doc |
Definition at line 156 of file db_new.php.
| SC_db_new::$id |
Definition at line 144 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 146 of file db_new.php.
| SC_db_new::$perms_clause |
Definition at line 149 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 141 of file db_new.php.
| SC_db_new::$returnUrl |
Definition at line 145 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 137 of file db_new.php.
1.4.7