[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/dbal/src/criteria/ -> lmbSQLCompositeCriteria.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/criteria/lmbSQLBaseCriteria.class.php');
  10  
  11  /**

  12   * class lmbSQLCompositeCriteria.

  13   *

  14   * @package dbal

  15   * @version $Id: lmbSQLCompositeCriteria.class.php 5945 2007-06-06 08:31:43Z pachanga $

  16   */
  17  class lmbSQLCompositeCriteria extends lmbSQLBaseCriteria
  18  {
  19    function appendStatementTo(&$str, &$values = array(), $conn = null)
  20    {
  21      for($i=0; $i < count($this->clauses); $i++)
  22      {
  23        if($i != 0)
  24          $str .= $this->conjunctions[$i];
  25  
  26        $this->clauses[$i]->appendStatementTo($str, $values, $conn);
  27      }
  28  
  29      if($i > 1)
  30        $str = '(' . $str . ')';
  31    }
  32  }
  33  
  34  ?>


Generated: Fri Dec 5 04:05:07 2008 Cross-referenced by PHPXref 0.7