Class ContentManagerPagesController

Class ContentManagerPagesController

HttpViewController implements HttpViewControllerInterface
AdminHttpViewController implements AdminStatusOnlyInterface
ContentManagerPagesController uses ContentManagerContentNavigationTrait

Methods summary

public init( void )

Initialize Controller

public actionDefault( void ) : AdminLayoutHttpControllerResponse

Default actions, renders the content manager elements overview.

public actionEdit( void ) : AdminLayoutHttpControllerResponse

Renders the editing form for content manager pages.

public actionSaveInfoPage( void ) : RedirectHttpControllerResponse

Stores content manager info page data in the database and redirects to the overview.

public actionUpdateContentPage( void ) : RedirectHttpControllerResponse

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

public actionSaveScriptPage( void ) : RedirectHttpControllerResponse

Stores content manager link page data in the database and redirects to the overview.

public actionUpdateFilePage( void ) : RedirectHttpControllerResponse

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

public actionSaveLinkPage( void ) : RedirectHttpControllerResponse

Stores content manager link page data in the database and redirects to the overview.

public actionUpdateLinkPage( void ) : RedirectHttpControllerResponse

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

public actionCreateMain( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager main pages.

public actionCreateSecondary( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager secondary pages.

public actionCreateInfo( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager info pages.

public actionCreateInfoBox( void ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager info box pages.

protected _prepareLinkPagePostData( void ) : array

Prepares $_POST data for content manager link pages.

protected _storeUrlRewrites( array $urlRewrites, integer $contentGroupId ) :

Stores the given url rewrites in the database.

protected _updateSlider( array $data ) :

Update content slider

protected _repairUrlKeywords( void ) :

Repairs gm_url_keywords for contents

protected _getCreationResponse( string $type ) : AdminLayoutHttpControllerResponse

Renders the creation form for content manager main pages.

protected _getContentManagerEditData( array $contentManagerData ) : array

Prepares the given content manager data to use it in the edit form.

protected _getEditFormData( void ) : KeyValueCollection

Returns the required data for the edit form of content manager pages.

protected _getContentEditData( integer $contentId, array $contentData ) : array

Returns the content edit data array, which will be converted to a key value collection and assigned to the edit form.

protected _getUrlRewriteEditData( integer $contentId ) : UrlRewriteCollection

Executes an sql query again the url_rewrites table and returns the result.

protected _getEditData( integer $contentId, array $contentData ) : array

Returns content manager data to be edited, prepared for the edit form.

protected _getCkEditorData( integer $contentId, string $type ) : array

Returns required data for CkEditor settings.

protected _getContentDataById( integer $contentId ) : array

Executes an sql query again the content_manager table and returns the result.

protected _getContentPosition( array $queryResult ) : string

Returns the content position of the given query result.

protected _prepareData( string $contentManagerType ) : array

Prepares $_POST data for updating or inserting into the database.

protected _prepareContentManagerData( integer $contentGroupId, string $contentManagerType ) : array

Prepares $_POST data for updating or inserting into the content_manager table.

protected _getPagesData( void ) : array

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

protected _getContentDescription( string $contentType ) : string

Detects the content type names from the queries result data.

protected _checkScriptpageFileUploads( void ) : array

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

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 $languageTextManager : LanguageTextManager

		
protected $queryBuilder : CI_DB_query_builder

		
protected $fieldMap : array
[
    'content_name',
    'content_title',
    'content_heading',
    'content_text',
    'contents_meta_title',
    'contents_meta_keywords',
    'contents_meta_description',
    'gm_url_keywords',
    'url_rewrite',
    'gm_robots_entry',
    'gm_sitemap_entry',
    'gm_priority',
    'gm_changefreq',
    'gm_link',
    'gm_link_target',
    'content_file',
    'download_file',
    'content_status',
    'content_file',
    'content_type',
    'content_version'
]
protected $switcherFields : array
[
    'content_status',
    'gm_robots_entry',
    'gm_sitemap_entry'
]
protected $typeMap : array
[
    'content' => 'infopage',
    'link'    => 'linkpage',
    'file'    => 'scriptpage'
]

Properties inherited from HttpViewController

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

Properties used from ContentManagerContentNavigationTrait

$contentTypeFileFlagMap, $fileTypMap, $isExpertMode