Package CT-ChurchService
Functions summary
| _convertCTDateTimeToObjects | convert CT eventdate into object, converts dates to DateTime object, set diff, repeat_until convert exceptions and additions to object |
| ccli_disableToken | |
| ccli_executeRequest | |
| ccli_getAuthorizationURL | |
| ccli_getChordsFile | |
| ccli_getLyrics | |
| ccli_getOAuthConsumer | |
| ccli_getSongData | |
| ccli_getSongsMatchingTitle | |
| ccli_main | main ccli function for handling callback from CCLI OAuth should exchange the oauth request token into an oauth access token, then store it and redirect to settings page |
| ccli_saveLyricsFile | |
| ccli_sendGet | |
| ccli_sendPost | |
| churchservice__ajax | main churchservice ajax function |
| churchservice__exportfacts | export facts |
| churchservice__factReport | |
| churchservice__filedownload | filedownload |
| churchservice__printview | print view |
| churchservice__saveMailAttachement | |
| churchservice__uploadfile | Upload file for ChurchService |
| churchservice_addArrangement | add arrangement |
| churchservice_addNewSong | add new song |
| churchservice_addOrRemoveServiceToEvent | add/remove service to event |
| churchService_adminOfEvent | check if current $user is admin of event |
| churchservice_blocks | get array of blocks from churchservice |
| churchservice_copyEventByCalId | copy event by cal id |
| churchservice_createEvent | save new or update existing event if eventTemplate is given in $params get data from there, else use services |
| churchservice_cron | cron for churchservice (send reminder emails, info about open services and requests |
| churchservice_delAbsent | delete absent |
| churchservice_delArrangement | delete arrangement |
| churchservice_deleteEvent | Delete CS-Event, inform people about deleted event and delete calendar entry |
| churchservice_deleteService | delete service |
| churchservice_deleteSong | |
| churchservice_editArrangement | edit song arrangement |
| churchservice_editService | TODO: after creating a new service the add service window will be closed rather then completed with the new service! This should be able without reloading the entire page. |
| churchservice_editServiceGroupPersonWeight | edit person weight for service group (for auto planning?) |
| churchservice_editSong | edit song |
| churchservice_extractEventServiceData | extract event service data from $arr |
| churchservice_getAbsents | get absent times |
| churchservice_getActiveServicesInEvent | Get all Active Servies in the CSEvents belonging to Cal eventId |
| churchservice_getAdminForm | get form for churchservice system preferences |
| churchservice_getAllEventData | Load all Events and services in the current time slot |
| churchservice_getAllowedFacts | get all facts for event |
| churchservice_getAllSongs | get all songs |
| churchservice_getAuth | |
| churchservice_getAuthorization | get church service authorisation |
| churchservice_getCurrentEvents | get current events with services of groups i am leader/coleader of |
| churchservice_getEventChangeImpact | |
| churchservice_getEventtemplateServices | get services from event template |
| churchservice_getFactReport | |
| churchservice_getGroupIdsFromServices | Concat all group_ids from services |
| churchservice_getGroupsOfService | get groups responsible for service $service_id |
| churchservice_getGroupsOfServiceGroup | get groups responsible for services in servicegroup $servicegroup_id |
| churchservice_getLastFactData | Get allowed fact data of last $lastDays days and try to get previous year data too |
| churchservice_getModulesPath | |
| churchservice_getNewEventData | get event data, which has changed after LastLogId |
| churchservice_getPersonByGroupIds | get person(s) by group id as array[group][person] |
| churchservice_getServiceGroupPersonWeight | get person weight for service group (for auto planning?) |
| churchservice_getServicesForEvent | Get all valid eventservices for event |
| churchservice_getUserCurrentServices | get current services of user $id |
| churchservice_getUserNextServices | get next services for current user |
| churchservice_getUserOpenServices | get pending service requests of current user TODO: rename to getPendingRequests or getPendingRequestsOfUser |
| churchservice_getUserSettings | get user settings and set remindMe to on if not yet |
| churchservice_ical | echo ical for services to do from user id (read from request) |
| churchservice_inform_leader | inform leader about open event services TODO: no idea if this could be improved - lots of sql requests and loops |
| churchservice_isAgendaTemplate | Checks if the agenda is a template |
| churchservice_main | main function for churchservice |
| churchservice_makeAsStandardArrangement | set arrangement as standard |
| churchservice_openservice_rememberdays | info for pending requests TODO: rename churchservice_openservice_rememberdays, f.e. to sendOpenServiceRememberMail TODO: could sql queries be reduced? |
| churchservice_operateEventFromChurchCal | This function is called from ChurchCal when Event was created, updated or deleted Each event will be iterated through and then decide wheater to create, update or delete event |
| churchservice_pollForNews | poll for news |
| churchservice_printFactsOfLastDays | get facts of past 3 days |
| churchservice_rebindServicesToNewEvent | Rebind an event to a new Cal Event |
| churchservice_remindme | remind users of there eventservices |
| churchservice_saveFact | save fact |
| churchservice_saveNote | save note |
| churchservice_send_mail | send email |
| churchservice_sendreport | |
| churchservice_updateEvent | Update existing event if eventTemplate is given in $params get data from there, else use services |
| churchservice_updateEventService | update event service |
| churchservice_updateOrInsertTemplate | update or insert event template |
| FromChurchCal | called by ChurchCal on changes in calendar events it uses old_startdate to move all events, then checks if there are events to create or delete from changes in repeats, exceptions or additions |
| ical_main | main ical function |
| isAllowedForEvent | Returns if I have the permission to do perm for Event Id. It will prove the group relation and there automatic permissions. |
| isAllowedForService | |
| sanitizeToken |