TYPO3
7.6
|
Public Member Functions | |
__construct () | |
initialize () | |
getAdminPanelHeaderData () | |
isAdminModuleEnabled ($key) | |
saveConfigOptions () | |
extGetFeAdminValue ($sectionName, $val= '') | |
forcePreview () | |
isAdminModuleOpen ($key) | |
display () | |
extGetHead ($sectionSuffix) | |
linkSectionHeader ($sectionSuffix, $sectionTitle, $className= '') | |
extGetItem ($title, $content= '', $checkbox= '', $outerDivClass=null, $innerDivClass=null) | |
ext_makeToolBar () | |
Protected Member Functions | |
getHiddenFields ($key, array $val) | |
getPreviewModule () | |
getCacheModule () | |
getEditModule () | |
getTSDebugModule () | |
getInfoModule () | |
extGetLL ($key, $convertWithHtmlspecialchars=true) | |
getLanguageService () | |
getBackendUser () | |
getDatabaseConnection () | |
getTypoScriptFrontendController () | |
getTimeTracker () | |
Protected Attributes | |
$extNeedUpdate = false | |
$ext_forcePreview = false | |
$extJSCODE = '' | |
$iconFactory | |
View class for the admin panel in frontend editing.
Definition at line 26 of file AdminPanelView.php.
__construct | ( | ) |
Constructor
Definition at line 55 of file AdminPanelView.php.
References AdminPanelView\initialize().
display | ( | ) |
Creates and returns the HTML code for the Admin Panel in the TSFE frontend.
\UnexpectedValueException |
Definition at line 239 of file AdminPanelView.php.
References $GLOBALS, GeneralUtility\_GET(), AdminPanelView\extGetLL(), AdminPanelView\getBackendUser(), AdminPanelView\getCacheModule(), AdminPanelView\getEditModule(), AdminPanelView\getHiddenFields(), GeneralUtility\getIndpEnv(), AdminPanelView\getInfoModule(), AdminPanelView\getLanguageService(), AdminPanelView\getPreviewModule(), AdminPanelView\getTSDebugModule(), AdminPanelView\getTypoScriptFrontendController(), GeneralUtility\getUserObj(), AdminPanelView\isAdminModuleEnabled(), AdminPanelView\linkSectionHeader(), GeneralUtility\locationHeaderUrl(), and GeneralUtility\minifyJavaScript().
ext_makeToolBar | ( | ) |
Creates the tool bar links for the "edit" section of the Admin Panel.
Definition at line 632 of file AdminPanelView.php.
Referenced by AdminPanelView\getEditModule().
extGetFeAdminValue | ( | $sectionName, | |
$val = '' |
|||
) |
Returns the value for an Admin Panel setting.
string | $sectionName | Module key |
string | $val | Setting key |
Definition at line 174 of file AdminPanelView.php.
References AdminPanelView\getBackendUser(), AdminPanelView\isAdminModuleEnabled(), and AdminPanelView\isAdminModuleOpen().
Referenced by AdminPanelView\getCacheModule(), AdminPanelView\initialize(), and AdminPanelView\saveConfigOptions().
extGetHead | ( | $sectionSuffix | ) |
Returns a row (with colspan=4) which is a header for a section in the Admin Panel. It will have a plus/minus icon and a label which is linked so that it submits the form which surrounds the whole Admin Panel when clicked, alterting the TSFE_ADMIN_PANEL[display_' . $pre . '] value See the functions get*Module
string | $sectionSuffix | The suffix to the display_ label. Also selects the label from the LOCAL_LANG array. |
Definition at line 577 of file AdminPanelView.php.
Referenced by AdminPanelView\getCacheModule(), AdminPanelView\getEditModule(), and AdminPanelView\getPreviewModule().
extGetItem | ( | $title, | |
$content = '' , |
|||
$checkbox = '' , |
|||
$outerDivClass = null , |
|||
$innerDivClass = null |
|||
) |
Returns a row (with 4 columns) for content in a section of the Admin Panel. It will take $pre as a key to a label to display and $element as the content to put into the forth cell.
string | $title | Key to label |
string | $content | The HTML content for the forth table cell. |
string | $checkbox | The HTML for a checkbox or hidden fields. |
string | $innerDivClass | The Class attribute for the td element. |
string | $outerDivClass | The Class attribute for the tr element. |
Definition at line 617 of file AdminPanelView.php.
Referenced by AdminPanelView\getCacheModule(), AdminPanelView\getEditModule(), and AdminPanelView\getPreviewModule().
|
protected |
Translate given key
string | $key | Key for a label in the $LOCAL_LANG array of "sysext/lang/locallang_tsfe.xlf |
bool | $convertWithHtmlspecialchars | If TRUE the language-label will be sent through htmlspecialchars |
Definition at line 715 of file AdminPanelView.php.
Referenced by AdminPanelView\display(), and AdminPanelView\getCacheModule().
forcePreview | ( | ) |
getAdminPanelHeaderData | ( | ) |
Add an additional stylesheet
Definition at line 108 of file AdminPanelView.php.
References $GLOBALS, and GeneralUtility\locationHeaderUrl().
|
protected |
Returns the current BE user.
Definition at line 739 of file AdminPanelView.php.
Referenced by AdminPanelView\display(), AdminPanelView\extGetFeAdminValue(), AdminPanelView\getCacheModule(), AdminPanelView\getEditModule(), AdminPanelView\getPreviewModule(), AdminPanelView\initialize(), AdminPanelView\isAdminModuleEnabled(), AdminPanelView\isAdminModuleOpen(), and AdminPanelView\saveConfigOptions().
|
protected |
Creates the content for the "cache" section ("module") of the Admin Panel
Definition at line 407 of file AdminPanelView.php.
References $GLOBALS, AdminPanelView\extGetFeAdminValue(), AdminPanelView\extGetHead(), AdminPanelView\extGetItem(), AdminPanelView\extGetLL(), AdminPanelView\getBackendUser(), AdminPanelView\getTypoScriptFrontendController(), and Icon\SIZE_SMALL.
Referenced by AdminPanelView\display().
|
protected |
Returns the database connection
Definition at line 749 of file AdminPanelView.php.
Referenced by AdminPanelView\getPreviewModule(), and AdminPanelView\initialize().
|
protected |
Creates the content for the "edit" section ("module") of the Admin Panel
Definition at line 444 of file AdminPanelView.php.
References $GLOBALS, GeneralUtility\_GP(), AdminPanelView\ext_makeToolBar(), AdminPanelView\extGetHead(), AdminPanelView\extGetItem(), BackendUtility\getBackendScript(), AdminPanelView\getBackendUser(), AdminPanelView\getTypoScriptFrontendController(), BackendUtility\isModuleSetInTBE_MODULES(), and GeneralUtility\quoteJSvalue().
Referenced by AdminPanelView\display().
|
protected |
Fetches recursively all GET parameters as hidden fields. Called from display()
string | $key | Current key |
array | $val | Current value |
Definition at line 346 of file AdminPanelView.php.
Referenced by AdminPanelView\display().
|
protected |
Creates the content for the "info" section ("module") of the Admin Panel
Definition at line 511 of file AdminPanelView.php.
Referenced by AdminPanelView\display().
|
protected |
Returns LanguageService
Definition at line 729 of file AdminPanelView.php.
Referenced by AdminPanelView\display().
|
protected |
Creates the content for the "preview" section ("module") of the Admin Panel
Definition at line 368 of file AdminPanelView.php.
References BackendUtility\deleteClause(), AdminPanelView\extGetHead(), AdminPanelView\extGetItem(), AdminPanelView\getBackendUser(), and AdminPanelView\getDatabaseConnection().
Referenced by AdminPanelView\display().
|
protected |
Definition at line 765 of file AdminPanelView.php.
Referenced by AdminPanelView\saveConfigOptions().
|
protected |
Creates the content for the "tsdebug" section ("module") of the Admin Panel
Definition at line 481 of file AdminPanelView.php.
Referenced by AdminPanelView\display().
|
protected |
Definition at line 757 of file AdminPanelView.php.
Referenced by AdminPanelView\display(), AdminPanelView\getCacheModule(), AdminPanelView\getEditModule(), AdminPanelView\initialize(), and AdminPanelView\saveConfigOptions().
initialize | ( | ) |
Initializes settings for the admin panel.
Definition at line 65 of file AdminPanelView.php.
References GeneralUtility\_GP(), elseif, AdminPanelView\extGetFeAdminValue(), AdminPanelView\getBackendUser(), AdminPanelView\getDatabaseConnection(), AdminPanelView\getTypoScriptFrontendController(), GeneralUtility\makeInstance(), and AdminPanelView\saveConfigOptions().
Referenced by AdminPanelView\__construct().
isAdminModuleEnabled | ( | $key | ) |
Checks if an Admin Panel section ("module") is available for the user. If so, TRUE is returned.
string | $key | The module key, eg. "edit", "preview", "info" etc. |
Definition at line 124 of file AdminPanelView.php.
References elseif, and AdminPanelView\getBackendUser().
Referenced by AdminPanelView\display(), AdminPanelView\extGetFeAdminValue(), and AdminPanelView\saveConfigOptions().
isAdminModuleOpen | ( | $key | ) |
Returns TRUE if admin panel module is open
string | $key | Module key |
Definition at line 228 of file AdminPanelView.php.
References AdminPanelView\getBackendUser().
Referenced by AdminPanelView\extGetFeAdminValue().
linkSectionHeader | ( | $sectionSuffix, | |
$sectionTitle, | |||
$className = '' |
|||
) |
Wraps a string in a link which will open/close a certain part of the Admin Panel
string | $sectionSuffix | The code for the display_ label/key |
string | $sectionTitle | Title (in HTML-format) |
string | $className | The classname for the tag |
Definition at line 594 of file AdminPanelView.php.
Referenced by AdminPanelView\display().
saveConfigOptions | ( | ) |
Saves any change in settings made in the Admin Panel. Called from index_ts.php right after access check for the Admin Panel
Definition at line 144 of file AdminPanelView.php.
References GeneralUtility\_GP(), AdminPanelView\extGetFeAdminValue(), AdminPanelView\getBackendUser(), AdminPanelView\getTimeTracker(), AdminPanelView\getTypoScriptFrontendController(), and AdminPanelView\isAdminModuleEnabled().
Referenced by AdminPanelView\initialize().
|
protected |
Definition at line 40 of file AdminPanelView.php.
|
protected |
Definition at line 45 of file AdminPanelView.php.
|
protected |
Definition at line 33 of file AdminPanelView.php.
|
protected |
Definition at line 50 of file AdminPanelView.php.