Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cAjaxRequest
  • cAutoload
  • cBackend
  • cEffectiveSetting
  • cGuiScrollListAlltranslations
  • cHTMLValidator
  • cMailer
  • cModuleFileTranslation
  • cModuleHandler
  • cModuleSearch
  • cModuleSynchronizer
  • cModuleTemplateHandler
  • CodeMirror
  • cPasswordRequest
  • cPermission
  • cRegistry
  • cSystemPurge
  • cSystemtest
  • cTinymce4Configuration
  • cTinyMCE4Editor
  • cTinyMCEEditor
  • cWYSIWYGEditor
  • FrontendList
  • HtmlParser
  • TODOBackendList
  • TreeItem
  • UploadList
  • UploadSearchResultList

Functions

  • addArtspec
  • addSortImages
  • backToMainArea
  • buildArticleSelect
  • buildCategorySelect
  • buildCategorySelectRights
  • buildHeapTable
  • buildStackString
  • buildTree
  • buildUserOrGroupPermsFromRequest
  • callPluginStore
  • cApiCatGetLevelNode
  • cApiImageCheckCachedImageValidity
  • cApiImageCheckImageEditingPosibility
  • cApiImageGetCacheFileName
  • cApiImageGetTargetDimensions
  • cApiImageIsAnimGif
  • cApiImgScale
  • cApiImgScaleGetMD5CacheFile
  • cApiImgScaleHQ
  • cApiImgScaleImageMagick
  • cApiImgScaleLQ
  • cApiIsImageMagickAvailable
  • cApiStrCleanURLCharacters
  • cApiStrNormalizeLineEndings
  • cApiStrRecodeString
  • cApiStrReplaceDiacritics
  • cApiStrTrimAfterWord
  • cApiStrTrimHard
  • cApiStrTrimSentence
  • cDeprecated
  • cDie
  • cError
  • checkLangInClients
  • checkPathInformation
  • cInclude
  • compareUrlStrings
  • conChangeTemplateForCat
  • conCopyArticle
  • conCopyArtLang
  • conCopyContainerConf
  • conCopyContent
  • conCopyMetaTags
  • conCopyTemplateConfiguration
  • conCreateLocationString
  • conDeeperCategoriesArray
  • conDeleteart
  • conEditArt
  • conEditFirstTime
  • conFetchCategoryTree
  • conFlagOnOffline
  • conGenerateCode
  • conGenerateCodeForAllArts
  • conGenerateCodeForAllArtsInCategory
  • conGenerateCodeForAllartsUsingLayout
  • conGenerateCodeForAllartsUsingMod
  • conGenerateCodeForAllArtsUsingTemplate
  • conGenerateCodeForArtInAllCategories
  • conGenerateCodeForClient
  • conGenerateKeywords
  • conGetAvailableMetaTagTypes
  • conGetCategoryArticleId
  • conGetCategoryAssignments
  • conGetContainerConfiguration
  • conGetContentFromArticle
  • conGetHtmlTranslationTable
  • conGetMetaValue
  • conGetTemplateConfigurationIdForArticle
  • conGetTemplateConfigurationIdForCategory
  • conGetTopmostCat
  • conGetUsedModules
  • conHtmlentities
  • conHtmlEntityDecode
  • conHtmlSpecialChars
  • conIsLocked
  • conLock
  • conLockBulkEditing
  • conMakeArticleIndex
  • conMakeCatOnline
  • conMakeInlineScript
  • conMakeOnline
  • conMakeOnlineBulkEditing
  • conMakePublic
  • conMakeStart
  • conMoveArticles
  • conPhp54Check
  • conRemoveOldCategoryArticle
  • conSaveContentEntry
  • conSetCodeFlag
  • conSetCodeFlagBulkEditing
  • conSetMetaValue
  • conSyncArticle
  • copyRightsForElement
  • createBulkEditingFunction
  • createRandomName
  • createRightsForElement
  • cWarning
  • dbGetColumns
  • dbGetIndexes
  • dbGetPrimaryKeyName
  • dbTableExists
  • dbUpgradeTable
  • defineIfNotDefined
  • deleteArtspec
  • deleteRightsForElement
  • deleteSystemProperty
  • displayDatetime
  • emptyLogFile
  • endAndLogTiming
  • extractNumber
  • generateDisplayFilePath
  • generateJs
  • getAllClientsAndLanguages
  • getArtLang
  • getArtspec
  • getAvailableContentTypes
  • getCanonicalDay
  • getCanonicalMonth
  • getDirectorySize
  • getEffectiveSetting
  • getEffectiveSettingsByType
  • getEncodingByLanguage
  • getFileContents
  • getFileInformation
  • getFileType
  • getGroupOrUserName
  • getIDForArea
  • getJsHelpContext
  • getLanguageNamesByClient
  • getLanguagesByClient
  • getmicrotime
  • getNamedFrame
  • getParam
  • getParentAreaId
  • getSearchResults
  • getStrExpandCollapseButton
  • getSystemProperties
  • getSystemPropertiesByType
  • getSystemProperty
  • getTemplateSelect
  • getUplExpandCollapseButton
  • htmldecode
  • htmlentities_iso88592
  • humanReadableSize
  • includePlugins
  • insertEmptyStrRow
  • ipMatch
  • isAlphanumeric
  • isArchive
  • isArtInMultipleUse
  • isFunctionDisabled
  • isGroup
  • isIPv4
  • isRunningFromWeb
  • isStartArticle
  • isUtf8
  • isValidMail
  • langActivateDeactivateLanguage
  • langDeleteLanguage
  • langEditLanguage
  • langGetTextDirection
  • langNewLanguage
  • langRenameLanguage
  • layDeleteLayout
  • layEditLayout
  • machineReadableSize
  • mailLogBulkEditingFunctions
  • mailLogDecodeAddresses
  • markSubMenuItem
  • mask
  • modDeleteModule
  • modEditModule
  • phpInfoToHtml
  • plugin_include
  • prCreateURLNameLocationString
  • prDeleteCacheFileContent
  • prGetCacheFileContent
  • prResolvePathViaCategoryNames
  • prResolvePathViaURLNames
  • prWriteCacheFileContent
  • putFileContents
  • recursiveCopy
  • removeFileInformation
  • renderBackendBreadcrumb
  • renderLabel
  • renderSelectProperty
  • renderTextProperty
  • saveGroupRights
  • saveRights
  • scanDirectory
  • scanPlugins
  • sendEncodingHeader
  • set_magic_quotes_gpc
  • setArtspecDefault
  • setArtspecOnline
  • setSystemProperty
  • showTree
  • startTiming
  • statCreateLocationString
  • statDisplayTopChooser
  • statDisplayYearlyTopChooser
  • statGetAvailableMonths
  • statGetAvailableYears
  • statResetStatistic
  • statsArchive
  • statsDisplayInfo
  • statsOverviewAll
  • statsOverviewTop
  • statsOverviewTopYear
  • statsOverviewYear
  • strAssignTemplate
  • strBuildSqlValues
  • strCheckTreeForErrors
  • strCopyCategory
  • strCopyTree
  • strDeeperCategoriesArray
  • strDeleteCategory
  • strHasArticles
  • strHasStartArticle
  • strMakePublic
  • strMakeVisible
  • strMoveCatTargetallowed
  • strMoveDownCategory
  • strMoveSubtree
  • strMoveUpCategory
  • strNewCategory
  • strNewTree
  • strNextBackwards
  • strNextDeeper
  • strNextDeeperAll
  • strNextPost
  • strOrderedPostTreeList
  • strRemakeTreeTable
  • strRenameCategory
  • strRenameCategoryAlias
  • strSortPrePost
  • strSyncCategory
  • systemHavePerm
  • tplAutoFillModules
  • tplBrowseLayoutForContainers
  • tplcfgDuplicate
  • tplDeleteTemplate
  • tplDuplicateTemplate
  • tplEditTemplate
  • tplGetContainerDefault
  • tplGetContainerMode
  • tplGetContainerName
  • tplGetContainerNumbersInLayout
  • tplGetContainerTypes
  • tplGetInUsedData
  • tplIsTemplateInUse
  • tplPreparseLayout
  • tplProcessSendContainerConfiguration
  • updateClientCache
  • updateFileInformation
  • uplCreateFriendlyName
  • uplDirectoryListRecursive
  • uplGetDirectoriesToExclude
  • uplGetFileExtension
  • uplGetFileIcon
  • uplGetFileTypeDescription
  • uplGetThumbnail
  • uplHasFiles
  • uplHasSubdirs
  • uplmkdir
  • uplRecursiveDBDirectoryList
  • uplRecursiveDirectoryList
  • uplRenameDirectory
  • uplSearch
  • uplSyncDirectory
  • uplSyncDirectoryDBFS
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cModuleTemplateHandler

