Overview
  • Package
  • Function

Packages

  • CT-API
  • CT-ChurchAuth
  • CT-ChurchCal
  • CT-ChurchCheckin
  • CT-ChurchCore
  • CT-ChurchDB
  • CT-ChurchFinance
  • CT-ChurchHome
  • CT-ChurchReport
  • CT-ChurchResource
  • CT-ChurchService
  • CT-ChurchTranslate
  • CT-ChurchWiki
  • CT-DB
  • CT-Form

Classes

  • CTAbstractModule
  • CTDBInterface
  • CTFileUploader
  • CTJSend
  • JSONResultObject
  • PDF
  • qqFileUploader
  • qqUploadedFileForm
  • qqUploadedFileXhr
  • TranslationBundle

Exceptions

  • CTException
  • CTNoPermission
  • CTWarnException
  • SQLException

Functions

  • __autoload
  • _churchcore_savePidUserSetting
  • _implantAuth
  • _simulateUser
  • about__ajax
  • about_main
  • addAuth
  • addCSS
  • addErrorMessage
  • addFilter
  • addHeader
  • addHttpHeader
  • addInfoMessage
  • addJS
  • addSuccessMessage
  • admin__ajax
  • admin__dump
  • admin__uploadfile
  • admin_main
  • admin_saveSettings
  • ajax
  • applyFilter
  • array_in_array
  • check_cal_entries
  • check_constraint
  • check_db_constraints
  • checkForDBUpdates
  • churchadmin_validateAdminForm
  • churchcore__filedownload
  • churchcore__logviewer
  • churchcore_CCEventData2String
  • churchcore_copyFileToOtherDomainId
  • churchcore_createOnTimeLoginKey
  • churchcore_delFile
  • churchcore_getAge
  • churchcore_getAuth
  • churchcore_getAvatarUrl
  • churchcore_getCompleteUserByCMSId
  • churchcore_getDateField
  • churchcore_getDBNow
  • churchcore_getFieldChanges
  • churchcore_getFiles
  • churchcore_getFilesAsDomainIdArr
  • churchcore_getInfosForDomain
  • churchcore_getMasterDataEntry
  • churchcore_getMyNotifications
  • churchcore_getPersonByEMail
  • churchcore_getPersonById
  • churchcore_getTableData
  • churchcore_getTextField
  • churchcore_getUserByCMSId
  • churchcore_getUserById
  • churchcore_getUserSettings
  • churchcore_icalToDate
  • churchcore_isModuleActivated
  • churchcore_isSameDay
  • churchcore_mail
  • churchcore_personalizeTemplate
  • churchcore_pollForNews
  • churchcore_renameFile
  • churchcore_renderFile
  • churchcore_renderImage
  • churchcore_saveReminder
  • churchcore_saveUserSetting
  • churchcore_sendEMailToPersonIDs
  • churchcore_sendMails
  • churchcore_sendReminders
  • churchcore_sendSystemMessage
  • churchcore_sort
  • churchcore_stringToDateDe
  • churchcore_stringToDateICal
  • churchcore_systemmail
  • churchtools_app
  • churchtools_main
  • churchtools_processRequest
  • cleanDir
  • cleanICal
  • convertMacToUtf8
  • convertUtf8ToUtf8
  • convertWindowsToUtf8
  • createAnonymousUser
  • createI18nFile
  • cron_do_dbdump
  • cron_main
  • ct_checkUserMail
  • ct_cleanDatabase
  • ct_createSettingsStatement
  • ct_createUserToken
  • ct_deleteOldTmpFiles
  • ct_getLicense
  • ct_getLicenseKey
  • ct_getMyReminders
  • ct_log
  • ct_logError
  • ct_logTimer
  • ct_notify
  • ct_printTimer
  • ct_saveConf
  • ct_sendPendingNotifications
  • ct_startTimer
  • current_date
  • datesInConflict
  • do_cron
  • endsWith
  • file_get_contents_curl
  • file_get_contents_curl_post
  • formatCTDateArrToICal
  • getAboutProText
  • getAboutText
  • getAllDatesWithRepeats
  • getAllowedStations
  • getAuthArrayForAuthidsAndDomainTypes
  • getAuthTable
  • getBaseUrl
  • getConf
  • getContrastYIQ
  • getCTModulesSorted
  • getCurrentUser
  • getDivSet
  • getHeader
  • getMimeTypes
  • getModulesMenuEntries
  • getTemplateContent
  • getTemplateContentTemp
  • getUserAuthorization
  • getUserForLogin
  • getUserLanguage
  • getUserMenuEntries
  • getUserSetting
  • getVar
  • handleShutdown
  • htmlize
  • includePlugins
  • isAllowed
  • isAllowedForPerson
  • isFullDay
  • isStationVisible
  • isStrongEnough
  • jsend
  • json_last_error_msg
  • jsonOutput
  • l
  • ldapBindUser
  • ldapFindUser
  • loadConfig
  • loadDBConfig
  • loadMapping
  • loadUserObjectInSession
  • login__ajax
  • login__newpwd
  • login_main
  • login_user
  • logout_current_user
  • logout_main
  • logParams
  • maintainGroupMemberstatus
  • pleaseAcceptDatasecurity
  • profile_main
  • prooveEMail
  • prooveOldPassword
  • public__filedownload
  • random_string
  • renderHelpIcon
  • renderIcon
  • renderIconStack
  • renderModulIcon
  • replaceSpecialCharsToUnderscore
  • rrmDir
  • run_db_updates
  • sanitizePathComponent
  • saveHistoricalData
  • scramble_password
  • sendTelegram
  • setBuildVersion
  • shorten_string
  • simulate_main
  • startSendingMailsInBackground
  • stripCSSFromHTML
  • surroundWithVCALENDER
  • t
  • t2
  • telegram_main
  • user_access
  • user_check_password
  • userLoggedIn
  • validateChangeUser
  • validateLogin

Function getTemplateContent

Get html or txt template. If no data is specified, return content (to eval later). Otherwise replace variables with data and return eval'ed content

Always available variables are: $user from globals and $name, $surename, $nickname of $user $sitename $modulename They will be overwritten by variables of $data.

Package: CT-ChurchCore
Located at system/includes/functions.php

Parameters summary

string $template $template, may include an folder like email/filename
string $module
array $data = false $data; default: false
string $type = 'html' $type; default: html, txt or any other file extension
$language = null
API documentation generated by ApiGen