Zikula_System_Modules
[ class tree: Zikula_System_Modules ] [ index: Zikula_System_Modules ] [ all elements ]

Source for file pntables.php

Documentation is available at pntables.php

  1. <?php
  2. /**
  3.  * Zikula Application Framework
  4.  *
  5.  * @copyright (c) 2002, Zikula Development Team
  6.  * @link http://www.zikula.org
  7.  * @version $Id: pntables.php 24342 2008-06-06 12:03:14Z markwest $
  8.  * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
  9.  * @package Zikula_System_Modules
  10.  * @subpackage Admin
  11.  * @license http://www.gnu.org/copyleft/gpl.html
  12.  */
  13.  
  14. /**
  15.  * This function is called internally by the core whenever the module is
  16.  * loaded.  It adds in the information
  17.  * @author Mark West
  18.  * @return array pntables array
  19.  */
  20. function Admin_pntables()
  21. {
  22.     $pntable array();
  23.  
  24.     // Set the column names.  Note that the array has been formatted
  25.     // on-screen to be very easy to read by a user.
  26.     $pntable['admin_category'DBUtil::getLimitedTablename('admin_category');
  27.     $pntable['admin_category_column'array('cid'         => 'pn_cid',
  28.                                               'catname'     => 'pn_name',
  29.                                               'description' => 'pn_description');
  30.  
  31.     $pntable['admin_category_column_def'array('cid'         => "I NOTNULL AUTO PRIMARY",
  32.                                                   'catname'     => "C(32) NOTNULL DEFAULT ''",
  33.                                                   'description' => "C(254) NOTNULL DEFAULT ''");
  34.  
  35.  
  36.  
  37.     // Set the column names.  Note that the array has been formatted
  38.     // on-screen to be very easy to read by a user.
  39.     $admin_category DBUtil::getLimitedTablename('admin_module');
  40.     $pntable['admin_module'$admin_category;
  41.     $pntable['admin_module_column'array('id'  => 'pn_amid',
  42.                                             'mid' => 'pn_mid',
  43.                                             'cid' => 'pn_cid');
  44.  
  45.     $pntable['admin_module_column_def'array('id'  => "I NOTNULL AUTO PRIMARY",
  46.                                                 'mid' => "I NOTNULL DEFAULT 0",
  47.                                                 'cid' => "I NOTNULL DEFAULT 0");
  48.  
  49.     $pntable['admin_module_column_idx'array ('mid_cid' => array('mid''cid'),
  50.                                                  'mid'     => 'mid');
  51.  
  52.     // Return the table information
  53.     return $pntable;
  54. }

Documentation generated on Fri, 18 Jul 2008 21:54:28 +0200 by phpDocumentor 1.4.1