TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Controller\NewRecordController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\NewRecordController:
SC_db_new

Public Member Functions

 __construct ()
 
 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 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
 
 $tRows
 

Protected Member Functions

 init ()
 
 getButtons ()
 
 getBackendUserAuthentication ()
 

Protected Attributes

 $newPagesSelectPosition = TRUE
 

Detailed Description

Script class for 'db_new'

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 27 of file NewRecordController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\NewRecordController::__construct ( )

Constructor

Definition at line 149 of file NewRecordController.php.

References $GLOBALS, and TYPO3\CMS\Backend\Controller\NewRecordController\init().

Member Function Documentation

◆ getBackendUserAuthentication()

TYPO3\CMS\Backend\Controller\NewRecordController::getBackendUserAuthentication ( )
protected

Returns the global BackendUserAuthentication object.

Returns

Definition at line 668 of file NewRecordController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\NewRecordController\showNewRecLink().

◆ getButtons()

◆ init()

◆ isTableAllowedForThisPage()

TYPO3\CMS\Backend\Controller\NewRecordController::isTableAllowedForThisPage (   $pid_row,
  $checkTable 
)

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

Parameters
array$pid_rowRecord for parent page.
string$checkTableTable name to check
Returns
boolean Returns TRUE if the tablename $checkTable is allowed to be created on the page with record $pid_row
Todo:
Define visibility

Definition at line 608 of file NewRecordController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\inList().

◆ linkWrap()

TYPO3\CMS\Backend\Controller\NewRecordController::linkWrap (   $linkText,
  $table,
  $pid,
  $addContentTable = FALSE 
)

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

Parameters
string$linkTextLink text
string$tableTable name (in which to create new record)
integer$pidPID value for the "&edit['.$table.']['.$pid.']=new" command (positive/negative)
boolean$addContentTableIf $addContentTable is set, then a new contentTable record is created together with pages
Returns
string The link.
Todo:
Define visibility

Definition at line 589 of file NewRecordController.php.

References $GLOBALS, $parameters, and TYPO3\CMS\Backend\Utility\BackendUtility\editOnClick().

◆ main()

◆ printContent()

TYPO3\CMS\Backend\Controller\NewRecordController::printContent ( )

Ending page output and echo'ing content to browser.

Returns
void

Definition at line 575 of file NewRecordController.php.

References TYPO3\CMS\Backend\Controller\NewRecordController\$content.

◆ regularNew()

TYPO3\CMS\Backend\Controller\NewRecordController::regularNew ( )

Create a regular new element (pages and records)

Returns
void
Todo:
Define visibility

Definition at line 340 of file NewRecordController.php.

Referenced by TYPO3\CMS\Backend\Controller\NewRecordController\main().

◆ showNewRecLink()

TYPO3\CMS\Backend\Controller\NewRecordController::showNewRecLink (   $table,
array  $allowedNewTables = array(),
array  $deniedNewTables = array() 
)

Returns TRUE if:

  • $allowedNewTables and $deniedNewTables are empty
  • the table is not found in $deniedNewTables and $allowedNewTables is not set or the $table tablename is found in $allowedNewTables

If $table tablename is found in $allowedNewTables and $deniedNewTables, $deniedNewTables has priority over $allowedNewTables.

Parameters
string$tableTable name to test if in allowedTables
array$allowedNewTablesArray of new tables that are allowed.
array$deniedNewTablesArray of new tables that are not allowed.
Returns
boolean Returns TRUE if a link for creating new records should be displayed for $table
Todo:
Define visibility

Definition at line 645 of file NewRecordController.php.

References TYPO3\CMS\Backend\Controller\NewRecordController\$allowedNewTables, TYPO3\CMS\Backend\Controller\NewRecordController\$deniedNewTables, and TYPO3\CMS\Backend\Controller\NewRecordController\getBackendUserAuthentication().

Referenced by TYPO3\CMS\Backend\Controller\NewRecordController\getButtons(), and TYPO3\CMS\Backend\Controller\NewRecordController\main().

◆ sortNewRecordsByConfig()

TYPO3\CMS\Backend\Controller\NewRecordController::sortNewRecordsByConfig (   $a,
  $b 
)

User array sort function used by regularNew

Parameters
string$aFirst array element for compare
string$bFirst array element for compare
Returns
integer -1 for lower, 0 for equal, 1 for greater
Todo:
Define visibility

