| [ 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/drivers/lmbDbInsertStatement.interface.php'); 10 lmb_require(dirname(__FILE__) . '/lmbMysqlManipulationStatement.class.php'); 11 12 /** 13 * class lmbMysqlInsertStatement. 14 * 15 * @package dbal 16 * @version $Id: lmbMysqlInsertStatement.class.php 5945 2007-06-06 08:31:43Z pachanga $ 17 */ 18 class lmbMysqlInsertStatement extends lmbMysqlManipulationStatement implements lmbDbInsertStatement 19 { 20 function insertId($field_name = 'id') 21 { 22 $this->execute(); 23 24 if(isset($this->parameters[$field_name]) && !empty($this->parameters[$field_name])) 25 return $this->parameters[$field_name]; 26 else 27 return $this->connection->getSequenceValue(null, null); 28 } 29 } 30 31 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Nov 22 03:48:54 2008 | Cross-referenced by PHPXref 0.7 |