Zikula_Value_Addons
[ class tree: Zikula_Value_Addons ] [ index: Zikula_Value_Addons ] [ 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_Value_Addons
  10.  * @subpackage HitCount
  11.  */
  12.  
  13. /**
  14.  * Hit count table information
  15. */
  16. function hitcount_pntables()
  17. {
  18.     // Initialise table array
  19.     $pntable array();
  20.  
  21.     // Full table definition
  22.     $pntable['hitcount'DBUtil::getLimitedTablename('hitcount');
  23.     $pntable['hitcount_column'array('hitcountid' => 'pn_hitcountid',
  24.                                         'moduleid'   => 'pn_moduleid',
  25.                                         'itemtype'   => 'pn_itemtype',
  26.                                         'itemid'     => 'pn_itemid',
  27.                                         'hits'       => 'pn_hits');
  28.     $pntable['hitcount_column_def'array('hitcountid' => 'I  NOTNULL AUTO PRIMARY',
  29.                                             'moduleid'   => "I  NOTNULL DEFAULT '0'",
  30.                                             'itemtype'   => "I  NOTNULL DEFAULT '0'",
  31.                                             'itemid'     => "I  NOTNULL DEFAULT '0'",
  32.                                             'hits'       => "I8 NOTNULL DEFAULT '0'");
  33.     $pntable['hitcount_column_idx'array ('moduleid_itemtype_itemid' => array('moduleid''itemtype''itemid'),
  34.                                              'itemd'                    => 'itemid',
  35.                                              'hits'                     => 'hits');
  36.  
  37.     // Return table information
  38.     return $pntable;
  39. }

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