Source for file pntables.php
Documentation is available at pntables.php
* Zikula Application Framework
* @copyright Robert Gasch
* @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
* @author Robert Gasch rgasch@gmail.com
// Initialise table array
$pntable['categories_category'] = $table;
$columns = array('id' => 'cat_id',
'parent_id' => 'cat_parent_id',
'is_locked' => 'cat_is_locked',
'is_leaf' => 'cat_is_leaf',
'sort_value' => 'cat_sort_value',
'display_name' => 'cat_display_name',
'display_desc' => 'cat_display_desc',
'status' => 'cat_status');
$pntable['categories_category_column'] = $columns;
// Enable attribution services
$pntable['categories_category_db_extra_enable_attribution'] = true;
if ($dbType == 'mssql') { // mssql can't sort on fields of type text
$tabledef = array('id' => 'I4 NOTNULL PRIMARY AUTO',
'parent_id' => 'I4 NOTNULL DEFAULT 1',
'is_locked' => 'I1 NOTNULL DEFAULT 0',
'is_leaf' => 'I1 NOTNULL DEFAULT 0',
'name' => "C(255) NOTNULL DEFAULT ''",
'value' => "C(255) NOTNULL DEFAULT ''",
'sort_value' => 'I4 NOTNULL DEFAULT 0',
'display_name' => "X NOTNULL DEFAULT ''",
'display_desc' => "X NOTNULL DEFAULT ''",
'path' => "$pathType NOTNULL DEFAULT ''",
'ipath' => "C(255) NOTNULL DEFAULT ''",
'status' => "C(1) NOTNULL DEFAULT 'A'");
$pntable['categories_category_column_def'] = $tabledef;
$pntable['categories_mapmeta'] = $table;
$columns = array('id' => 'cmm_id',
'meta_id' => 'cmm_meta_id',
'category_id' => 'cmm_category_id');
$pntable['categories_mapmeta_column'] = $columns;
$tabledef = array('id' => 'I4 PRIMARY AUTO',
'meta_id' => 'I4 NOTNULL DEFAULT 0',
'category_id' => 'I4 NOTNULL DEFAULT 0');
$pntable['categories_mapmeta_column_def'] = $tabledef;
$pntable['categories_mapobj'] = $table;
$columns = array('id' => 'cmo_id',
'modname' => 'cmo_modname',
'obj_id' => 'cmo_obj_id',
'obj_idcolumn' => 'cmo_obj_idcolumn',
'reg_id' => 'cmo_reg_id',
'category_id' => 'cmo_category_id');
$pntable['categories_mapobj_column'] = $columns;
$tabledef = array('id' => 'I4 PRIMARY AUTO',
'modname' => "C(60) NOTNULL DEFAULT ''",
'table' => "C(60) NOTNULL DEAULT ''",
'obj_id' => 'I4 NOTNULL DEFAULT 0',
'obj_idcolumn' => "C(60) NOTNULL DEFAULT 'id'",
'reg_id' => 'I4 NOTNULL 0',
'category_id' => 'I4 NOTNULL 0');
$pntable['categories_mapobj_column_def'] = $tabledef;
$pntable['categories_registry'] = $table;
$columns = array('id' => 'crg_id',
'modname' => 'crg_modname',
'property' => 'crg_property',
'category_id' => 'crg_category_id');
$pntable['categories_registry_column'] = $columns;
$tabledef = array('id' => 'I4 PRIMARY AUTO',
'modname' => "C(60) NOTNULL DEFAULT ''",
'table' => "C(60) NOTNULL DEFAULT ''",
'property' => "C(60) NOTNULL DEFAULT ''",
'category_id' => 'I4 NOTNULL DEFAULT 0');
$pntable['categories_registry_column_def'] = $tabledef;
|