<?php
// $Id: pntables.php,v 1.5 2002/03/30 20:10:52 epsilon7 Exp $
/********************************************************/
/* PostCalendar */
/* Version 2.6, see changes.txt for details */
/* Originally by Rob Sutton (Events Calendar) */
/* Development continued by */
/* */
/* The PostCalendar Development Team */
/* Mahmood Al-Yousif - hide@address.com */
/* Craig Hamlin - hide@address.com */
/* HotBird - hide@address.com */
/* Roger Raymond - hide@address.com */
/* */
/* This program is opensource so you can do whatever */
/* you want with it. However, I'm happy about any */
/* clever idea or nifty change you might have or have */
/* done, send them to */
/* hide@address.com */
/* */
/* Any new versions can be found at */
/* http://www.bahraini.tv first */
/********************************************************/
/**
* This function is called internally by the core whenever the module is
* loaded. It adds in the information
*/
function PostCalendar_pntables()
{
// Initialise table array
$pntable = array();
// Get the name for the template item table. This is not necessary
// but helps in the following statements and keeps them readable
$events = pnConfigGetVar('prefix') . '_postcalendar_events';
$pntable['postcalendar_events'] = $events;
$pntable['postcalendar_events_column'] = array('eid' => $events . '.pc_eid',
'aid' => $events . '.pc_aid',
'title' => $events . '.pc_title',
'time' => $events . '.pc_time',
'hometext' => $events . '.pc_hometext',
'comments' => $events . '.pc_comments',
'counter' => $events . '.pc_counter',
'topic' => $events . '.pc_topic',
'informant' => $events . '.pc_informant',
'eventDate' => $events . '.pc_eventDate',
'endDate' => $events . '.pc_endDate',
'recurrtype' => $events . '.pc_recurrtype',
'recurrspec' => $events . '.pc_recurrspec',
'recurrfreq' => $events . '.pc_recurrfreq',
'startTime' => $events . '.pc_startTime',
'endTime' => $events . '.pc_endTime',
'alldayevent' => $events . '.pc_alldayevent',
'barcolor' => $events . '.pc_barcolor',
'location' => $events . '.pc_location',
'conttel' => $events . '.pc_conttel',
'contname' => $events . '.pc_contname',
'contemail' => $events . '.pc_contemail',
'website' => $events . '.pc_website',
'fee' => $events . '.pc_fee',
'eventstatus' => $events . '.pc_eventstatus');
$events_queue = pnConfigGetVar('prefix') . '_postcalendar_events_queue';
$pntable['postcalendar_events_queue'] = $events_queue;
$pntable['postcalendar_events_queue_column'] = array('qid' => $events_queue . '.pc_qid',
'uid' => $events_queue . '.pc_uid',
'uname' => $events_queue . '.pc_uname',
'title' => $events_queue . '.pc_title',
'story' => $events_queue . '.pc_story',
'timestamp' => $events_queue . '.pc_timestamp',
'topic' => $events_queue . '.pc_topic',
'eventDate' => $events_queue . '.pc_eventDate',
'endDate' => $events_queue . '.pc_endDate',
'recurrtype' => $events_queue . '.pc_recurrtype',
'recurrspec' => $events_queue . '.pc_recurrspec',
'recurrfreq' => $events_queue . '.pc_recurrfreq',
'startTime' => $events_queue . '.pc_startTime',
'endTime' => $events_queue . '.pc_endTime',
'alldayevent' => $events_queue . '.pc_alldayevent',
'barcolor' => $events_queue . '.pc_barcolor',
'location' => $events_queue . '.pc_location',
'conttel' => $events_queue . '.pc_conttel',
'contname' => $events_queue . '.pc_contname',
'contemail' => $events_queue . '.pc_contemail',
'website' => $events_queue . '.pc_website',
'fee' => $events_queue . '.pc_fee',
'eventstatus' => $events_queue . '.pc_eventstatus');
// Return the table information
return $pntable;
}
?>