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
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

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
  • 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
  • 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
  • Todo
  • Download

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, $page )

Constructor for the class cModuleHandler. With this class you can create a new module, rename a module. You can save a Output from modules and Input in a file. The save rules are [Modulname] (is unique) the files input and output will be named [Modulname]_input.php , [Modulname]_output.php

Constructor for the class cModuleHandler. With this class you can create a new module, rename a module. You can save a Output from modules and Input in a file. The save rules are [Modulname] (is unique) the files input and output will be named [Modulname]_input.php , [Modulname]_output.php

Parameters

$idmod
the id of the module
$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
$delete
public
# setCode( string $code )

Set the code from Form!

Set the code from Form!

Parameters

$code
public
# setSelectedFile( string $selectedFile )

Set the selected file from Form.

Set the selected file from Form.

Parameters

$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
$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
public
# setFrameIdmodArea( integer $frame, integer $idmod, integer $area )

Set $frame and idmod and are.

Set $frame and idmod and are.

Parameters

$frame
$idmod
$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
public
# checkWritePermissions( )

Checks write permissions for module template

Checks write permissions for module template

Returns


$this warning notification
boolean
true
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( )

Has the selected file changed.

Has the selected file changed.

Returns

boolean
is the filename changed
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( )

Make new file

Make new file

private
# _delete( )

Delete a file

Delete a file

public
# _default( )

Default case

Default case

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

Have the user premissions for the actions.

Have the user premissions for the actions.

Parameters

$perm
$notification
$action

Returns

integer
if user dont 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
private
# _makeFormular( $belang, $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
$notification
$belang
language (not sure about this...)
$readOnly
in read only mode
Methods inherited from cModuleHandler
_getModulePath(), _initByModule(), _makeModuleDirectory(), _testCode(), _verifyCode(), changeModuleName(), createModule(), createModuleDirectory(), createModuleFile(), deleteFile(), eraseModule(), existFile(), getAllFilesFromDirectory(), getCleanName(), getCssFileName(), getCssPath(), getEncoding(), getFilesContent(), getJsFileName(), getJsPath(), getModulePath(), getPhpPath(), getRandomCharacters(), getTemplatePath(), initWithDatabaseRow(), isWritable(), modulePathExists(), modulePathExistsInDirectory(), moduleWriteable(), readInput(), readOutput(), renameModul(), renameModuleFile(), saveContentToFile(), saveInfoXML(), saveInput(), saveOutput(), testInput(), testOutput()
Properties summary
private $_code
#
private $_file
#
private $_tmpFile
#
private $_area
#
private $_frame
#
private $_status
#
private $_action
#
private $_new
#
private $_delete
#
private $_selectedFile
#
private $_reloadScript
#
private $_page
# NULL
private $_notification
# NULL
private string $_templateFileEnding

The file end of template files.

The file end of template files.

# 'html'
private string $_newFileName

The name of the new file.

The name of the new file.

# 'newfilename'
private string $_actionCreate

Action name for create htmltpl

Action name for create htmltpl

# 'htmltpl_create'
private string $_actionEdit

Action name for edit htmltpl

Action name for edit htmltpl

# 'htmltpl_edit'
private string $_actionDelete

Action name for delete htmltpl_edit

Action name for delete htmltpl_edit

# 'htmltpl_delete'
private string $_testArea

In template we test if we have premission for htmltpl.

In template we test if we have premission for htmltpl.

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