Source for file pntables.php
Documentation is available at pntables.php
* Zikula Application Framework
* @copyright (c) 2002, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: pntables.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Value_Addons
* This function is called internally by the core whenever the module is
* loaded. It adds in the information
// Initialise table array
$pntable['banners_column'] = array('bid' => 'pn_bid',
'imptotal' => 'pn_imptotal',
'impmade' => 'pn_impmade',
'imageurl' => 'pn_imageurl',
'clickurl' => 'pn_clickurl',
$pntable['banners_column_def'] = array('bid' => 'I AUTOINCREMENT PRIMARY',
'cid' => "I NOTNULL DEFAULT '0'",
'type' => "C(2) NOTNULL DEFAULT '0'",
'imptotal' => "I NOTNULL DEFAULT '0'",
'impmade' => "I NOTNULL DEFAULT '0'",
'clicks' => "I NOTNULL DEFAULT '0'",
'imageurl' => "C(255) NOTNULL DEFAULT ''",
'clickurl' => "C(255) NOTNULL DEFAULT ''",
'date' => 'T DEFAULT NULL');
// add standard data fields
$pntable['bannersclient_column'] = array('cid' => 'pn_cid',
'contact' => 'pn_contact',
'extrainfo' => 'pn_extrainfo');
$pntable['bannersclient_column_def'] = array('cid' => 'I AUTOINCREMENT PRIMARY',
'name' => 'C(60) NOTNULL',
'contact' => 'C(60) NOTNULL',
'email' => 'C(60) NOTNULL',
'login' => 'C(10) NOTNULL',
'passwd' => 'C(10) NOTNULL',
'extrainfo' => "X2 NOTNULL");
// add standard data fields
$pntable['bannersfinish_column'] = array('bid' => 'pn_bid',
'impressions' => 'pn_impressions',
'datestart' => 'pn_datestart',
'dateend' => 'pn_dateend');
$pntable['bannersfinish_column_def'] = array('bid' => 'I AUTOINCREMENT PRIMARY',
'cid' => "I NOTNULL DEFAULT '0'",
'impressions' => "I NOTNULL DEFAULT '0'",
'clicks' => "I NOTNULL DEFAULT '0'",
'datestart' => 'T DEFAULT NULL',
'dateend' => 'T DEFAULT NULL');
// add standard data fields
// Return the table information
|