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, 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 ()

Detailed Description

Definition at line 128 of file db_new.php.


Member Function Documentation

SC_db_new::getButtons (  )  [protected]

Create the panel of buttons for submitting the form or otherwise perform operations.

Returns:
array all available buttons as an assoc. array

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

Returns:
void

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

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 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

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 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

Returns:
void

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

Returns:
void

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.

Returns:
void

Definition at line 518 of file db_new.php.

SC_db_new::regularNew (  ) 

Create a regular new element (pages and records)

Returns:
void

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.

Parameters:
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.
Returns:
boolean Returns true if a link for creating new records should be displayed for $table

Definition at line 587 of file db_new.php.

References $allowedNewTables, and $deniedNewTables.

Referenced by getButtons(), main(), and regularNew().


Member Data Documentation

SC_db_new::$allowedNewTables

Definition at line 135 of file db_new.php.

Referenced by showNewRecLink().

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

Definition at line 136 of file db_new.php.

Referenced by showNewRecLink().

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.


The documentation for this class was generated from the following file:
Generated on Sat Nov 29 04:23:32 2008 for TYPO3 API by  doxygen 1.4.7