diff options
Diffstat (limited to 'lib/prado/framework/Data/SqlMap/Statements/TStaticSql.php')
-rw-r--r-- | lib/prado/framework/Data/SqlMap/Statements/TStaticSql.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/prado/framework/Data/SqlMap/Statements/TStaticSql.php b/lib/prado/framework/Data/SqlMap/Statements/TStaticSql.php new file mode 100644 index 0000000..180d0e4 --- /dev/null +++ b/lib/prado/framework/Data/SqlMap/Statements/TStaticSql.php @@ -0,0 +1,34 @@ +<?php +/** + * TStaticSql class file. + * + * @author Wei Zhuo <weizhuo[at]gmail[dot]com> + * @link https://github.com/pradosoft/prado + * @copyright Copyright © 2005-2015 The PRADO Group + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT + * @package System.Data.SqlMap.Statements + */ + +/** + * TStaticSql class. + * + * @author Wei Zhuo <weizho[at]gmail[dot]com> + * @package System.Data.SqlMap.Statements + * @since 3.1 + */ +class TStaticSql extends TComponent +{ + private $_preparedStatement; + + public function buildPreparedStatement($statement, $sqlString) + { + $factory = new TPreparedStatementFactory($statement, $sqlString); + $this->_preparedStatement = $factory->prepare(); + } + + public function getPreparedStatement($parameter=null) + { + return $this->_preparedStatement; + } +} + |