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) 2001, 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_Messages
  11.  */
  12.  
  13. /**
  14.  * This function is called internally by the core whenever the module is
  15.  * loaded.  It adds in the information
  16.  */
  17. {
  18.     // Initialise table array
  19.     $pntable array();
  20.  
  21.     // Get the name for the table.
  22.     $message DBUtil::getLimitedTablename('message');
  23.     $pntable['message'$message;
  24.     $pntable['message_column'array('mid'         => 'pn_mid',
  25.                                        'title'       => 'pn_title',
  26.                                        'content'     => 'pn_content',
  27.                                        'date'        => 'pn_date',
  28.                                        'expire'      => 'pn_expire',
  29.                                        'active'      => 'pn_active',
  30.                                        'view'        => 'pn_view',
  31.                                        'language'    => 'pn_language');
  32.  
  33.     $pntable['message_column_def'array('mid'      => 'I PRIMARY AUTO',
  34.                                            'title'    => "C(100) NOTNULL DEFAULT ''",
  35.                                            'content'  => "XL NOTNULL",
  36.                                            'date'     => "I NOTNULL DEFAULT 0",
  37.                                            'expire'   => "I NOTNULL DEFAULT 0",
  38.                                            'active'   => "I NOTNULL DEFAULT 1",
  39.                                            'view'     => "I NOTNULL DEFAULT 1",
  40.                                            'language' => "C(30) NOTNULL DEFAULT ''");
  41.  
  42.  
  43.     // Return the table information
  44.     return $pntable;
  45. }

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