Package CT-ChurchDB
Functions summary
| _addGroupRelationDataForExport | |
| _churchdb_a | get a link for ??? FIXME: url() dont exists - have i deleted/renamed it or where is this function? |
| _churchdb_delPersonGroupRelation | delete group membership |
| _churchdb_editPersonGroupRelation | edit group membership TODO: rename to editMembership or editGroupMembership |
| _churchdb_getGemeindepersonIdFromPersonId | get church person id from person id TODO: rename function |
| _churchdb_getPersonById | get person(s) by id |
| _churchdb_getPersonByName | Holt sich eine Person entweder in den Gruppen in denen ich auch bin oder die Bereiche, wo ich ViewAll habe. |
| _churchdb_getPersonIdFromGemeindepersonId | Get person id from table CDB_GEMEINDEPERSON GEMEINDEPERSON was an idea to separate concrete church people from companies etc. But it was never used as this. TODO: function is obsolete for person id is always the same as cdb id. Put all data in one table. |
| _export_optimzations | optimize person data for export |
| _getExportTemplateByName | |
| _getPersonDataForExport | prepare person data for export |
| _setAuth | |
| addMyGroupAuthFromDomain | Calculate auto permissions from $auth to $myGroup[$gId] and all subgroups |
| addRelation | add relation |
| archiveUser | archive user set archive flag to 1, on undo to 0 |
| cancelGroupMeeting | cancel group meeting (set flag in DB) |
| cdb_log | log entry for churchdb |
| checkFieldAuth | Check if at least one part of f.e. " view all || leader " is in $permissions |
| chuchdb_hasAutomaticGroupEMail | check if group specific welcome mail is configured |
| chuchdb_sendAutomaticGroupEMail | send group specific welcome mail if available |
| churchdb__ajax | |
| churchdb__birthdaylist | get birthdaylist |
| churchdb__export | export data (send header and echo result) |
| churchdb__filedownload | filedownload |
| churchdb__mailviewer | view mails |
| churchdb__saveMailAttachement | |
| churchdb__uploadfile | Upload file for ChurchDB |
| churchdb__vcard | get VCard (send header and echo result) |
| churchdb_activatePerson | activate person |
| churchdb_addEvent | Add event to group meetings TODO: rename to addGroupMeeting |
| churchdb_addMailchimpRelation | add mail chimp relation |
| churchdb_addPersonAuth | add person auth |
| churchdb_addPersonGroupRelation | ut person in group by adding a group - person relation |
| churchdb_blocks | get array with several content blocks for start page |
| churchdb_calcGrowPathForAllPeople | |
| churchdb_calcGrowPathForGroup | |
| churchdb_calcGrowPathForGrouptypeMemberstatus | |
| churchdb_calcGrowPathForPerson | Calculate the growpath for person pId and save it to cdb_gemeindeperson and save value in historical data |
| churchdb_countMembersInGroup | count member of Group |
| churchdb_cron | cron job |
| churchdb_deactivatePerson | deactivate person |
| churchdb_deleteLastGroupStatistik | delete last group statistic |
| churchdb_delMailchimpRelation | delete mail chimp relation |
| churchdb_getAddFieldsForGroupWithData | |
| churchdb_getAdminForm | TODO - rethink naming - looks like preferences - AdminModel??? |
| churchdb_getAllGroups | Get all groups in arr and add "parents" and "childs" as array of ids |
| churchdb_getAllowedDeps | Get departements user has view permission for (viewall or user in department) |
| churchdb_getAllowedGroups | get group data from all groups i have permission for |
| churchdb_getAllowedPersonData | get person data |
| churchdb_getAllPeopleIdsFromGroups | get ids of all persons in groups $myGroups |
| churchdb_getAuth | get auth for churchdb |
| churchdb_getAuthForAjax | geth auth for ajax |
| churchdb_getAuthTable | get auth table |
| churchdb_getBlockBirthdays | |
| churchdb_getFields | get additional DB fields |
| churchdb_getForum | |
| churchdb_getGroupsForPersonId | Returns all groups for person p_id. For hidden groups only return groups which I am allowed to see |
| churchdb_getGrouptypeDefaultApplicationMemberstatus | |
| churchdb_getGrouptypeDefaultMemberstatus | Get standard membersstatus for group $groupId |
| churchdb_getGrouptypeDeletedMemberstatus | Get request membersstatus for group $groupId |
| churchdb_getGrouptypeRequestMemberstatus | Get request membersstatus for group $groupId |
| churchdb_getLastCheckinInfos | |
| churchdb_getMailchimpApi | |
| churchdb_getMailChimpList | |
| churchdb_getMailChimpLists | |
| churchdb_getMasterDataOfTable | Get table data for $tablename If tablename is cdb_group[type]_memberstatus then auth will be added |
| churchdb_getMasterDataOfTables | get masterdata tables |
| churchdb_getMasterDataTablenames | get masterdata tablenames |
| churchdb_getModulesPath | get module path |
| churchdb_getMyGroups | get groups with child and parent Ids where $userPid is in. See auth for allowed group membership |
| churchdb_getPersonDetails | get person details TODO: create a class for persons |
| churchdb_getPersonDetailsLogs | get log entries regarding person details for a person |
| churchdb_getTodos | Get personal ToDos for the home page TODO explain, when gpg.status_no < -1 / replace status_nos by speaking constants |
| churchdb_getUserSettings | get user settings for churchDB |
| churchdb_invitePersonToSystem | send person an invitation with singleuse loginstring per email |
| churchdb_isAllowedForGroupId | Check group permission set through group or groupmemberstatus auto perm |
| churchdb_isPersonInGroup | Is person $user_id in $group? |
| churchdb_loadMailchimp | load mail chimp |
| churchdb_main | |
| churchdb_saveDomainAuth | save domain auth |
| churchdb_send_mail | send mail using churchcore_systemmail() |
| churchdb_sendsms | send sms or telegram if user is connected TODO: use sms template |
| churchdb_setPersonPassword | set password of person (will be scrambled before storing in DB) |
| churchdb_smspromote | smspromote (german provider for sending paid SMS) |
| churchdb_syncMailchimp | |
| createAddress | create address |
| createGroup | create group |
| createGroupMeetings | create group meetings |
| deleteGroup | delete group and all group realtions |
| deleteGroupMeetingStats | delete statistic of group meeting |
| deleteUser | delete user and all related data |
| delRelation | delete relation |
| editCheckinGroupMeetingStats | |
| entryGroupMeeting | entry for group meeting |
| externmapview__ajax | view external map (ajax) |
| externmapview_main | view external map |
| f_functions | |
| getAllCommentViewer | get comment viewers |
| getAllDepartments | Get all departments |
| getAllFields | get all fields |
| getAllMailNotifys | get all mail notifications |
| getAllRelations | Get all relations of all persons |
| getAllRelationTypes | get relation types |
| getAllTags | Get all tags |
| getAuthForDomain | get auth for domain |
| getAuthForPerson | get auth for domain person |
| getBirthdayList | get birthday list |
| getBirthdaylistContent | get html formatted content for birthdaylist |
| getExternalGroupData | get external group data |
| getGroupChildIds | Get recoursive all group child ids unto deep_no |
| getGroupInfo | Get group data (name, type, mail flag) of $g_id |
| getGroupMeeting | Get a group meeting TODO: optimize sql requests |
| getGroupMeetingStats | get statistics of group meetings aggregate by person & group |
| getGroupsMeeting | |
| getMyGroupIdsWhereIAmAllowed | |
| getMyMaxSecLevelForGroup | Returns the max security Level for group |
| getMyMaxSecLevelForPerson | Returns the max security level for person |
| getOldGroupRelations | get old group relation data, if user is allowed to view history |
| getPersonalNews | get personal newsletter for person p_id not used at the moment! |
| getPersonGroupRelation | get person - group relation |
| getSearchableData | get person data to search for |
| getSelectField | get select field |
| getTagRelations | get tag relations |
| getWhoIsOnline | get list of online users (html) |
| informLeaderAboutDeletedGroupMember | inform leader about deleted group member |
| informLeaderAboutEditedGroupMember | inform leader about edited group member and sends an additional text if available |
| informLeaderAboutMembershipChange | inform leader about new or changed group member and sends an additional text if available |
| informLeaderAboutNewGroupMember | inform leader about new group member and sends an additional text if available |
| listBatchSubscribe | subscribe all persons in $batch to $list_id |
| listBatchUnsubscribe | unsubscribe all persons in $batch from $list_id |
| saveBereich | save department |
| saveDataArray | save data array |
| saveGeocodeGruppe | save geocodes for a group |
| saveGeocodePerson | save geocodes for a person |
| saveImage | save image for person delete existing image file and updates image url in DB? |
| saveNote | save note to a relation TODO: add :params |
| savePropertiesGroupMeetingStats | |
| sendConfirmationMail | send confirmation email |
| sendFieldNotifications | send notification for changed field TODOː no email template needed? DEPRECATED! Not officially supported |
| setCMSUser | set username for person |
| sort_export_func | for use in usort() |
| subscribeGroup | do several things??? with groups and memberships |