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
  • UploadList
  • UploadSearchResultList

Functions

  • _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
  • 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
  • getAktuellType
  • 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
  • tplGetContainerTypes
  • tplGetInUsedData
  • tplIsTemplateInUse
  • tplPreparseLayout
  • updateClientCache
  • updateFileInformation
  • uplCreateFriendlyName
  • uplDirectoryListRecursive
  • uplGetDirectoriesToExclude
  • uplGetFileExtension
  • uplGetFileIcon
  • uplGetFileTypeDescription
  • uplGetThumbnail
  • uplHasFiles
  • uplHasSubdirs
  • uplmkdir
  • uplRecursiveDBDirectoryList
  • uplRecursiveDirectoryList
  • uplRenameDirectory
  • uplSearch
  • uplSyncDirectory
  • uplSyncDirectoryDBFS
  • xmlFileToArray
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cModuleSynchronizer

This class synchronized the contents of modul dir with the table $cfg['tab']['mod']. If a modul exist in modul dir but not in $cfg['tab']['mod'] this class will insert the modul in the table.

cModuleHandler
Extended by cModuleSynchronizer
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.synchronizer.php
Methods summary
private
# _syncModule( string $dir, string $oldModulName, string $newModulName )

This method insert a new modul in $cfg['tab']['mod'] table, if the name of modul dont exist

This method insert a new modul in $cfg['tab']['mod'] table, if the name of modul dont exist

Parameters

$dir
string
$dir
$oldModulName
string
$oldModulName
$newModulName
string
$newModulName
private
# _renameFiles( string $dir, string $oldModulName, string $newModulName )

Rename css, js and input/output file

Rename css, js and input/output file

Parameters

$dir
string
$dir
$oldModulName
string
$oldModulName
$newModulName
string
$newModulName
private boolean
# _renameFileAndDir( string $dir, string $dirNameOld, string $dirNameNew, integer $client )

Rename the Modul files and Modul dir

Rename the Modul files and Modul dir

Parameters

$dir
string
$dir path the the moduls
$dirNameOld
string
$dirNameOld old dir name
$dirNameNew
string
$dirNameNew new dir name
$client
integer
$client idclient

Returns

boolean
true if succes (rename file and directories)
public integer
# compareFileAndModuleTimestamp( )

Compare file change timestemp and the timestemp in ['tab']['mod']. If file had changed make new code :conGenerateCodeForAllArtsUsingMod

Compare file change timestemp and the timestemp in ['tab']['mod']. If file had changed make new code :conGenerateCodeForAllArtsUsingMod

Returns

integer
id of last update module
private integer
# _synchronizeFilesystemAndDb( mixed $db )

If someone delete a moduldir with ftp/ssh. We have a modul in db but not in directory, if the modul in use make a new modul in fileystem but if not clear it from filesystem.

If someone delete a moduldir with ftp/ssh. We have a modul in db but not in directory, if the modul in use make a new modul in fileystem but if not clear it from filesystem.

Returns

integer
id of last update module
private boolean
# _isValidFirstChar( string $file )

If the first char a '.' return false else true

If the first char a '.' return false else true

Parameters

$file
string
$file

Returns

boolean
true if the first char !='.' else false
public integer
# synchronize( )

Depending on the client, this method will check the modul dir of the client and if found a Modul(Dir) that not exist in Db-table this method will insert the Modul in Db-table ([tab][mod]).

Depending on the client, this method will check the modul dir of the client and if found a Modul(Dir) that not exist in Db-table this method will insert the Modul in Db-table ([tab][mod]).

Returns

integer
last id of synchronized module
private boolean
# _isExistInTable( string $alias, integer $idclient )

This method look in the db-table $cfg['tab']['mod'] for a modul name. If the modul name exist it will return true

This method look in the db-table $cfg['tab']['mod'] for a modul name. If the modul name exist it will return true

Parameters

$alias
string
$name name ot the modul
$idclient
integer
$idclient idclient

Returns

boolean
if a modul with the $name exist in the $cfg['tab']['mod'] table return true else false
private
# _updateModulnameInDb( string $oldName, string $newName, integer $idclient )

Update the name of module (if the name not allowes)

Update the name of module (if the name not allowes)

Parameters

$oldName
string
$oldName old name
$newName
string
$newName new module name
$idclient
integer
$idclient id of client
private
# _addModul( string $name, integer $idclient )

This method add a new Modul in the table $cfg['tab']['mod'].

This method add a new Modul in the table $cfg['tab']['mod'].

Parameters

$name
string
$name neme of the new module
$idclient
integer
$idclient mandant of the module
public
# setLastModified( integer $timestamp, integer $idmod )

Update the con_mod, the field lastmodified

Update the con_mod, the field lastmodified

Parameters

$timestamp
integer
$timestamp timestamp of last modification
$idmod
integer
$idmod id of modul
Methods inherited from cModuleHandler
__construct(), _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 integer $_lastIdMod 0
#

The last id of the module that had changed or had added.

The last id of the module that had changed or had added.

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