| [ Index ] |
krapohl.info |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * $Id: pntables.php,v 1.1 2004/02/11 17:25:28 larsneo Exp $ 4 * 5 * PostCalendar::PostNuke Events Calendar Module 6 * Copyright (C) 2002 The PostCalendar Team 7 * http://postcalendar.tv 8 * 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. 13 * 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. 18 * 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 22 * 23 * To read the license please read the docs/license.txt or visit 24 * http://www.gnu.org/copyleft/gpl.html 25 * 26 */ 27 28 /** 29 * This function is called internally by the core whenever the module is 30 * loaded. It adds in the information 31 */ 32 function postcalendar_pntables() 33 { 34 // Initialise table array 35 $pntable = array(); 36 $prefix = pnConfigGetVar('prefix'); 37 //$prefix = 'Rogue'; 38 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' 71 ); 72 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 ); 83 84 return $pntable; 85 } 86 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 16 22:40:07 2005 | Cross-referenced by PHPXref 0.6 |