![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct (DatabaseConnection $databaseConnection=null, TypoScriptFrontendController $frontendController=null, FrontendBackendUserAuthentication $backendUser=null) | |
editPanel ($content, array $conf, $currentRecord= '', array $dataArr=array(), $table= '', array $allow=array(), $newUID=0, array $hiddenFields=array()) | |
editIcons ($content, $params, array $conf=array(), $currentRecord= '', array $dataArr=array(), $addUrlParamStr= '', $table, $editUid, $fieldList) | |
Protected Member Functions | |
editPanelLinkWrap ($string, $formName, $cmd, $currentRecord= '', $confirm= '', $nPid= '') | |
editPanelLinkWrap_doWrap ($string, $url, $additionalClasses= '') | |
isDisabled ($table, array $row) | |
Protected Attributes | |
$cObj | |
$frontendController | |
$databaseConnection | |
$backendUser | |
$iconFactory | |
View class for the edit panels in frontend editing.
Definition at line 31 of file FrontendEditPanel.php.
__construct | ( | DatabaseConnection | $databaseConnection = null , |
TypoScriptFrontendController | $frontendController = null , |
||
FrontendBackendUserAuthentication | $backendUser = null |
||
) |
Constructor for the edit panel
DatabaseConnection | $databaseConnection | |
TypoScriptFrontendController | $frontendController | |
FrontendBackendUserAuthentication | $backendUser |
Definition at line 71 of file FrontendEditPanel.php.
References FrontendEditPanel\$backendUser, FrontendEditPanel\$databaseConnection, FrontendEditPanel\$frontendController, $GLOBALS, and GeneralUtility\makeInstance().
editIcons | ( | $content, | |
$params, | |||
array | $conf = array() , |
||
$currentRecord = '' , |
|||
array | $dataArr = array() , |
||
$addUrlParamStr = '' , |
|||
$table, | |||
$editUid, | |||
$fieldList | |||
) |
Adds an edit icon to the content string. The edit icon links to EditDocumentController with proper parameters for editing the table/fields of the context. This implements TYPO3 context sensitive editing facilities. Only backend users will have access (if properly configured as well).
string | $content | The content to which the edit icons should be appended |
string | $params | The parameters defining which table and fields to edit. Syntax is [tablename]:[fieldname],[fieldname],[fieldname],... OR [fieldname],[fieldname],[fieldname],... (basically "[tablename]:" is optional, default table is the one of the "current record" used in the function). The fieldlist is sent as "&columnsOnly=" parameter to EditDocumentController |
array | $conf | TypoScript properties for configuring the edit icons. |
string | $currentRecord | The "table:uid" of the record being shown. If empty string then $this->currentRecord is used. For new records (set by $conf['newRecordFromTable']) it's auto-generated to "[tablename]:NEW |
array | $dataArr | Alternative data array to use. Default is $this->data |
string | $addUrlParamStr | Additional URL parameters for the link pointing to EditDocumentController |
string | $table | |
int | $editUid | |
string | $fieldList |
Definition at line 219 of file FrontendEditPanel.php.
References $url, GeneralUtility\_GP(), FrontendEditPanel\editPanelLinkWrap_doWrap(), elseif, and Icon\SIZE_SMALL.
editPanel | ( | $content, | |
array | $conf, | ||
$currentRecord = '' , |
|||
array | $dataArr = array() , |
||
$table = '' , |
|||
array | $allow = array() , |
||
$newUID = 0 , |
|||
array | $hiddenFields = array() |
||
) |
Generates the "edit panels" which can be shown for a page or records on a page when the Admin Panel is enabled for a backend users surfing the frontend. With the "edit panel" the user will see buttons with links to editing, moving, hiding, deleting the element This function is used for the cObject EDITPANEL and the stdWrap property ".editPanel"
string | $content | A content string containing the content related to the edit panel. For cObject "EDITPANEL" this is empty but not so for the stdWrap property. The edit panel is appended to this string and returned. |
array | $conf | TypoScript configuration properties for the editPanel |
string | $currentRecord | The "table:uid" of the record being shown. If empty string then $this->currentRecord is used. For new records (set by $conf['newRecordFromTable']) it's auto-generated to "[tablename]:NEW |
array | $dataArr | Alternative data array to use. Default is $this->data |
string | $table | |
array | $allow | |
int | $newUID | |
array | $hiddenFields |
Definition at line 96 of file FrontendEditPanel.php.
References $GLOBALS, FrontendEditPanel\editPanelLinkWrap(), GeneralUtility\fixed_lgd_cs(), GeneralUtility\getIndpEnv(), FrontendEditPanel\isDisabled(), and Icon\SIZE_SMALL.
|
protected |
Helper function for editPanel() which wraps icons in the panel in a link with the action of the panel. The links are for some of them not simple hyperlinks but onclick-actions which submits a little form which the panel is wrapped in.
string | $string | The string to wrap in a link, typ. and image used as button in the edit panel. |
string | $formName | The name of the form wrapping the edit panel. |
string | $cmd | The command of the link. There is a predefined list available: edit, new, up, down etc. |
string | $currentRecord | The "table:uid" of the record being processed by the panel. |
string | $confirm | Text string with confirmation message; If set a confirm box will be displayed before carrying out the action (if Yes is pressed) |
int | string | $nPid | "New pid" - for new records |
Definition at line 267 of file FrontendEditPanel.php.
References GeneralUtility\_GP(), MathUtility\canBeInterpretedAsInteger(), FrontendEditPanel\editPanelLinkWrap_doWrap(), elseif, JsConfirmation\FE_EDIT, and GeneralUtility\quoteJSvalue().
Referenced by FrontendEditPanel\editPanel().
|
protected |
Creates a link to a script (eg. EditDocumentController or NewRecordController) which either opens in the current frame OR in a pop-up window.
string | $string | The string to wrap in a link, typ. and image used as button in the edit panel. |
string | $url | The URL of the link. Should be absolute if supposed to work with <base> path set. |
string | $additionalClasses | Additional CSS classes |
Definition at line 305 of file FrontendEditPanel.php.
Referenced by FrontendEditPanel\editIcons(), and FrontendEditPanel\editPanelLinkWrap().
|
protected |
Returns TRUE if the input table/row would be hidden in the frontend, according to the current time and simulate user group
string | $table | The table name |
array | $row | The data record |
Definition at line 318 of file FrontendEditPanel.php.
Referenced by FrontendEditPanel\editPanel().
|
protected |
Definition at line 57 of file FrontendEditPanel.php.
Referenced by FrontendEditPanel\__construct().
|
protected |
Definition at line 38 of file FrontendEditPanel.php.
|
protected |
Definition at line 52 of file FrontendEditPanel.php.
Referenced by FrontendEditPanel\__construct().
|
protected |
Definition at line 45 of file FrontendEditPanel.php.
Referenced by FrontendEditPanel\__construct().
|
protected |
Definition at line 62 of file FrontendEditPanel.php.