Overview
  • Package
  • Class

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

Class CTAbstractModule

Base class for API Calls for Modules. This will be called when URL with ajax will be requested. All API calls will be made through ?q=MODULENAME/ajax&func=FUNCTIONNAME&param1=bla like ?q=login/ajax&func=login&username=bla

CTAbstractModule implements CTModuleInterface

Direct known subclasses

CTAdminModule, CTAuthModule, CTHomeModule, CTLoginModule, CTTranslateModule, CTChurchCalModule, CTChurchCheckinModule, CTChurchDBModule, CTChurchFinanceModule, CTChurchReportModule, CTChurchResourceModule, CTChurchServiceModule, CTChurchWikiModule

Abstract
Package: CT-ChurchCore
See: login_main()
Located at system/churchcore/classes/CTAbstractModule.class.php

Methods summary

protected
# saveMasterDataToDB( $id, $table )
public
# __construct( string $modulename )

constructor, set modulename

constructor, set modulename

Parameters

$modulename
public
# getModuleName( )

Get the module name

Get the module name

Implementation of

CTModuleInterface::getModuleName()
public
# getModulePath( )

Get the relative path to the module, e.g. system/churchresource

Get the relative path to the module, e.g. system/churchresource

Implementation of

CTModuleInterface::getModulePath()
protected multitype:
# getConstraints( )

Get constraints to prevent deleting of master Data

Get constraints to prevent deleting of master Data

Returns

multitype:
protected
# prooveDeleteMasterData( $table, $id )
protected
# deleteMasterDataReferences( $table, $id )
public
# deleteMasterData( array $params )

Delete row in DB

Delete row in DB

Parameters

$params
array(id, table)

Throws

CTNoPermission

Implementation of

CTModuleInterface::deleteMasterData()
public
# saveMasterData( array $params )

Save row in DB

Save row in DB

Parameters

$params
array(id, table and col0..n columnname and value0..n for data).

Throws

CTNoPermission

Implementation of

CTModuleInterface::saveMasterData()
public
# saveSetting( array $params )

Save user settings for current user

Save user settings for current user

Parameters

$params

array(sub, val) if $params["global"] is set, the global user (-1) is used

Implementation of

CTModuleInterface::saveSetting()
public
# setCookie( array $params )

Set cookie TODO: time should be set using constant to be customizable

Set cookie TODO: time should be set using constant to be customizable

Parameters

$params
array(sub, val)

Implementation of

CTModuleInterface::setCookie()
public
# setLanguage( $params )
public
# getSettings( )

get module settings for user

get module settings for user

See

CTModuleInterface::getSettings()

Implementation of

CTModuleInterface::getSettings()
public
# editNotification( array $params )

Parameters

$params
protected array
# getMasterDataOfTables( )

Gets the master data of the master data tables

Gets the master data of the master data tables

Returns

array
data
protected
# checkPerm( unknown $auth, string $modulename = null, string $datafield = null )

Parameters

$auth
$modulename
$datafield

Throws

CTNoPermission
public string
# call( )

Call function and returns JSON result

Call function and returns JSON result

Returns

string
public
# notify( string $domain_type, unknown $domain_id, string $txt, integer $loglevel = 2 )

Parameters

$domain_type
$domain_id
$txt
$loglevel
public string
# prepareForLog( array $params )

Prepare parameter for logging

Parameters

$params

Returns

string
public
# log( array $params, integer $loglevel = 2 )

Parameters

$params
$loglevel
public
# logPerson( array $params, integer $loglevel = 2, $write = 0 )

Parameters

$params
$loglevel
$write
public
# logGroup( array $params, integer $loglevel = 2 )

Parameters

$params
$loglevel
public
# logMasterData( array $params, integer $loglevel = 2 )

Parameters

$params
$loglevel
public
# getMasterDataTablenames( )

Get array with churchcore_getMasterDataEntry() entries for all MasterData tables. Or null if there is no table needed.

Get array with churchcore_getMasterDataEntry() entries for all MasterData tables. Or null if there is no table needed.

Implementation of

CTModuleInterface::getMasterDataTablenames()
public
# makeDownloadFile( $params )
public string
# generatePDF( string $params, string $html,…, string $orientation,… )

Generate a pdf from html and store it for download

Generate a pdf from html and store it for download

Parameters

$params
$basename
$html,…
$orientation,…
potrait or landscape or empty for potrait

Returns

string
$path_to_pdf
public
# hasPDFGenerator( )

Methods inherited from CTModuleInterface

getMasterData()

API documentation generated by ApiGen