Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * TStaticSql class file.
4
 *
5
 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
 * @link http://www.pradosoft.com/
7
 * @copyright Copyright &copy; 2005-2008 PradoSoft
8
 * @license http://www.pradosoft.com/license/
9
 * @version $Id: TStaticSql.php 2541 2008-10-21 15:05:13Z qiang.xue $
10
 * @package System.Data.SqlMap.Statements
11
 */
12
 
13
/**
14
 * TStaticSql class.
15
 *
16
 * @author Wei Zhuo <weizho[at]gmail[dot]com>
17
 * @version $Id: TStaticSql.php 2541 2008-10-21 15:05:13Z qiang.xue $
18
 * @package System.Data.SqlMap.Statements
19
 * @since 3.1
20
 */
21
class TStaticSql extends TComponent
22
{
23
	private $_preparedStatement;
24
 
25
	public function buildPreparedStatement($statement, $sqlString)
26
	{
27
		$factory = new TPreparedStatementFactory($statement, $sqlString);
28
		$this->_preparedStatement = $factory->prepare();
29
	}
30
 
31
	public function getPreparedStatement($parameter=null)
32
	{
33
		return $this->_preparedStatement;
34
	}
35
}
36