Trait ContentManagerContentNavigationTrait

Methods summary

protected _createContentNavigation( LanguageTextManager $languageTextManager, string|null $current = null ) : ContentNavigationCollection

Creates the content navigation object for the content manager templates.

protected _createNewContentGroupId( CI_DB_query_builder $queryBuilder ) : integer

Creates a new content group id.

protected _getUpdateResponse( string $contentManagerType, integer $contentGroupId, $editMethod = 'edit' ) : RedirectHttpControllerResponse

Whether redirects to the last overview or update pages.

protected _insertContentData( CI_DB_query_builder $queryBuilder, array $contentData ) :

Inserts the given content data in the database.

protected _getAssets( void ) : AssetCollection

Returns the assets for the content manager editing and creation pages.

protected _getTemplate( string $type, string $name ) : ExistingFile

Returns an existing file object with the path to a content manager template file. Take a look on the template files which are located in html/content/content_manager/$type directory to know possible values for the $name argument.

protected _updateContentData( CI_DB_query_builder $queryBuilder, array $contentData, integer $contentGroupId ) :

Updates the given content data in the database.

protected _getScriptPageFiles( void ) : array

Returns an array with allowed script files for content data.

protected _getProductsContentFiles( void ) : array

Returns an array with allowed script files for content data.

protected _isFilemanagerAvailable( void ) : boolean

Returns true if the "Responsive File Manager" is installed an false otherwise.

protected _setExpertMode( void )

Sets the expert mode, if the query parameter has been passed.

protected _prepareContentManagerGroupCheckData( void ) : string

Prepares $_POST data for the content_manager's 'group_ids' column.

protected _getContentType( array $queryResult ) : string

Returns the content type of the given query result.

Properties summary

protected $contentTypeFileFlagMap : array
[
    'pages_main'      => 'topmenu',
    'pages_secondary' => 'topmenu_corner',
    'pages_info'      => 'content',
    'pages_info_box'  => 'information',
    'elements_start'  => 'extraboxes',
    'elements_header' => 'extraboxes',
    'elements_footer' => 'extraboxes',
    'elements_boxes'  => 'extraboxes',
    'elements_others' => 'extraboxes',
    'elements_withdrawal' => 'withdrawal',
]
protected $fileTypMap : array
[
    'information',
    'content',
    'topmenu_corner',
    'topmenu',
    'extraboxes',
    'withdrawal'
]
protected $isExpertMode : boolean
false