<?php
/*=====================================================================*\
|| ###################################################################
|| # Kalens [#]version[#]
|| # Copyright ©2002-[#]year[#] Iris Studios, Inc.
|| #
|| # This program is free software; you can redistribute it and/or modify
|| # it under the terms of the GNU General Public License as published by
|| # the Free Software Foundation; version [#]gpl[#] of the License.
|| #
|| # This program is distributed in the hope that it will be useful, but
|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|| # more details.
|| #
|| # You should have received a copy of the GNU General Public License along
|| # with this program; if not, write to the Free Software Foundation, Inc.,
|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|| ###################################################################
\*=====================================================================*/
$GLOBALS['isso:callback']->load('api', null);
/**
* API: Event
*
* @author Blue Static
* @copyright Copyright ©2002 - [#]year[#], Blue Static
* @version $Revision$
* @package Kalens
*
*/
class EventAPI extends API
{
/**
* Database fields
* @var array
*/
var $fields = array(
'eventid' => array(TYPE_UINT, REQ_AUTO, 'verify_nozero'),
'calendarid' => array(TYPE_UINT, REQ_YES, 'verify_nozero'),
'userid' => array(TYPE_UINT, REQ_YES, 'verify_nozero'),
'name' => array(TYPE_STR, REQ_YES, 'verify_noempty'),
'description' => array(TYPE_STR, REQ_NO),
'pattern' => array(TYPE_UINT, REQ_YES, 'verify_nozero'),
'occurrence' => array(TYPE_UINT, REQ_NO, 'verify_nozero'),
'startstamp' => array(TYPE_UINT, REQ_YES, 'verify_nozero'),
'endstamp' => array(TYPE_UINT, REQ_YES, 'verify_nozero'),
'allday' => array(TYPE_BOOL, REQ_NO)
);
/**
* Database table
* @var string
*/
var $table = 'event';
/**
* Table prefix
* @var string
*/
var $prefix = TABLE_PREFIX;
}
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>