Source for file pntables.php
Documentation is available at pntables.php
* Zikula Application Framework
* @copyright (c) 2001, 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_System_Modules
* Populate pntables array for Blocks module
* This function is called internally by the core whenever the module is
* loaded. It delivers the table information to the core.
* It can be loaded explicitly using the pnModDBInfoLoad() API function.
* @return array The table information.
// Initialise table array
$pntable['blocks'] = $blocks;
$pntable['blocks_column'] = array ('bid' => 'pn_bid',
'content' => 'pn_content',
'collapsable' => 'pn_collapsable',
'defaultstate'=> 'pn_defaultstate',
'refresh' => 'pn_refresh',
'last_update' => 'pn_last_update',
'blanguage' => 'pn_language',
'language' => 'pn_language');
$pntable['blocks_column_def'] = array ('bid' => "I AUTO PRIMARY",
'bkey' => "C(255) NOTNULL DEFAULT ''",
'title' => "C(255) NOTNULL DEFAULT ''",
'content' => "XL NOTNULL",
'mid' => "I NOTNULL DEFAULT 0",
'filter' => "XL NOTNULL",
'active' => "I1 NOTNULL DEFAULT 1",
'refresh' => "I NOTNULL DEFAULT 0",
'last_update' => "T DEFTIMESTAMP NOTNULL",
'language' => "C(30) NOTNULL DEFAULT ''",
'collapsable' => "I NOTNULL DEFAULT 1",
'defaultstate' => "I NOTNULL DEFAULT 1");
$pntable['blocks_column_idx'] = array ('active_idx' => 'active');
$pntable['userblocks'] = $userblocks;
$pntable['userblocks_column'] = array ('uid' => 'pn_uid',
'lastupdate' => 'pn_last_update');
$pntable['userblocks_column_def'] = array ('uid' => "I NOTNULL DEFAULT 0",
'bid' => "I NOTNULL DEFAULT 0",
'active' => "I1 NOTNULL DEFAULT 1",
'lastupdate' => "T DEFTIMESTAMP");
$pntable['userblocks_column_idx'] = array ('bid_uid_idx' => array('uid', 'bid'));
$pntable['block_positions'] = $block_positions;
$pntable['block_positions_column'] = array ('pid' => 'pn_pid',
'description' => 'pn_description');
$pntable['block_positions_column_def'] = array('pid' => "I AUTO PRIMARY",
'name' => "C(255) NOTNULL DEFAULT ''",
'description' => "C(255) NOTNULL DEFAULT ''");
$pntable['block_positions_column_idx'] = array ('name_idx' => 'name');
$pntable['block_placements'] = $block_placements;
$pntable['block_placements_column'] = array ('pid' => 'pn_pid',
$pntable['block_placements_column_def'] = array('pid' => "I NOTNULL DEFAULT 0",
'bid' => "I NOTNULL DEFAULT 0",
'order' => "I NOTNULL DEFAULT 0");
$pntable['block_placements_column_idx'] = array ('bid_pid_idx' => array('bid', 'pid'));
// Return the table information
|