[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/plugins/system/legacy/ -> dbtable.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: dbtable.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla.Legacy
   5  * @subpackage    1.5
   6  * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7  * @license        GNU/GPL, see LICENSE.php
   8  * Joomla! is free software. This version may have been modified pursuant
   9  * to the GNU General Public License, and as distributed it includes or
  10  * is derivative of works licensed under the GNU General Public License or
  11  * other free or open source software licenses.
  12  * See COPYRIGHT.php for copyright notices and details.
  13  */
  14  
  15  // Check to ensure this file is within the rest of the framework
  16  defined('JPATH_BASE') or die();
  17  
  18  // Register legacy classes for autoloading
  19  JLoader::register('JTable', JPATH_LIBRARIES.DS.'joomla'.DS.'database'.DS.'table.php');
  20  
  21  /**
  22   * Legacy class, derive from {@link JTable} instead
  23   *
  24   * @deprecated    As of version 1.5
  25   * @package    Joomla.Legacy
  26   * @subpackage    1.5
  27   */
  28  class mosDBTable extends JTable
  29  {
  30      /**
  31       * Error number
  32       *
  33       * @var        string
  34       * @access    protected
  35       */
  36      var $_error = '';
  37  
  38      /**
  39       * Error number
  40       *
  41       * @var        int
  42       * @access    protected
  43       */
  44      var $_errorNum = 0;
  45  
  46      /**
  47       * Constructor
  48       */
  49  	function __construct($table, $key, &$db)
  50      {
  51          parent::__construct( $table, $key, $db );
  52      }
  53  
  54  	function mosDBTable($table, $key, &$db)
  55      {
  56          parent::__construct( $table, $key, $db );
  57      }
  58  
  59      /**
  60       * Legacy Method, use {@link JTable::reorder()} instead
  61       * @deprecated As of 1.5
  62       */
  63  	function updateOrder( $where='' )
  64      {
  65          return $this->reorder( $where );
  66      }
  67  
  68      /**
  69       * Legacy Method, use {@link JTable::publish()} instead
  70       * @deprecated As of 1.0.3
  71       */
  72  	function publish_array( $cid=null, $publish=1, $user_id=0 )
  73      {
  74          $this->publish( $cid, $publish, $user_id );
  75      }
  76  
  77      /**
  78       * Legacy Method, make sure you use {@link JRequest::get()} or {@link JRequest::getVar()} instead
  79       * @deprecated As of 1.5
  80       */
  81  	function filter( $ignoreList=null )
  82      {
  83          $ignore = is_array( $ignoreList );
  84  
  85          $filter = & JFilterInput::getInstance();
  86          foreach ($this->getProperties() as $k => $v)
  87          {
  88              if ($ignore && in_array( $k, $ignoreList ) ) {
  89                  continue;
  90              }
  91              $this->$k = $filter->clean( $this->$k );
  92          }
  93      }
  94  
  95      /**
  96       * Legacy Method, use {@link JObject::getProperties()}  instead
  97       * @deprecated As of 1.5
  98       */
  99  	function getPublicProperties()
 100      {
 101          $properties = $this->getProperties();
 102          return array_keys($properties);
 103      }
 104  
 105      /**
 106       * Legacy Method, use {@link JObject::getError()}  instead
 107       * @deprecated As of 1.5
 108       */
 109  	function getError($i = null, $toString = true )
 110      {
 111          return $this->_error;
 112      }
 113  
 114      /**
 115       * Legacy Method, use {@link JObject::setError()}  instead
 116       * @deprecated As of 1.5
 117       */
 118  	function setErrorNum( $value )
 119      {
 120          $this->_errorNum = $value;
 121      }
 122  
 123      /**
 124       * Legacy Method, use {@link JObject::getError()}  instead
 125       * @deprecated As of 1.5
 126       */
 127  	function getErrorNum()
 128      {
 129          return $this->_errorNum;
 130      }
 131  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1