phpDocumentor GloryLands
Database
[ class tree: GloryLands ] [ index: GloryLands ] [ all elements ]

Source for file struct.ordered.php

Documentation is available at struct.ordered.php

  1. <?php
  2. /** 
  3.   * Ordered Configuration Database Structure
  4.   *
  5.   * This file contains the Ordered Configuration DB Struct that allows
  6.   * setting/getting and sorting ordered configuration. For example,
  7.   * menus, extensions, hooks etc.
  8.   *
  9.   * <pre>
  10.   * GloryLands, a Web-Based, Massive Multiplayer Online RPG/Strategy Game
  11.   * Copyright (C) 2008-09  John Haralampidis <jïhnys2[at]gmail.cïm>
  12.   *
  13.   * This program is free software: you can redistribute it and/or modify
  14.   * it under the terms of the GNU General Public License as published by
  15.   * the Free Software Foundation, either version 3 of the License, or
  16.   * (at your option) any later version.
  17.   *
  18.   * This program is distributed in the hope that it will be useful,
  19.   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20.   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21.   * GNU General Public License for more details.
  22.   *
  23.   * You should have received a copy of the GNU General Public License
  24.   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  25.   *
  26.   * For any help/suggestions or troubleshooting you can see the
  27.   * project community website at <http://www.glorylands.gr>
  28.   * </pre>
  29.   *
  30.   * @license GNU/GPLv3 GNU General Public License version 3
  31.   * @package GloryLands
  32.   * @subpackage Database
  33.   * @author John Haralampidis <jïhnys2[at]gmail.cïm>
  34.   * @copyright Copyright (C) 2007-2008, John Haralampidis
  35.   * @version 1.0
  36.   */
  37.  
  38. /**
  39.   * Ordered Configuration Structure
  40.   *
  41.   * This class provides ordered
  42.   *
  43.   * @package GloryLands
  44.   * @subpackage Database
  45.   */
  46. class GLDBOrderedConfig extends GLDBRecordset {
  47.  
  48.     public function __construct($table{
  49.         parent::__construct($tablearray('index'));
  50.         $this->select();
  51.     }
  52.     
  53.     public function select($index_data=false{
  54.         $this->_recordset = GL::$db->select($this->_table$index_datafalse'order''DESC');
  55.     }
  56.     
  57. }
  58.   
  59. ?>

Documentation generated on Tue, 13 Oct 2009 23:49:15 +0300 by phpDocumentor 1.4.1