Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • CustomerGroup
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Serializers
    • Services
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Geschaeftskundenversand
    • Helpers
    • Invoices
    • Orders
    • ParcelShopFinder
    • QuickEdit
    • Serializers
    • Templates
  • Geschaeftskundenversand
    • Exceptions
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Manufacturer
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • OrderStatus
    • Collections
    • Entities
    • Exceptions
    • Factories
    • Interfaces
    • Repositories
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • QuantityUnit
    • Entities
    • Factories
    • Repositories
  • QuickEdit
    • Interfaces
    • Repositories
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Smarty
    • plugins
  • StaticSeoUrl
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • StaticSeoUrls
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository
  • VersionInfo
    • Factories
    • Reader
    • ValueObjects
  • VPE
    • Entities
    • Factories
    • Repositories

Classes

  • AdminFavoritesAjaxController
  • AdminInfoBoxAjaxController
  • AfterbuyAjaxController
  • CatalogSelectWidgetAjaxController
  • ContentManagerElementsAjaxController
  • ContentManagerElementsController
  • ContentManagerPagesAjaxController
  • ContentManagerPagesController
  • ContentManagerProductContentsAjaxController
  • ContentManagerProductContentsController
  • CustomerLoginController
  • DashboardController
  • DynamicShopMessagesController
  • EmailsController
  • EmbeddedModuleController
  • FileManagerController
  • GeschaeftskundenversandController
  • ImageProcessingController
  • InvoicesModalsAjaxController
  • InvoicesOverviewAjaxController
  • InvoicesOverviewController
  • JSWidgetsAjaxController
  • LawsController
  • MaxFileSizeController
  • ModuleCenterController
  • NewAttributesController
  • OrdersModalsAjaxController
  • OrdersOverviewAjaxController
  • OrdersOverviewController
  • OrderTooltipController
  • PackedDownloadController
  • QuantityUnitAjaxController
  • QuantityUnitController
  • QuickEditOverviewAjaxController
  • QuickEditOverviewController
  • QuickEditProductPropertiesAjaxController
  • QuickEditSpecialPricesAjaxController
  • SessionTimeoutAjaxController
  • ShopKeyController
  • SlidersDetailsAjaxController
  • SlidersDetailsController
  • SlidersOverviewAjaxController
  • SlidersOverviewController
  • StaticSeoUrlAjaxController
  • StaticSeoUrlController
  • TemplateConfigurationController
  • UserConfigurationController
  • VPEAjaxController
  • VPEController

Class ContentManagerPagesController

Class ContentManagerPagesController

HttpViewController implements HttpViewControllerInterface
Extended by AdminHttpViewController implements AdminStatusOnlyInterface
Extended by ContentManagerPagesController uses ContentManagerContentNavigationTrait
Package: AdminHttpViewControllers
Category: System
Located at Controllers/HttpView/Admin/ContentManager/ContentManagerPagesController.inc.php

Methods summary

public
# init( )

Initialize Controller

Initialize Controller

public AdminLayoutHttpControllerResponse
# actionDefault( )

Default actions, renders the content manager elements overview.

Default actions, renders the content manager elements overview.

Returns

AdminLayoutHttpControllerResponse

Overrides

HttpViewController::actionDefault
public AdminLayoutHttpControllerResponse
# actionEdit( )

Renders the editing form for content manager pages.

Renders the editing form for content manager pages.

Returns

AdminLayoutHttpControllerResponse
public RedirectHttpControllerResponse
# actionSaveInfoPage( )

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

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

Returns

RedirectHttpControllerResponse
public RedirectHttpControllerResponse
# actionUpdateContentPage( )

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

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

Returns

RedirectHttpControllerResponse
public RedirectHttpControllerResponse
# actionSaveScriptPage( )

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

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

Returns

RedirectHttpControllerResponse
public RedirectHttpControllerResponse
# actionUpdateFilePage( )

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

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

Returns

RedirectHttpControllerResponse
public RedirectHttpControllerResponse
# actionSaveLinkPage( )

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

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

Returns

RedirectHttpControllerResponse
public RedirectHttpControllerResponse
# actionUpdateLinkPage( )

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

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

Returns

RedirectHttpControllerResponse
protected array
# _prepareLinkPagePostData( )

Prepares $_POST data for content manager link pages.

Prepares $_POST data for content manager link pages.

Returns

array
Prepared data set for updating or inserting into the database.
protected
# _insertUrlRewrites( array $urlRewrites, integer $contentGroupId )

Inserts the given url rewrites in the database.

Inserts the given url rewrites in the database.

Parameters

$urlRewrites
Content data array.
$contentGroupId
Content group id.

Returns


$this|\ContentManagerPagesController Same instance for chained method calls.
protected
# _updateUrlRewrites( array $urlRewrites, integer $contentGroupId )

Updates the given url rewrites in the database.

Updates the given url rewrites in the database.

Parameters

$urlRewrites
Content data array.
$contentGroupId
Content group id.

Returns


$this|\ContentManagerPagesController Same instance for chained method calls.
public AdminLayoutHttpControllerResponse
# actionCreateMain( )

Renders the creation form for content manager main pages.

