| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 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/lmbSelectQuery.class.php'); 10 11 /** 12 * class lmbSelectQueryDecorator. 13 * 14 * @package dbal 15 * @version $Id: lmbSelectQueryDecorator.class.php 6005 2007-06-19 21:14:49Z pachanga $ 16 */ 17 class lmbSelectQueryDecorator 18 { 19 protected $query; 20 21 function __construct($query) 22 { 23 $this->query = $query; 24 } 25 26 function reset() 27 { 28 $this->query->reset(); 29 } 30 31 function addField($field) 32 { 33 $this->query->addField($field); 34 } 35 36 function addTable($table) 37 { 38 $this->query->addTable($table); 39 } 40 41 function addOrder($field, $type='ASC') 42 { 43 $this->query->addOrder($field, $type); 44 } 45 46 function addGroupBy($group) 47 { 48 $this->query->addGroupBy($group); 49 } 50 51 function addLeftJoin($table, $connect_by) 52 { 53 $this->query->addLeftJoin($table, $connect_by); 54 } 55 56 function addCriteria($criteria) 57 { 58 $this->query->addCriteria($criteria); 59 } 60 61 function toString() 62 { 63 return $this->query->toString(); 64 } 65 66 function getStatement() 67 { 68 return $this->query->getStatement(); 69 } 70 71 function getRecordSet() 72 { 73 return $this->query->getRecordSet(); 74 } 75 76 function getStatementValues() 77 { 78 return $this->query->getStatementValues(); 79 } 80 } 81 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Oct 7 05:02:03 2008 | Cross-referenced by PHPXref 0.7 |