Source for file mysqli.dbtools.php
Documentation is available at mysqli.dbtools.php
- <?php
- /**
- * @package jelix
- * @subpackage db_driver
- * @author GĂ©rald Croes, Laurent Jouanneau
- * @contributor Laurent Jouanneau
- * @contributor Florian Lonqueu-Brochard
- * @copyright 2001-2005 CopixTeam, 2005-2011 Laurent Jouanneau
- * @copyright 2012 Florian Lonqueu-Brochard
- * @link http://www.jelix.org
- * @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
- */
-
- require_once(JELIX_LIB_PATH.'plugins/db/mysql/mysql.dbtools.php');
-
- /**
- * Provides utilities methods for a mysql database
- * @package jelix
- * @subpackage db_driver
- */
- class mysqliDbTools extends mysqlDbTools {
-
-
-
- public function execSQLScript ($file) {
- if(!isset($this->_conn->profile['table_prefix']))
- $prefix = '';
- else
- $prefix = $this->_conn->profile['table_prefix'];
- $sqlQueries = str_replace('%%PREFIX%%', $prefix, file_get_contents($file));
- return $this->_conn->execMulti($sqlQueries);
- }
-
- }
Documentation generated on Wed, 04 Jan 2017 22:58:20 +0100 by phpDocumentor 1.4.3