Class handels the view, creation, edit, delete of modul templates.

cModuleHandler
Extended by cModuleTemplateHandler
Package: Core\Backend
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Rusmir Jusufovic
Located at classes/module/class.module.template.handler.php
Methods summary
public
# __construct( integer $idmod, cGuiPage $page )

Constructor to create an instance of this class.

Constructor to create an instance of this class.

Parameters

$idmod
integer
$idmod
$page
cGuiPage
$page

Throws

cException
if the module directory can not be created

Overrides

cModuleHandler::__construct()
public
# setNewDelete( string $new, string $delete )

Set the new delete from Form. This are set if user had push the delete or new button.

Set the new delete from Form. This are set if user had push the delete or new button.

Parameters

$new
string
$new
$delete
string
$delete
public
# setCode( string $code )

Set the code from Form!

Set the code from Form!

Parameters

$code
string
$code
public
# setSelectedFile( string $selectedFile )

Set the selected file from Form.

Set the selected file from Form.

Parameters

$selectedFile
string
$selectedFile
public
# setFiles( string $file, string $tmpFile )

Set the file and tmpFile from Form. (get it with $_Request...)

Set the file and tmpFile from Form. (get it with $_Request...)

Parameters

$file
string
$file
$tmpFile
string
$tmpFile
public
# setStatus( string $status )