Renders the creation form for content manager main pages.

Returns

AdminLayoutHttpControllerResponse
public AdminLayoutHttpControllerResponse
# actionCreateSecondary( )

Renders the creation form for content manager secondary pages.

Renders the creation form for content manager secondary pages.

Returns

AdminLayoutHttpControllerResponse
public AdminLayoutHttpControllerResponse
# actionCreateInfo( )

Renders the creation form for content manager info pages.

Renders the creation form for content manager info pages.

Returns

AdminLayoutHttpControllerResponse
public AdminLayoutHttpControllerResponse
# actionCreateInfoBox( )

Renders the creation form for content manager info box pages.

Renders the creation form for content manager info box pages.

Returns

AdminLayoutHttpControllerResponse
protected AdminLayoutHttpControllerResponse
# _getCreationResponse( string $type )

Renders the creation form for content manager main pages.

Renders the creation form for content manager main pages.

Parameters

$type
Content manager type to be created, whether "main", "secondary" or "info".

Returns

AdminLayoutHttpControllerResponse
protected array
# _getContentManagerEditData( array $contentManagerData )

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

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

Parameters

$contentManagerData
Content manager data from sql query.

Returns

array
Prepared content manager data.
protected KeyValueCollection
# _getEditFormData( )

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

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

Returns

KeyValueCollection
Contains data for the edit form of content manager entries.
protected array
# _getContentEditData( integer $contentId, array $contentData )

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

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

Parameters

$contentId
Id of content manager entry to be edited.
$contentData
Content manager data to be edited.

Returns

array
protected array
# _getUrlRewriteEditData( integer $contentId )

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

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

Parameters

$contentId
Url rewrites table "content_id" value.

Returns

array
Url rewrites table data.
protected array
# _getEditData( integer $contentId, array $contentData )

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

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

Parameters

$contentId
Content manager tables "content_group" value.
$contentData
Raw data set from sql query.

Returns

array
Prepared data set array for edit forms of content manager pages.
protected array
# _getCkEditorData( integer $contentId, string $type )

Returns required data for CkEditor settings.

Returns required data for CkEditor settings.

Parameters

$contentId
Content manager tables "content_group" value.
$type
Content type, whether "content", "file" or "link".

Returns

array
protected array
# _getContentDataById( integer $contentId )

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

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

Parameters

$contentId
Content manager tables "content_group" value.

Returns

array
Content manager table data.
protected string
# _getContentPosition( array $queryResult )

Returns the content position of the given query result.

Returns the content position of the given query result.

Parameters

$queryResult
Data sets of query for content_manager table.

Returns

string
Whether "pages_main", "pages_secondary" or "pages_info".
protected string
# _getContentType( array $queryResult )

Returns the content type of the given query result.

Returns the content type of the given query result.

Parameters

$queryResult
Data sets of query for content_manager table.

Returns

string
Whether "content", "file" or "link".
protected array
# _prepareData( string $contentManagerType )

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

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

Parameters

$contentManagerType
Whether "infopage", "linkpage" or "scriptpage".

Returns

array
Contains data sets for content_manager- and url_rewrites table and an additional content group id.
protected array
# _prepareContentManagerData( integer $contentGroupId, string $contentManagerType )

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

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

Parameters

$contentGroupId
Content manager tables "content_group" value.
$contentManagerType
Whether "infopage", "linkpage" or "scriptpage".

Returns

array
Data set for the content_manager table.
protected array
# _getPagesData( )

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

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

Returns

array
protected string
# _getContentDescription( string $contentType )

Detects the content type names from the queries result data.

Detects the content type names from the queries result data.

Parameters

$contentType
Must be whether "link", "file" or "content".

Returns

string
Names of content types for whether "link", "file" or "content".
protected array
# _checkScriptpageFileUploads( )

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

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

Returns

array

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(), _getProductsContentFiles(), _getScriptPageFiles(), _getTemplate(), _getUpdateResponse(), _insertContentData(), _isFilemanagerAvailable(), _prepareContentManagerGroupCheckData(), _setExpertMode(), _updateContentData()

Properties summary

protected UserConfigurationService $userConfigurationService
#
protected LanguageTextManager $languageTextManager
#
protected LanguageProvider $languageProvider
#
protected CI_DB_query_builder $queryBuilder
#
protected array $fieldMap
# [ 'content_title', 'content_heading', 'content_text', 'contents_meta_title', 'contents_meta_keywords', 'contents_meta_description', 'url_rewrite', 'gm_robots_entry', 'gm_sitemap_entry', 'gm_priority', 'gm_changefreq', 'gm_link', 'gm_link_target', 'content_file', 'content_status', 'content_file', 'content_type' ]
protected array $switcherFields
# [ 'content_status', 'gm_robots_entry', 'gm_sitemap_entry' ]
protected array $typeMap
# [ 'content' => 'infopage', 'link' => 'linkpage', 'file' => 'scriptpage' ]
protected NonEmptyStringType $title
#

Properties inherited from HttpViewController

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

Properties used from ContentManagerContentNavigationTrait

$contentTypeFileFlagMap, $fileTypMap, $isExpertMode

API documentation generated by ApiGen