wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * Method to initialize database, executed in the contructor.
	 *
	 * It checks if WordPress is in the installing process and does the required
	 * jobs. SQLite library version specific settings are also in this function.
	 *
	 * Some developers use WP_INSTALLING constant for other purposes, if so, this
	 * function will do no harms.
	 *
	 * @return boolean
	 */
Method to initialize database, executed in the contructor.
It checks if WordPress is in the installing process and does the required
jobs. SQLite library version specific settings are also in this function.

Some developers use WP_INSTALLING constant for other purposes, if so, this
function will do no harms.

@return boolean
Method to initialize database executed in the contructor . It checks if WordPress is in the installing process and does the required jobs . SQLite library version specific settings are also in this function . Some developers use WP_INSTALLING constant for other purposes if so this function will do no harms . @return boolean
private function init() {
		if (defined('WP_INSTALLING') && WP_INSTALLING) {
			$statement = $this->pdo->query("SELECT COUNT(*) FROM sqlite_master WHERE type='table'");
			$number_of_tables = $statement->fetchColumn(0);
			$statement = null;
			if ($number_of_tables == 0) $this->make_sqlite_tables();
		}
		if (version_compare($this->get_sqlite_version(), '3.7.11', '>=')) {
			$this->can_insert_multiple_rows = true;
		}
		$statement = $this->pdo->query('PRAGMA foreign_keys');
		if ($statement->fetchColumn(0) == '0') $this->pdo->query('PRAGMA foreign_keys = ON');
	}
private function init ( ) { if ( defined ( 'WP_INSTALLING' ) && WP_INSTALLING ) { $ statement = $ this -> pdo -> query ( " SELECT COUNT(*) FROM sqlite_master WHERE type='table' " ) ; $ number_of_tables = $ statement -> fetchColumn ( 0 ) ; $ statement = null ; if ( $ number_of_tables == 0 ) $ this -> make_sqlite_tables ( ) ; } if ( version_compare ( $ this -> get_sqlite_version ( ) , '3.7.11' , '>=' ) ) { $ this -> can_insert_multiple_rows = true ; } $ statement = $ this -> pdo -> query ( 'PRAGMA foreign_keys' ) ; if ( $ statement -> fetchColumn ( 0 ) == '0' ) $ this -> pdo -> query ( 'PRAGMA foreign_keys = ON' ) ; }
Method to initialize database, executed in the contructor.
Method to initialize database executed in the contructor .