TYPO3
7.6
|
Public Member Functions | |
__construct () | |
mainAction (ServerRequestInterface $request, ResponseInterface $response) | |
main () | |
regularNew () | |
sortNewRecordsByConfig ($a, $b) | |
printContent () | |
linkWrap ($linkText, $table, $pid, $addContentTable=false) | |
isTableAllowedForThisPage ($pid_row, $checkTable) | |
showNewRecLink ($table, array $allowedNewTables=array(), array $deniedNewTables=array()) | |
Public Member Functions inherited from AbstractModule | |
__construct () | |
processRequest (ServerRequestInterface $request, ResponseInterface $response) | |
Protected Member Functions | |
init () | |
getButtons () | |
checkIfLanguagesExist () | |
getLanguageService () | |
getBackendUserAuthentication () | |
getDatabaseConnection () | |
Protected Attributes | |
$newRecordSortList | |
$newPagesSelectPosition = true | |
Protected Attributes inherited from AbstractModule | |
$moduleTemplate | |
$request | |
Script class for 'db_new'
Definition at line 34 of file NewRecordController.php.
__construct | ( | ) |
Constructor
Definition at line 150 of file NewRecordController.php.
References $GLOBALS, NewRecordController\getLanguageService(), and NewRecordController\init().
|
protected |
Checks if sys_language records are present
Definition at line 731 of file NewRecordController.php.
References NewRecordController\getDatabaseConnection().
Referenced by NewRecordController\regularNew().
|
protected |
Returns the global BackendUserAuthentication object.
Definition at line 755 of file NewRecordController.php.
References $GLOBALS.
Referenced by NewRecordController\init(), NewRecordController\isTableAllowedForThisPage(), NewRecordController\main(), NewRecordController\regularNew(), and NewRecordController\showNewRecLink().
|
protected |
Create the panel of buttons for submitting the form or otherwise perform operations.
Definition at line 308 of file NewRecordController.php.
References $lang, BackendUtility\BEgetRootLine(), ButtonBar\BUTTON_POSITION_LEFT, BackendUtility\cshItem(), PageRepository\DOKTYPE_RECYCLER, PageRepository\DOKTYPE_SPACER, PageRepository\DOKTYPE_SYSFOLDER, elseif, NewRecordController\getLanguageService(), BackendUtility\getPagesTSconfig(), GeneralUtility\intExplode(), GeneralUtility\linkThisScript(), NewRecordController\showNewRecLink(), Icon\SIZE_SMALL, and BackendUtility\viewOnClick().
Referenced by NewRecordController\main().
|
protected |
Returns the database connection
Definition at line 765 of file NewRecordController.php.
References $GLOBALS.
Referenced by NewRecordController\checkIfLanguagesExist(), and NewRecordController\init().
|
protected |
Return language service instance
Definition at line 745 of file NewRecordController.php.
References $GLOBALS.
Referenced by NewRecordController\__construct(), NewRecordController\getButtons(), NewRecordController\init(), and NewRecordController\regularNew().
|
protected |
Constructor function for the class
Definition at line 163 of file NewRecordController.php.
References GeneralUtility\_GP(), elseif, NewRecordController\getBackendUserAuthentication(), NewRecordController\getDatabaseConnection(), NewRecordController\getLanguageService(), BackendUtility\getRecord(), BackendUtility\readPageAccess(), and GeneralUtility\sanitizeLocalUrl().
Referenced by NewRecordController\__construct().
isTableAllowedForThisPage | ( | $pid_row, | |
$checkTable | |||
) |
Returns TRUE if the tablename $checkTable is allowed to be created on the page with record $pid_row
array | $pid_row | Record for parent page. |
string | $checkTable | Table name to check |
Definition at line 673 of file NewRecordController.php.
References $GLOBALS, NewRecordController\getBackendUserAuthentication(), and GeneralUtility\inList().
Referenced by NewRecordController\regularNew().
linkWrap | ( | $linkText, | |
$table, | |||
$pid, | |||
$addContentTable = false |
|||
) |
Links the string $code to a create-new form for a record in $table created on page $pid
string | $linkText | Link text |
string | $table | Table name (in which to create new record) |
int | $pid | PID value for the "&edit['.$table.']['.$pid.']=new" command (positive/negative) |
bool | $addContentTable | If $addContentTable is set, then a new tt_content record is created together with pages |
Definition at line 646 of file NewRecordController.php.
References NewRecordController\$returnUrl, $url, and elseif.
Referenced by NewRecordController\regularNew().
main | ( | ) |
Main processing, creating the list of new record tables to select from
Definition at line 240 of file NewRecordController.php.
References $GLOBALS, elseif, NewRecordController\getBackendUserAuthentication(), NewRecordController\getButtons(), BackendUtility\getModTSconfig(), NewRecordController\regularNew(), NewRecordController\showNewRecLink(), and GeneralUtility\trimExplode().
Referenced by NewRecordController\mainAction().
mainAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now
ServerRequestInterface | $request | the current request |
ResponseInterface | $response |
Definition at line 227 of file NewRecordController.php.
References $response, MessageInterface\getBody(), and NewRecordController\main().
printContent | ( | ) |
Ending page output and echo'ing content to browser.
Definition at line 631 of file NewRecordController.php.
References NewRecordController\$content, and GeneralUtility\logDeprecatedFunction().
regularNew | ( | ) |
Create a regular new element (pages and records)
Definition at line 426 of file NewRecordController.php.
References $EM_CONF, $GLOBALS, NewRecordController\$id, $lang, $url, NewRecordController\checkIfLanguagesExist(), ExtensionManagementUtility\extPath(), ExtensionManagementUtility\extRelPath(), NewRecordController\getBackendUserAuthentication(), GeneralUtility\getIndpEnv(), NewRecordController\getLanguageService(), BackendUtility\getModTSconfig(), BackendUtility\getPagesTSconfig(), NewRecordController\isTableAllowedForThisPage(), GeneralUtility\linkThisScript(), NewRecordController\linkWrap(), NewRecordController\showNewRecLink(), Icon\SIZE_SMALL, and GeneralUtility\trimExplode().
Referenced by NewRecordController\main().
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 | Table name to test if in allowedTables |
array | $allowedNewTables | Array of new tables that are allowed. |
array | $deniedNewTables | Array of new tables that are not allowed. |
Definition at line 710 of file NewRecordController.php.
References NewRecordController\$allowedNewTables, NewRecordController\$deniedNewTables, and NewRecordController\getBackendUserAuthentication().
Referenced by NewRecordController\getButtons(), NewRecordController\main(), and NewRecordController\regularNew().
sortNewRecordsByConfig | ( | $a, | |
$b | |||
) |
User array sort function used by regularNew
string | $a | First array element for compare |
string | $b | First array element for compare |
Definition at line 601 of file NewRecordController.php.
References elseif.
$allowedNewTables |
Definition at line 81 of file NewRecordController.php.
Referenced by NewRecordController\showNewRecLink().
$allowedNewTables_pid |
Definition at line 96 of file NewRecordController.php.
$code |
Definition at line 106 of file NewRecordController.php.
$content |
Definition at line 140 of file NewRecordController.php.
Referenced by NewRecordController\printContent().
$deniedNewTables |
Definition at line 86 of file NewRecordController.php.
Referenced by NewRecordController\showNewRecLink().
$deniedNewTables_pid |
Definition at line 101 of file NewRecordController.php.
$id |
Definition at line 116 of file NewRecordController.php.
Referenced by NewRecordController\regularNew().
$newContentInto |
Definition at line 59 of file NewRecordController.php.
$newPagesAfter |
Definition at line 64 of file NewRecordController.php.
$newPagesInto |
Definition at line 54 of file NewRecordController.php.
|
protected |
Definition at line 71 of file NewRecordController.php.
|
protected |
Definition at line 49 of file NewRecordController.php.
$pageinfo |
Definition at line 39 of file NewRecordController.php.
$pagesOnly |
Definition at line 128 of file NewRecordController.php.
$perms_clause |
Definition at line 133 of file NewRecordController.php.
$pidInfo |
Definition at line 44 of file NewRecordController.php.
$R_URI |
Definition at line 111 of file NewRecordController.php.
$returnUrl |
Definition at line 121 of file NewRecordController.php.
Referenced by NewRecordController\linkWrap().
$tRows |
Definition at line 145 of file NewRecordController.php.
$web_list_modTSconfig |
Definition at line 76 of file NewRecordController.php.
$web_list_modTSconfig_pid |
Definition at line 91 of file NewRecordController.php.