Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • 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
  • cTinyMCEEditor
  • cWYSIWYGEditor
  • FrontendList
  • HtmlParser
  • TreeItem
  • UploadSearchResultList

Functions

  • _getCurrentTypes
  • _processCmsTags
  • addArtspec
  • addslashes_deep
  • 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
  • endsWith
  • 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
  • modTestModule
  • 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
  • setHelpContext
  • setSystemProperty
  • showTree
  • startTiming
  • statCreateLocationString
  • statDisplayTopChooser
  • statDisplayYearlyTopChooser
  • statGetAvailableMonths
  • statGetAvailableYears
  • statResetStatistic
  • statsArchive
  • statsDisplayInfo
  • statsOverviewAll
  • statsOverviewTop
  • statsOverviewTopYear
  • statsOverviewYear
  • strAssignTemplate
  • strBuildSqlValues
  • strCheckTreeForErrors
  • strCopyCategory
  • strCopyTree
  • strDeeperCategoriesArray
  • strDeleteCategory
  • strHasArticles
  • strHasStartArticle
  • stripslashes_deep
  • 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, mixed $page )

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

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

Parameters

$idmod
integer
$idmod the id of the modul
$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 mixed
# checkWritePermissions( )

Checks write permissions for module template

Checks write permissions for module template

Returns

mixed
$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
cPermission
$perm
$notification
cGuiNotification
$notification
$action
string
$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
{cGuiNotification}
$notification
private
# _makeFormular( mixed $belang )
public
# display( cPermission $perm, cGuiNotification $notification, mixed $belang )

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
Methods inherited from cModuleHandler
_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 mixed $_code
#
private mixed $_file
#
private mixed $_tmpFile
#
private mixed $_area
#
private mixed $_frame
#
private mixed $_status
#
private mixed $_action
#
private mixed $_new
#
private mixed $_delete
#
private mixed $_selectedFile
#
private mixed $_reloadScript
#
private mixed $_page NULL
#
private mixed $_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 premission for htmltpl.

In template we test if we have premission for htmltpl.

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