‪TYPO3CMS  9.5
TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler Class Reference

Public Member Functions

 __construct (array $configuration, FrontendBackendUserAuthentication $user=null)
 
 editAction ()
 

Protected Member Functions

 doHide (string $table, int $uid)
 
 doUnhide (string $table, int $uid)
 
 doUp (string $table, int $uid)
 
 doDown (string $table, int $uid)
 
 doMoveAfter (string $table, int $uid)
 
 move (string $table, int $uid, string $direction='', int $afterUID=0)
 
 doDelete (string $table, int $uid)
 
 doSave (string $table, int $uid)
 
 doSaveAndClose (string $table, int $uid)
 
 doClose (string $table, int $uid)
 

Protected Attributes

array $configuration
 
FrontendBackendUserAuthentication $user
 

Detailed Description

Calls DataHandler and stores data

this is a concrete TYPO3 implementation and solely used for EXT:feedit and not part of TYPO3's Core API.

Definition at line 34 of file FrontendEditDataHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::__construct ( array  $configuration,
FrontendBackendUserAuthentication  $user = null 
)

FrontendEditDataHandler constructor.

Parameters
array$configuration
FrontendBackendUserAuthentication | null$user

Definition at line 49 of file FrontendEditDataHandler.php.

References TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\$configuration, $GLOBALS, and TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\$user.

Member Function Documentation

◆ doClose()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doClose ( string  $table,
int  $uid 
)
protected

Stub for closing a record. No real functionality needed since content element rendering will take care of everything.

Parameters
string$table‪The table name for the record to close.
int$uid‪The UID for the record to close.

Definition at line 329 of file FrontendEditDataHandler.php.

◆ doDelete()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doDelete ( string  $table,
int  $uid 
)
protected

Deletes a specific record.

Parameters
string$table‪The table name for the record to delete.
int$uid‪The UID for the record to delete.

Definition at line 278 of file FrontendEditDataHandler.php.

◆ doDown()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doDown ( string  $table,
int  $uid 
)
protected

Moves a record down.

Parameters
string$table‪The table name for the record to move.
int$uid‪The UID for the record to move.

Definition at line 135 of file FrontendEditDataHandler.php.

References TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\move().

◆ doHide()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doHide ( string  $table,
int  $uid 
)
protected

Hides a specific record.

Parameters
string$table‪The table name for the record to hide.
int$uid‪The UID for the record to hide.

Definition at line 88 of file FrontendEditDataHandler.php.

References $GLOBALS.

◆ doMoveAfter()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doMoveAfter ( string  $table,
int  $uid 
)
protected

Moves a record after a given element. Used for drag.

Parameters
string$table‪The table name for the record to move.
int$uid‪The UID for the record to move.

Definition at line 146 of file FrontendEditDataHandler.php.

References TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\move().

◆ doSave()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doSave ( string  $table,
int  $uid 
)
protected

Saves a record based on its data array.

Parameters
string$table‪The table name for the record to save.
int$uid‪The UID for the record to save.

Definition at line 294 of file FrontendEditDataHandler.php.

Referenced by TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\doSaveAndClose().

◆ doSaveAndClose()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doSaveAndClose ( string  $table,
int  $uid 
)
protected

Saves a record based on its data array and closes it. Note: This method is only a wrapper for doSave() but is needed so

Parameters
string$table‪The table name for the record to save.
int$uid‪The UID for the record to save.

Definition at line 317 of file FrontendEditDataHandler.php.

References TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\doSave().

◆ doUnhide()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doUnhide ( string  $table,
int  $uid 
)
protected

Unhides (shows) a specific record.

Parameters
string$table‪The table name for the record to unhide.
int$uid‪The UID for the record to unhide.

Definition at line 106 of file FrontendEditDataHandler.php.

References $GLOBALS.

◆ doUp()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::doUp ( string  $table,
int  $uid 
)
protected

Moves a record up.

Parameters
string$table‪The table name for the record to move.
int$uid‪The UID for the record to hide.

Definition at line 124 of file FrontendEditDataHandler.php.

References TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\move().

◆ editAction()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::editAction ( )

Management of the on-page frontend editing forms and edit panels. Basically taking in the data and commands and passes them on to the proper classes as they should be.

Exceptions

Definition at line 61 of file FrontendEditDataHandler.php.

References $GLOBALS.

◆ move()

TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::move ( string  $table,
int  $uid,
string  $direction = '',
int  $afterUID = 0 
)
protected

Moves a record

Parameters
string$table‪The table name for the record to move.
int$uid‪The UID for the record to move.
string$direction‪The direction to move, either 'up' or 'down'.
int$afterUID‪The UID of record to move after. This is specified for dragging only.

Definition at line 160 of file FrontendEditDataHandler.php.

References $fields, $GLOBALS, and TYPO3\CMS\Adminpanel\View\AdminPanelView\extGetFeAdminValue().

Referenced by TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\doDown(), TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\doMoveAfter(), and TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler\doUp().

Member Data Documentation

◆ $configuration

array TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::$configuration
protected

◆ $user

FrontendBackendUserAuthentication TYPO3\CMS\Feedit\DataHandling\FrontendEditDataHandler::$user
protected