Set the status it can be send or empty ''

Set the status it can be send or empty ''

Parameters

$status
string
$status
public
# setFrameIdmodArea( integer $frame, integer $idmod, integer $area )

Set $frame and idmod and are.

Set $frame and idmod and are.

Parameters

$frame
integer
$frame
$idmod
integer
$idmod
$area
integer
$area
public
# setAction( string $action )

We have two actions wich could send from form.

We have two actions wich could send from form.

Parameters

$action
string
$action
public |boolean
# checkWritePermissions( )

Checks write permissions for module template

Checks write permissions for module template

Returns

|boolean
private string
# _getAction( )

The method decide what action is send from user (form).

The method decide what action is send from user (form).

Returns

string
[new, delete,empty,save,rename, default]

Throws

cException
if one of the filenames is not set
private boolean
# _hasSelectedFileChanged( )

Checks if the selected file has changed.

Checks if the selected file has changed.

Returns

boolean
private
# _save( )

Save the code in the file

Save the code in the file

private
# _rename( )

rename a file in template directory

rename a file in template directory

Throws

cException
if rename was not successfull
private
# _new( )

Create new file

Create new file

private
# _delete( )

Delete a file

Delete a file

public
# _default( )

Default case

Default case

private integer
# _havePermission( cPermission $perm, cGuiNotification $notification, string $action )

Have the user permissions for the actions.

Have the user permissions for the actions.

Parameters

$perm
cPermission
$perm
$notification
cGuiNotification
$notification
$action
string
$action

Returns

integer
if user doesn't have permission return -1
private
# _validateHTML( cGuiNotification $notification )

This method test the code if the client setting htmlvalidator is not set to false.

This method test the code if the client setting htmlvalidator is not set to false.

Parameters

$notification
cGuiNotification
$notification
private
# _makeFormular( string $belang, boolean $readOnly )

Parameters

$belang
string
$belang
$readOnly
boolean
$readOnly
public
# display( cPermission $perm, cGuiNotification $notification, string $belang, boolean $readOnly )

Display the form and evaluate the action and excute the action.

Display the form and evaluate the action and excute the action.

Parameters

$perm
cPermission
$perm
$notification
cGuiNotification
$notification
$belang
string
$belang Backend language (not sure about this...)
$readOnly
boolean
$readOnly render in read only mode
Methods inherited from cModuleHandler
_initByModule(), _makeModuleDirectory(), _testCode(), _verifyCode(), changeModuleName(), createModule(), createModuleDirectory(), createModuleFile(), deleteFile(), eraseModule(), existFile(), getAllFilesFromDirectory(), getCleanName(), getCssFileName(), getCssPath(), getEncoding(), getFilesContent(), getJsFileName(), getJsPath(), getModuleName(), getModulePath(), getPhpPath(), getRandomCharacters(), getTemplatePath(), initWithDatabaseRow(), isWritable(), modulePathExists(), modulePathExistsInDirectory(), moduleWriteable(), readInput(), readOutput(), renameModul(), renameModuleFile(), saveContentToFile(), saveInfoXML(), saveInput(), saveOutput(), testInput(), testOutput()
Properties summary
private string $_code
#

Form fields

Form fields

private string $_file
#
private string $_tmpFile
#
private integer $_area
#
private integer $_frame
#
private string $_status
#
private string $_action
#
private string $_new
#
private string $_delete
#
private string $_selectedFile
#
private cGuiPage $_page NULL
#
private cGuiNotification $_notification NULL
#
private string $_templateFileEnding 'html'
#

The file end of template files.

The file end of template files.

private string $_newFileName 'newfilename'
#

The name of the new file.

The name of the new file.

private string $_actionCreate 'htmltpl_create'
#

Action name for create htmltpl

Action name for create htmltpl

private string $_actionEdit 'htmltpl_edit'
#

Action name for edit htmltpl

Action name for edit htmltpl

private string $_actionDelete 'htmltpl_delete'
#

Action name for delete htmltpl_edit

Action name for delete htmltpl_edit

private string $_testArea 'htmltpl'
#

In template we test if we have permission for htmltpl.

In template we test if we have permission for htmltpl.

Properties inherited from cModuleHandler
$_cfg, $_cfgClient, $_client, $_description, $_directories, $_encoding, $_encodingStore, $_fileEncoding, $_idlang, $_idmod, $_input, $_moduleAlias, $_output, $_type
CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0