Source for file sqlite.daobuilder.php
Documentation is available at sqlite.daobuilder.php
- <?php
- /**
- * @package jelix
- * @subpackage db_driver
- * @author Laurent Jouanneau
- * @contributor Loic Mathaud <loic@mathaud.net>
- * @copyright 2007 Laurent Jouanneau 2008 Loic Mathaud
- * @link http://www.jelix.org
- * @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
- */
-
- /**
- * driver for jDaoCompiler
- * @package jelix
- * @subpackage db_driver
- */
- class sqliteDaoBuilder extends jDaoGenerator {
-
- protected $propertiesListForInsert = 'PrimaryFieldsExcludeAutoIncrement';
-
- function __construct($factoryClassName, $recordClassName, $daoDefinition){
- parent::__construct($factoryClassName, $recordClassName, $daoDefinition);
-
- }
-
- protected function genSelectPattern ($pattern, $table, $fieldname, $propname ){
- if ($pattern =='%s'){
- $field = $table.$this->_encloseName($fieldname).' as '.$this->_encloseName($propname);
- }else{
- $field = sprintf (str_replace("'","\\'",$pattern), $table.$this->_encloseName($fieldname)).' as '.$this->_encloseName($propname);
- }
- return $field;
- }
-
-
-
- }
Documentation generated on Wed, 07 Sep 2011 13:48:29 +0200 by phpDocumentor 1.4.3