Class ContentManagerElementsController

Class ContentManagerPagesController

HttpViewController implements HttpViewControllerInterface
AdminHttpViewController implements AdminStatusOnlyInterface
ContentManagerElementsController uses ContentManagerContentNavigationTrait

Methods summary

public init( void )

Initialize Controller

public actionDefault( void ) : AdminLayoutHttpControllerResponse

Default actions, renders the content manager elements overview.

public actionCreateHome( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager home element pages.

public actionCreateHeader( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager header element pages.

public actionCreateFooter( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager footer element pages.

public actionCreateBoxes( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager boxes element pages.

public actionCreateOthers( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager others element pages.

public actionCreateWithdrawal( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager withdrawal element pages.

public actionEdit( void ) : AdminLayoutHttpControllerResponse

Renders the edit form for content manager home element pages.

public actionSaveHome( void ) : RedirectHttpControllerResponse

Stores content manager home element data in the database and redirects to the overview.

public actionSaveHeader( void ) : RedirectHttpControllerResponse

Stores content manager header element data in the database and redirects to the overview.

public actionSaveFooter( void ) : RedirectHttpControllerResponse

Stores content manager footer element data in the database and redirects to the overview.

public actionSaveBoxes( void ) : RedirectHttpControllerResponse

Stores content manager boxes element data in the database and redirects to the overview.

public actionSaveOthers( void ) : RedirectHttpControllerResponse

Stores content manager others element data in the database and redirects to the overview.

public actionSaveWithdrawal( void ) : RedirectHttpControllerResponse

Stores content manager withdrawal element data in the database and redirects to the overview.

public actionUpdate( void ) : RedirectHttpControllerResponse

Updates content manager elements data in the database and redirects to the overview.

protected _getCreationData( string $action ) : array|boolean|KeyValueCollection

Creates the template data for creation pages. The action determines the target location after clicking the submit button.

protected _getEditData( void ) : KeyValueCollection

Prepares and returns the content manager data to be edited.

protected _preparePostData( string $type ) : array

Prepares the content manager elements post data.

protected _checkScriptpageFileUploads( void ) : array

Detects file uploads for scriptpages and returns the array for new content_file post data.

protected _getContentData( void ) : array

Fetches and returns the content data for the content manager elements.

Methods inherited from AdminHttpViewController

validateCurrentAdminStatus()

Methods inherited from HttpViewController

__construct(), _callActionMethod(), _getPostData(), _getPostDataCollection(), _getQueryParameter(), _getQueryParametersCollection(), _getServerData(), _render(), _validatePageToken(), getTemplateFile(), proceed()

Methods used from ContentManagerContentNavigationTrait

_createContentNavigation(), _createNewContentGroupId(), _getAssets(), _getContentType(), _getProductsContentFiles(), _getScriptPageFiles(), _getTemplate(), _getUpdateResponse(), _insertContentData(), _isFilemanagerAvailable(), _prepareContentManagerGroupCheckData(), _setExpertMode(), _updateContentData()

Properties summary

protected $queryBuilder : CI_DB_query_builder

		
protected $fieldMap : array
[
    'content_title',
    'content_heading',
    'content_text',
    'content_status',
    'content_file',
    'content_type'
]
protected $switcherFields : array
[
    'content_status'
]
protected $typeMap : array
[
    'home'   => 'elements_start',
    'header' => 'elements_header',
    'footer' => 'elements_footer',
    'boxes'  => 'elements_boxes',
]

Properties inherited from HttpViewController

$assets, $contentView, $httpContextReader, $httpResponseProcessor, $postDataArray, $queryParametersArray, $serverDataArray

Properties used from ContentManagerContentNavigationTrait

$contentTypeFileFlagMap, $fileTypMap, $isExpertMode