[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/dbal/src/query/ -> lmbDeleteQuery.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  lmb_require('limb/dbal/src/query/lmbCriteriaQuery.class.php');
  10  
  11  /**
  12   * class lmbDeleteQuery.
  13   *
  14   * @package dbal
  15   * @version $Id: lmbDeleteQuery.class.php 6005 2007-06-19 21:14:49Z pachanga $
  16   */
  17  class lmbDeleteQuery extends lmbCriteriaQuery
  18  {
  19    protected $_table;
  20  
  21    function __construct($table, $conn)
  22    {
  23      $this->_table = $table;
  24      parent :: __construct("DELETE FROM %table% %where%", $conn);
  25    }
  26  
  27    protected function _getTableHint()
  28    {
  29      return $this->_conn->quoteIdentifier($this->_table);
  30    }
  31  }
  32  ?>


Generated: Sat Nov 22 03:48:54 2008 Cross-referenced by PHPXref 0.7