wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * Method to include the apropreate class files.
	 *
	 * It is not a good habit to change the include files programatically.
	 * Needs to be fixed some other way.
	 *
	 * @param string $query_type
	 * @return object reference to apropreate driver
	 */
Method to include the apropreate class files.
It is not a good habit to change the include files programatically.
Needs to be fixed some other way.

@param string $query_type
@return object reference to apropreate driver
Method to include the apropreate class files . It is not a good habit to change the include files programatically . Needs to be fixed some other way . @param string $query_type @return object reference to apropreate driver
private function prepare_engine($query_type = null) {
		if (stripos($query_type, 'create') !== false) {
			require_once PDODIR . 'query_create.class.php';
			$engine = new CreateQuery();
		} elseif (stripos($query_type, 'alter') !== false) {
			require_once PDODIR . 'query_alter.class.php';
			$engine = new AlterQuery();
		} else {
			require_once PDODIR . 'query.class.php';
			$engine = new PDOSQLiteDriver();
		}
		return $engine;
	}
private function prepare_engine ( $ query_type = null ) { if ( stripos ( $ query_type , 'create' ) !== false ) { require_once PDODIR . 'query_create.class.php' ; $ engine = new CreateQuery ( ) ; } elseif ( stripos ( $ query_type , 'alter' ) !== false ) { require_once PDODIR . 'query_alter.class.php' ; $ engine = new AlterQuery ( ) ; } else { require_once PDODIR . 'query.class.php' ; $ engine = new PDOSQLiteDriver ( ) ; } return $ engine ; }
Method to include the apropreate class files.
Method to include the apropreate class files .