Definition at line 547 of file NewRecordController.php.

Member Data Documentation

◆ $allowedNewTables

TYPO3\CMS\Backend\Controller\NewRecordController::$allowedNewTables
Todo:
Define visibility

Definition at line 69 of file NewRecordController.php.

Referenced by TYPO3\CMS\Backend\Controller\NewRecordController\showNewRecLink().

◆ $allowedNewTables_pid

TYPO3\CMS\Backend\Controller\NewRecordController::$allowedNewTables_pid
Todo:
Define visibility

Definition at line 84 of file NewRecordController.php.

◆ $code

TYPO3\CMS\Backend\Controller\NewRecordController::$code
Todo:
Define visibility

Definition at line 94 of file NewRecordController.php.

◆ $content

TYPO3\CMS\Backend\Controller\NewRecordController::$content

◆ $deniedNewTables

TYPO3\CMS\Backend\Controller\NewRecordController::$deniedNewTables
Todo:
Define visibility

Definition at line 74 of file NewRecordController.php.

Referenced by TYPO3\CMS\Backend\Controller\NewRecordController\showNewRecLink().

◆ $deniedNewTables_pid

TYPO3\CMS\Backend\Controller\NewRecordController::$deniedNewTables_pid
Todo:
Define visibility

Definition at line 89 of file NewRecordController.php.

◆ $doc

TYPO3\CMS\Backend\Controller\NewRecordController::$doc

Definition at line 133 of file NewRecordController.php.

◆ $id

TYPO3\CMS\Backend\Controller\NewRecordController::$id
Todo:
Define visibility

Definition at line 106 of file NewRecordController.php.

◆ $newContentInto

TYPO3\CMS\Backend\Controller\NewRecordController::$newContentInto
Todo:
Define visibility

Definition at line 47 of file NewRecordController.php.

◆ $newPagesAfter

TYPO3\CMS\Backend\Controller\NewRecordController::$newPagesAfter
Todo:
Define visibility

Definition at line 52 of file NewRecordController.php.

◆ $newPagesInto

TYPO3\CMS\Backend\Controller\NewRecordController::$newPagesInto
Todo:
Define visibility

Definition at line 42 of file NewRecordController.php.

◆ $newPagesSelectPosition

boolean TYPO3\CMS\Backend\Controller\NewRecordController::$newPagesSelectPosition = TRUE
protected

Determines, whether "Select Position" for new page should be shown

Definition at line 59 of file NewRecordController.php.

◆ $pageinfo

TYPO3\CMS\Backend\Controller\NewRecordController::$pageinfo
Todo:
Define visibility

Definition at line 32 of file NewRecordController.php.

◆ $pagesOnly

TYPO3\CMS\Backend\Controller\NewRecordController::$pagesOnly
Todo:
Define visibility

Definition at line 118 of file NewRecordController.php.

◆ $perms_clause

TYPO3\CMS\Backend\Controller\NewRecordController::$perms_clause
Todo:
Define visibility

Definition at line 125 of file NewRecordController.php.

◆ $pidInfo

TYPO3\CMS\Backend\Controller\NewRecordController::$pidInfo
Todo:
Define visibility

Definition at line 37 of file NewRecordController.php.

◆ $R_URI

TYPO3\CMS\Backend\Controller\NewRecordController::$R_URI
Todo:
Define visibility

Definition at line 99 of file NewRecordController.php.

◆ $returnUrl

TYPO3\CMS\Backend\Controller\NewRecordController::$returnUrl
Todo:
Define visibility

Definition at line 112 of file NewRecordController.php.

Referenced by TYPO3\CMS\Backend\Controller\NewRecordController\main().

◆ $tRows

TYPO3\CMS\Backend\Controller\NewRecordController::$tRows
Todo:
Define visibility

Definition at line 144 of file NewRecordController.php.

◆ $web_list_modTSconfig

TYPO3\CMS\Backend\Controller\NewRecordController::$web_list_modTSconfig
Todo:
Define visibility

Definition at line 64 of file NewRecordController.php.

◆ $web_list_modTSconfig_pid

TYPO3\CMS\Backend\Controller\NewRecordController::$web_list_modTSconfig_pid
Todo:
Define visibility

Definition at line 79 of file NewRecordController.php.