Highway to PSR2
[openemr.git] / interface / main / calendar / modules / PostCalendar / pntables.php
blob6efa402558f58465b8fa3fa08d96935ae1381575
1 <?php
2 /**
3 * $Id$
5 * PostCalendar::PostNuke Events Calendar Module
6 * Copyright (C) 2002 The PostCalendar Team
7 * http://postcalendar.tv
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 * To read the license please read the docs/license.txt or visit
24 * http://www.gnu.org/copyleft/gpl.html
28 /**
29 * This function is called internally by the core whenever the module is
30 * loaded. It adds in the information
32 function postcalendar_pntables()
34 // Initialise table array
35 $pntable = array();
36 $prefix = pnConfigGetVar('prefix');
37 //$prefix = 'Rogue';
39 $pc_events = $prefix . '_postcalendar_events';
40 $pntable['postcalendar_events'] = $pc_events;
41 $pntable['postcalendar_events_column'] = array(
42 'eid' => 'pc_eid',
43 'catid' => 'pc_catid',
44 'lid' => 'pc_lid',
45 'aid' => 'pc_aid',
46 'title' => 'pc_title',
47 'time' => 'pc_time',
48 'hometext' => 'pc_hometext',
49 'comments' => 'pc_comments',
50 'counter' => 'pc_counter',
51 'topic' => 'pc_topic',
52 'informant' => 'pc_informant',
53 'eventDate' => 'pc_eventDate',
54 'duration' => 'pc_duration',
55 'endDate' => 'pc_endDate',
56 'recurrtype' => 'pc_recurrtype',
57 'recurrspec' => 'pc_recurrspec',
58 'recurrfreq' => 'pc_recurrfreq',
59 'startTime' => 'pc_startTime',
60 'endTime' => 'pc_endTime',
61 'alldayevent' => 'pc_alldayevent',
62 'location' => 'pc_location',
63 'conttel' => 'pc_conttel',
64 'contname' => 'pc_contname',
65 'contemail' => 'pc_contemail',
66 'website' => 'pc_website',
67 'fee' => 'pc_fee',
68 'eventstatus' => 'pc_eventstatus',
69 'sharing' => 'pc_sharing',
70 'language' => 'pc_language'
73 // @since version 3.1
74 // new category table
75 $pc_categories = $prefix . '_postcalendar_categories';
76 $pntable['postcalendar_categories'] = $pc_categories;
77 $pntable['postcalendar_categories_column'] = array(
78 'catid' => 'pc_catid',
79 'catname' => 'pc_catname',
80 'catcolor' => 'pc_catcolor',
81 'catdesc' => 'pc_catdesc',
82 'recurrtype' => 'pc_recurrtype',
83 'recurrspec' => 'pc_recurrspec',
84 'recurrfreq' => 'pc_recurrfreq',
85 'duration' => 'pc_duration',
86 'limit' => 'pc_dailylimit'
88 $pc_limit = $prefix . '_postcalendar_limits';
89 $pntable['postcalendar_limits'] = $pc_limit;
90 $pntable['postcalendar_limits_column'] = array(
91 'limitid' => 'pc_limitid',
92 'catid' => 'pc_catid',
93 'starttime' => 'pc_starttime',
94 'endtime' => 'pc_endtime',
95 'limit' => 'pc_limit'
97 return $pntable;