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 = str_replace(array("'", "%s"), array("\\'",$table.$this->_encloseName($fieldname)),$pattern).' as '.$this->_encloseName($propname);
-         }
-         return $field;
-     }
-  
- }
		Documentation generated on Thu, 22 Mar 2012 22:18:08 +0100 by phpDocumentor 1.4.3