/** * * @see CTModuleInterface::getMasterData() */ public function getMasterData() { global $user, $base_url, $files_dir, $config; include_once CHURCHCAL . '/churchcal_db.php'; $auth = churchservice_getAuthorization(); $res = $this->getMasterDataTables(); $res["masterDataTables"] = $this->getMasterDataTablenames(); $res["auth"] = $auth; $res["modulespath"] = churchservice_getModulesPath(); $res["base_url"] = $base_url; $res["files_url"] = $base_url . $files_dir; $res["files_dir"] = $files_dir; $res["modulename"] = "churchservice"; $res["adminemail"] = variable_get('site_mail', ''); $res["user_pid"] = $user->id; $res["user_name"] = $user->vorname . " " . $user->name; $res["userid"] = $user->cmsuserid; $res["settings"] = churchservice_getUserSettings($user->id); $res["notification"] = churchcore_getMyNotifications(); $res["notificationtype"] = churchcore_getTableData("cc_notificationtype"); $res["lastLogId"] = churchservice_getLastLogId(); $res["eventtemplate"] = churchcore_getTableData("cs_eventtemplate", "sortkey"); $res["category"] = churchcal_getAllowedCategories(false); $res["eventtemplate_services"] = churchservice_getEventtemplateServices($auth); $res["churchcal_name"] = $config["churchcal_name"]; $res["songwithcategoryasdir"] = variable_get("churchservice_songwithcategoryasdir", "0"); $res["songcategory"] = churchcore_getTableData("cs_songcategory", "sortkey"); return $res; }
/** * * @see CTModuleInterface::getMasterData() */ public function getMasterData() { global $user, $base_url, $files_dir, $config; include_once CHURCHCAL . '/churchcal_db.php'; $auth = churchservice_getAuthorization(); $res = $this->getMasterDataTables(); $res["masterDataTables"] = $this->getMasterDataTablenames(); $res["auth"] = $auth; $res["modulespath"] = churchservice_getModulesPath(); $res["base_url"] = $base_url; $res["files_url"] = $base_url . $files_dir; $res["files_dir"] = $files_dir; $res["modulename"] = "churchservice"; $res["adminemail"] = getConf('site_mail', ''); $res["user_pid"] = $user->id; $res["user_name"] = $user->vorname . " " . $user->name; $res["userid"] = $user->cmsuserid; $res["settings"] = churchservice_getUserSettings($user->id); $res["notification"] = churchcore_getMyNotifications(); $res["notificationtype"] = churchcore_getTableData("cc_notificationtype"); $res["lastLogId"] = churchservice_getLastLogId(); $res["eventtemplate"] = churchcore_getTableData("cs_eventtemplate", "sortkey"); $res["category"] = churchcal_getAllowedCategories(false); $res["repeat"] = churchcore_getTableData("cc_repeat"); $res["eventtemplate_services"] = churchservice_getEventtemplateServices($auth); $res["churchcal_name"] = $config["churchcal_name"]; $res["churchservice_name"] = $config["churchservice_name"]; $res["songwithcategoryasdir"] = getConf("churchservice_songwithcategoryasdir", "0"); $res["songcategory"] = churchcore_getTableData("cs_songcategory", "sortkey"); $res["views"] = array("ListView" => array("filename" => "cs_listview"), "SettingsView" => array("filename" => "cs_settingsview"), "CalView" => array("filename" => "cs_calview"), "SongView" => array("filename" => "cs_songview"), "AgendaView" => array("filename" => "cs_agendaview"), "FactView" => array("filename" => "cs_factview"), "MaintainView" => array("filename" => "cs_maintainview")); return $res; }