summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB.php18
-rw-r--r--system/database/DB_active_rec.php58
-rw-r--r--system/database/DB_cache.php12
-rw-r--r--system/database/DB_driver.php8
-rw-r--r--system/database/DB_forge.php6
-rw-r--r--system/database/DB_result.php12
-rw-r--r--system/database/DB_utility.php16
-rw-r--r--system/database/drivers/mssql/mssql_driver.php20
-rw-r--r--system/database/drivers/mssql/mssql_forge.php6
-rw-r--r--system/database/drivers/mssql/mssql_result.php6
-rw-r--r--system/database/drivers/mssql/mssql_utility.php6
-rw-r--r--system/database/drivers/mysql/mysql_driver.php20
-rw-r--r--system/database/drivers/mysql/mysql_forge.php6
-rw-r--r--system/database/drivers/mysql/mysql_result.php6
-rw-r--r--system/database/drivers/mysql/mysql_utility.php6
-rw-r--r--system/database/drivers/mysqli/mysqli_driver.php20
-rw-r--r--system/database/drivers/mysqli/mysqli_forge.php6
-rw-r--r--system/database/drivers/mysqli/mysqli_result.php6
-rw-r--r--system/database/drivers/mysqli/mysqli_utility.php6
-rw-r--r--system/database/drivers/oci8/oci8_driver.php26
-rw-r--r--system/database/drivers/oci8/oci8_forge.php6
-rw-r--r--system/database/drivers/oci8/oci8_result.php6
-rw-r--r--system/database/drivers/oci8/oci8_utility.php6
-rw-r--r--system/database/drivers/odbc/odbc_driver.php20
-rw-r--r--system/database/drivers/odbc/odbc_forge.php6
-rw-r--r--system/database/drivers/odbc/odbc_result.php6
-rw-r--r--system/database/drivers/odbc/odbc_utility.php6
-rw-r--r--system/database/drivers/postgre/postgre_driver.php20
-rw-r--r--system/database/drivers/postgre/postgre_forge.php6
-rw-r--r--system/database/drivers/postgre/postgre_result.php6
-rw-r--r--system/database/drivers/postgre/postgre_utility.php6
-rw-r--r--system/database/drivers/sqlite/sqlite_driver.php24
-rw-r--r--system/database/drivers/sqlite/sqlite_forge.php8
-rw-r--r--system/database/drivers/sqlite/sqlite_result.php6
-rw-r--r--system/database/drivers/sqlite/sqlite_utility.php8
35 files changed, 205 insertions, 205 deletions
diff --git a/system/database/DB.php b/system/database/DB.php
index d603805a5..2446645a7 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -29,7 +29,7 @@ function &DB($params = '', $active_record_override = FALSE)
{
include(APPPATH.'config/database'.EXT);
- if (! isset($db) OR count($db) == 0)
+ if ( ! isset($db) OR count($db) == 0)
{
show_error('No database connection settings were found in the database config file.');
}
@@ -39,7 +39,7 @@ function &DB($params = '', $active_record_override = FALSE)
$active_group = $params;
}
- if (! isset($active_group) OR ! isset($db[$active_group]))
+ if ( ! isset($active_group) OR ! isset($db[$active_group]))
{
show_error('You have specified an invalid database connection group.');
}
@@ -71,7 +71,7 @@ function &DB($params = '', $active_record_override = FALSE)
}
// No DB specified yet? Beat them senseless...
- if (! isset($params['dbdriver']) OR $params['dbdriver'] == '')
+ if ( ! isset($params['dbdriver']) OR $params['dbdriver'] == '')
{
show_error('You have not selected a database type to connect to.');
}
@@ -88,18 +88,18 @@ function &DB($params = '', $active_record_override = FALSE)
require_once(BASEPATH.'database/DB_driver'.EXT);
- if (! isset($active_record) OR $active_record == TRUE)
+ if ( ! isset($active_record) OR $active_record == TRUE)
{
require_once(BASEPATH.'database/DB_active_rec'.EXT);
- if (! class_exists('CI_DB'))
+ if ( ! class_exists('CI_DB'))
{
eval('class CI_DB extends CI_DB_active_record { }');
}
}
else
{
- if (! class_exists('CI_DB'))
+ if ( ! class_exists('CI_DB'))
{
eval('class CI_DB extends CI_DB_driver { }');
}
@@ -120,6 +120,6 @@ function &DB($params = '', $active_record_override = FALSE)
}
-
-/* End of file DB.php */
+
+/* End of file DB.php */
/* Location: ./system/database/DB.php */ \ No newline at end of file
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index b53158577..3cb39822c 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -147,7 +147,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function select_max($select = '', $alias='')
{
- if (!is_string($select) || $select == '')
+ if ( ! is_string($select) OR $select == '')
{
$this->display_error('db_invalid_query');
}
@@ -179,7 +179,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function select_min($select = '', $alias='')
{
- if (!is_string($select) || $select == '')
+ if ( ! is_string($select) OR $select == '')
{
$this->display_error('db_invalid_query');
}
@@ -211,7 +211,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function select_avg($select = '', $alias='')
{
- if (!is_string($select) || $select == '')
+ if ( ! is_string($select) OR $select == '')
{
$this->display_error('db_invalid_query');
}
@@ -243,7 +243,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function select_sum($select = '', $alias='')
{
- if (!is_string($select) || $select == '')
+ if ( ! is_string($select) OR $select == '')
{
$this->display_error('db_invalid_query');
}
@@ -322,7 +322,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
$type = strtoupper(trim($type));
- if (! in_array($type, array('LEFT', 'RIGHT', 'OUTER', 'INNER', 'LEFT OUTER', 'RIGHT OUTER'), TRUE))
+ if ( ! in_array($type, array('LEFT', 'RIGHT', 'OUTER', 'INNER', 'LEFT OUTER', 'RIGHT OUTER'), TRUE))
{
$type = '';
}
@@ -418,7 +418,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function _where($key, $value = NULL, $type = 'AND ', $escape = TRUE)
{
- if (! is_array($key))
+ if ( ! is_array($key))
{
$key = array($key => $value);
}
@@ -427,13 +427,13 @@ class CI_DB_active_record extends CI_DB_driver {
{
$prefix = (count($this->ar_where) == 0) ? '' : $type;
- if (! $this->_has_operator($k) && is_null($key[$k]))
+ if ( ! $this->_has_operator($k) && is_null($key[$k]))
{
// value appears not to have been set, assign the test to IS NULL
$k .= ' IS NULL';
}
- if (! is_null($v))
+ if ( ! is_null($v))
{
if ($escape === TRUE)
@@ -449,7 +449,7 @@ class CI_DB_active_record extends CI_DB_driver {
}
}
- if (! $this->_has_operator($k))
+ if ( ! $this->_has_operator($k))
{
$k .= ' =';
}
@@ -570,7 +570,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function _where_in($key = NULL, $values = NULL, $not = FALSE, $type = 'AND ')
{
- if ($key === NULL || !is_array($values))
+ if ($key === NULL OR ! is_array($values))
{
return;
}
@@ -696,7 +696,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function _like($field, $match = '', $type = 'AND ', $side = 'both', $not = '')
{
- if (! is_array($field))
+ if ( ! is_array($field))
{
$field = array($field => $match);
}
@@ -838,7 +838,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function _having($key, $value = '', $type = 'AND ', $escape = TRUE)
{
- if (! is_array($key))
+ if ( ! is_array($key))
{
$key = array($key => $value);
}
@@ -978,7 +978,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
$key = $this->_object_to_array($key);
- if (! is_array($key))
+ if ( ! is_array($key))
{
$key = array($key => $value);
}
@@ -1028,7 +1028,7 @@ class CI_DB_active_record extends CI_DB_driver {
$this->from($table);
}
- if (! is_null($limit))
+ if ( ! is_null($limit))
{
$this->limit($limit, $offset);
}
@@ -1093,12 +1093,12 @@ class CI_DB_active_record extends CI_DB_driver {
$this->from($table);
}
- if (! is_null($where))
+ if ( ! is_null($where))
{
$this->where($where);
}
- if (! is_null($limit))
+ if ( ! is_null($limit))
{
$this->limit($limit, $offset);
}
@@ -1136,7 +1136,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function insert($table = '', $set = NULL)
{
- if (! is_null($set))
+ if ( ! is_null($set))
{
$this->set($set);
}
@@ -1152,7 +1152,7 @@ class CI_DB_active_record extends CI_DB_driver {
if ($table == '')
{
- if (! isset($this->ar_from[0]))
+ if ( ! isset($this->ar_from[0]))
{
if ($this->db_debug)
{
@@ -1185,7 +1185,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function update($table = '', $set = NULL, $where = NULL, $limit = NULL)
{
- if (! is_null($set))
+ if ( ! is_null($set))
{
$this->set($set);
}
@@ -1201,7 +1201,7 @@ class CI_DB_active_record extends CI_DB_driver {
if ($table == '')
{
- if (! isset($this->ar_from[0]))
+ if ( ! isset($this->ar_from[0]))
{
if ($this->db_debug)
{
@@ -1244,7 +1244,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
if ($table == '')
{
- if (! isset($this->ar_from[0]))
+ if ( ! isset($this->ar_from[0]))
{
if ($this->db_debug)
{
@@ -1285,7 +1285,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
if ($table == '')
{
- if (! isset($this->ar_from[0]))
+ if ( ! isset($this->ar_from[0]))
{
if ($this->db_debug)
{
@@ -1327,7 +1327,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
if ($table == '')
{
- if (! isset($this->ar_from[0]))
+ if ( ! isset($this->ar_from[0]))
{
if ($this->db_debug)
{
@@ -1407,7 +1407,7 @@ class CI_DB_active_record extends CI_DB_driver {
function _has_operator($str)
{
$str = trim($str);
- if (! preg_match("/(\s|<|>|!|=|is null|is not null)/i", $str))
+ if ( ! preg_match("/(\s|<|>|!|=|is null|is not null)/i", $str))
{
return FALSE;
}
@@ -1480,7 +1480,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
$this->_merge_cache();
- $sql = (! $this->ar_distinct) ? 'SELECT ' : 'SELECT DISTINCT ';
+ $sql = ( ! $this->ar_distinct) ? 'SELECT ' : 'SELECT DISTINCT ';
$sql .= (count($this->ar_select) == 0) ? '*' : implode(', ', $this->_filter_table_aliases($this->ar_select));
@@ -1583,7 +1583,7 @@ class CI_DB_active_record extends CI_DB_driver {
*/
function _object_to_array($object)
{
- if (! is_object($object))
+ if ( ! is_object($object))
{
return $object;
}
@@ -1592,7 +1592,7 @@ class CI_DB_active_record extends CI_DB_driver {
foreach (get_object_vars($object) as $key => $val)
{
// There are some built in keys we need to ignore for this conversion
- if (! is_object($val) && ! is_array($val) && $key != '_parent_name' && $key != '_ci_scaffolding' && $key != '_ci_scaff_table')
+ if ( ! is_object($val) && ! is_array($val) && $key != '_parent_name' && $key != '_ci_scaffolding' && $key != '_ci_scaff_table')
{
$array[$key] = $val;
@@ -1696,7 +1696,7 @@ class CI_DB_active_record extends CI_DB_driver {
{
foreach ($ar_reset_items as $item => $default_value)
{
- if (!in_array($item, $this->ar_store_array))
+ if ( ! in_array($item, $this->ar_store_array))
{
$this->$item = $default_value;
}
diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php
index 448727fd0..977327a8d 100644
--- a/system/database/DB_cache.php
+++ b/system/database/DB_cache.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -66,7 +66,7 @@ class CI_DB_Cache {
// Add a trailing slash to the path if needed
$path = preg_replace("/(.+?)\/*$/", "\\1/", $path);
- if (! is_dir($path) OR ! is_really_writable($path))
+ if ( ! is_dir($path) OR ! is_really_writable($path))
{
// If the path is wrong we'll turn off caching
return $this->db->cache_off();
@@ -89,7 +89,7 @@ class CI_DB_Cache {
*/
function read($sql)
{
- if (! $this->check_path())
+ if ( ! $this->check_path())
{
return $this->db->cache_off();
}
@@ -117,7 +117,7 @@ class CI_DB_Cache {
*/
function write($sql, $object)
{
- if (! $this->check_path())
+ if ( ! $this->check_path())
{
return $this->db->cache_off();
}
@@ -129,9 +129,9 @@ class CI_DB_Cache {
$filename = md5($sql);
- if (! @is_dir($dir_path))
+ if ( ! @is_dir($dir_path))
{
- if (! @mkdir($dir_path, DIR_WRITE_MODE))
+ if ( ! @mkdir($dir_path, DIR_WRITE_MODE))
{
return FALSE;
}
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 9ad235ded..306f09d7d 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -147,7 +147,7 @@ class CI_DB_driver {
// In the event the DB was created we need to select it
if ($this->db_select())
{
- if (! $this->db_set_charset($this->char_set, $this->dbcollat))
+ if ( ! $this->db_set_charset($this->char_set, $this->dbcollat))
{
log_message('error', 'Unable to set database connection charset: '.$this->char_set);
@@ -173,7 +173,7 @@ class CI_DB_driver {
return FALSE;
}
- if (! $this->db_set_charset($this->char_set, $this->dbcollat))
+ if ( ! $this->db_set_charset($this->char_set, $this->dbcollat))
{
log_message('error', 'Unable to set database connection charset: '.$this->char_set);
@@ -1163,7 +1163,7 @@ class CI_DB_driver {
}
else
{
- $message = (! is_array($error)) ? array(str_replace('%s', $swap, $LANG->line($error))) : $error;
+ $message = ( ! is_array($error)) ? array(str_replace('%s', $swap, $LANG->line($error))) : $error;
}
$error =& load_class('Exceptions');
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index d7259c08c..d3ef326b6 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Code Igniter
*
@@ -341,6 +341,6 @@ class CI_DB_forge {
}
}
-
-/* End of file DB_forge.php */
+
+/* End of file DB_forge.php */
/* Location: ./system/database/DB_forge.php */ \ No newline at end of file
diff --git a/system/database/DB_result.php b/system/database/DB_result.php
index b98d7a97b..d8d0d0d97 100644
--- a/system/database/DB_result.php
+++ b/system/database/DB_result.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -125,10 +125,10 @@ class CI_DB_result {
*/
function row($n = 0, $type = 'object')
{
- if (! is_numeric($n))
+ if ( ! is_numeric($n))
{
// We cache the row data for subsequent uses
- if (! is_array($this->row_data))
+ if ( ! is_array($this->row_data))
{
$this->row_data = $this->row_array(0);
}
@@ -156,7 +156,7 @@ class CI_DB_result {
function set_row($key, $value = NULL)
{
// We cache the row data for subsequent uses
- if (! is_array($this->row_data))
+ if ( ! is_array($this->row_data))
{
$this->row_data = $this->row_array(0);
}
@@ -338,6 +338,6 @@ class CI_DB_result {
}
// END DB_result class
-
-/* End of file DB_result.php */
+
+/* End of file DB_result.php */
/* Location: ./system/database/DB_result.php */ \ No newline at end of file
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 5d4c2de45..d273df158 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Code Igniter
*
@@ -175,7 +175,7 @@ class CI_DB_utility extends CI_DB_forge {
*/
function csv_from_result($query, $delim = ",", $newline = "\n", $enclosure = '"')
{
- if (! is_object($query) OR ! method_exists($query, 'field_names'))
+ if ( ! is_object($query) OR ! method_exists($query, 'field_names'))
{
show_error('You must submit a valid result object');
}
@@ -217,7 +217,7 @@ class CI_DB_utility extends CI_DB_forge {
*/
function xml_from_result($query, $params = array())
{
- if (! is_object($query) OR ! method_exists($query, 'field_names'))
+ if ( ! is_object($query) OR ! method_exists($query, 'field_names'))
{
show_error('You must submit a valid result object');
}
@@ -225,7 +225,7 @@ class CI_DB_utility extends CI_DB_forge {
// Set our default values
foreach (array('root' => 'root', 'element' => 'element', 'newline' => "\n", 'tab' => "\t") as $key => $val)
{
- if (! isset($params[$key]))
+ if ( ! isset($params[$key]))
{
$params[$key] = $val;
}
@@ -310,7 +310,7 @@ class CI_DB_utility extends CI_DB_forge {
// ------------------------------------------------------
// Validate the format
- if (! in_array($prefs['format'], array('gzip', 'zip', 'txt'), TRUE))
+ if ( ! in_array($prefs['format'], array('gzip', 'zip', 'txt'), TRUE))
{
$prefs['format'] = 'txt';
}
@@ -367,7 +367,7 @@ class CI_DB_utility extends CI_DB_forge {
}
// Tack on the ".sql" file extension if needed
- if (! preg_match("|.+?\.sql$|", $prefs['filename']))
+ if ( ! preg_match("|.+?\.sql$|", $prefs['filename']))
{
$prefs['filename'] .= '.sql';
}
@@ -384,6 +384,6 @@ class CI_DB_utility extends CI_DB_forge {
}
-
-/* End of file DB_utility.php */
+
+/* End of file DB_utility.php */
/* Location: ./system/database/DB_utility.php */ \ No newline at end of file
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index f789634f8..34ad9799e 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -132,7 +132,7 @@ class CI_DB_mssql_driver extends CI_DB {
*/
function trans_begin($test_mode = FALSE)
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -162,7 +162,7 @@ class CI_DB_mssql_driver extends CI_DB {
*/
function trans_commit()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -187,7 +187,7 @@ class CI_DB_mssql_driver extends CI_DB {
*/
function trans_rollback()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -492,7 +492,7 @@ class CI_DB_mssql_driver extends CI_DB {
*/
function _from_tables($tables)
{
- if (! is_array($tables))
+ if ( ! is_array($tables))
{
$tables = array($tables);
}
@@ -540,7 +540,7 @@ class CI_DB_mssql_driver extends CI_DB {
$valstr[] = $key." = ".$val;
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
@@ -587,7 +587,7 @@ class CI_DB_mssql_driver extends CI_DB {
{
$conditions = '';
- if (count($where) > 0 || count($like) > 0)
+ if (count($where) > 0 OR count($like) > 0)
{
$conditions = "\nWHERE ";
$conditions .= implode("\n", $this->ar_where);
@@ -599,7 +599,7 @@ class CI_DB_mssql_driver extends CI_DB {
$conditions .= implode("\n", $like);
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
return "DELETE FROM ".$table.$conditions.$limit;
}
@@ -641,6 +641,6 @@ class CI_DB_mssql_driver extends CI_DB {
}
-
-/* End of file mssql_driver.php */
+
+/* End of file mssql_driver.php */
/* Location: ./system/database/drivers/mssql/mssql_driver.php */ \ No newline at end of file
diff --git a/system/database/drivers/mssql/mssql_forge.php b/system/database/drivers/mssql/mssql_forge.php
index d42fd5ee6..ddd1bb6ae 100644
--- a/system/database/drivers/mssql/mssql_forge.php
+++ b/system/database/drivers/mssql/mssql_forge.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -235,6 +235,6 @@ class CI_DB_mssql_forge extends CI_DB_forge {
}
}
-
-/* End of file mssql_forge.php */
+
+/* End of file mssql_forge.php */
/* Location: ./system/database/drivers/mssql/mssql_forge.php */ \ No newline at end of file
diff --git a/system/database/drivers/mssql/mssql_result.php b/system/database/drivers/mssql/mssql_result.php
index fded4cf37..7532d2053 100644
--- a/system/database/drivers/mssql/mssql_result.php
+++ b/system/database/drivers/mssql/mssql_result.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -170,6 +170,6 @@ class CI_DB_mssql_result extends CI_DB_result {
}
-
-/* End of file mssql_result.php */
+
+/* End of file mssql_result.php */
/* Location: ./system/database/drivers/mssql/mssql_result.php */ \ No newline at end of file
diff --git a/system/database/drivers/mssql/mssql_utility.php b/system/database/drivers/mssql/mssql_utility.php
index 75a8fb4cd..c62146bf6 100644
--- a/system/database/drivers/mssql/mssql_utility.php
+++ b/system/database/drivers/mssql/mssql_utility.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -118,6 +118,6 @@ class CI_DB_mssql_utility extends CI_DB_utility {
}
-
-/* End of file mssql_utility.php */
+
+/* End of file mssql_utility.php */
/* Location: ./system/database/drivers/mssql/mssql_utility.php */ \ No newline at end of file
diff --git a/system/database/drivers/mysql/mysql_driver.php b/system/database/drivers/mysql/mysql_driver.php
index 397af02f5..8df6c1b70 100644
--- a/system/database/drivers/mysql/mysql_driver.php
+++ b/system/database/drivers/mysql/mysql_driver.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -161,7 +161,7 @@ class CI_DB_mysql_driver extends CI_DB {
*/
function trans_begin($test_mode = FALSE)
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -192,7 +192,7 @@ class CI_DB_mysql_driver extends CI_DB {
*/
function trans_commit()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -218,7 +218,7 @@ class CI_DB_mysql_driver extends CI_DB {
*/
function trans_rollback()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -495,7 +495,7 @@ class CI_DB_mysql_driver extends CI_DB {
*/
function _from_tables($tables)
{
- if (! is_array($tables))
+ if ( ! is_array($tables))
{
$tables = array($tables);
}
@@ -543,7 +543,7 @@ class CI_DB_mysql_driver extends CI_DB {
$valstr[] = $key." = ".$val;
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
@@ -589,7 +589,7 @@ class CI_DB_mysql_driver extends CI_DB {
{
$conditions = '';
- if (count($where) > 0 || count($like) > 0)
+ if (count($where) > 0 OR count($like) > 0)
{
$conditions = "\nWHERE ";
$conditions .= implode("\n", $this->ar_where);
@@ -601,7 +601,7 @@ class CI_DB_mysql_driver extends CI_DB {
$conditions .= implode("\n", $like);
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
return "DELETE FROM ".$table.$conditions.$limit;
}
@@ -649,6 +649,6 @@ class CI_DB_mysql_driver extends CI_DB {
}
-
-/* End of file mysql_driver.php */
+
+/* End of file mysql_driver.php */
/* Location: ./system/database/drivers/mysql/mysql_driver.php */ \ No newline at end of file
diff --git a/system/database/drivers/mysql/mysql_forge.php b/system/database/drivers/mysql/mysql_forge.php
index 6701c42d5..a631e4301 100644
--- a/system/database/drivers/mysql/mysql_forge.php
+++ b/system/database/drivers/mysql/mysql_forge.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -238,6 +238,6 @@ class CI_DB_mysql_forge extends CI_DB_forge {
}
}
-
-/* End of file mysql_forge.php */
+
+/* End of file mysql_forge.php */
/* Location: ./system/database/drivers/mysql/mysql_forge.php */ \ No newline at end of file
diff --git a/system/database/drivers/mysql/mysql_result.php b/system/database/drivers/mysql/mysql_result.php
index 01b57e1e7..4d9dd82bd 100644
--- a/system/database/drivers/mysql/mysql_result.php
+++ b/system/database/drivers/mysql/mysql_result.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -170,6 +170,6 @@ class CI_DB_mysql_result extends CI_DB_result {
}
-
-/* End of file mysql_result.php */
+
+/* End of file mysql_result.php */
/* Location: ./system/database/drivers/mysql/mysql_result.php */ \ No newline at end of file
diff --git a/system/database/drivers/mysql/mysql_utility.php b/system/database/drivers/mysql/mysql_utility.php
index 0804f291c..6bae52791 100644
--- a/system/database/drivers/mysql/mysql_utility.php
+++ b/system/database/drivers/mysql/mysql_utility.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -249,6 +249,6 @@ class CI_DB_mysql_utility extends CI_DB_utility {
}
}
-
-/* End of file mysql_utility.php */
+
+/* End of file mysql_utility.php */
/* Location: ./system/database/drivers/mysql/mysql_utility.php */ \ No newline at end of file
diff --git a/system/database/drivers/mysqli/mysqli_driver.php b/system/database/drivers/mysqli/mysqli_driver.php
index c993e3368..4e840e749 100644
--- a/system/database/drivers/mysqli/mysqli_driver.php
+++ b/system/database/drivers/mysqli/mysqli_driver.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -164,7 +164,7 @@ class CI_DB_mysqli_driver extends CI_DB {
*/
function trans_begin($test_mode = FALSE)
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -195,7 +195,7 @@ class CI_DB_mysqli_driver extends CI_DB {
*/
function trans_commit()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -221,7 +221,7 @@ class CI_DB_mysqli_driver extends CI_DB {
*/
function trans_rollback()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -491,7 +491,7 @@ class CI_DB_mysqli_driver extends CI_DB {
*/
function _from_tables($tables)
{
- if (! is_array($tables))
+ if ( ! is_array($tables))
{
$tables = array($tables);
}
@@ -539,7 +539,7 @@ class CI_DB_mysqli_driver extends CI_DB {
$valstr[] = $key." = ".$val;
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
@@ -586,7 +586,7 @@ class CI_DB_mysqli_driver extends CI_DB {
{
$conditions = '';
- if (count($where) > 0 || count($like) > 0)
+ if (count($where) > 0 OR count($like) > 0)
{
$conditions = "\nWHERE ";
$conditions .= implode("\n", $this->ar_where);
@@ -598,7 +598,7 @@ class CI_DB_mysqli_driver extends CI_DB {
$conditions .= implode("\n", $like);
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
return "DELETE FROM ".$table.$conditions.$limit;
}
@@ -645,6 +645,6 @@ class CI_DB_mysqli_driver extends CI_DB {
}
-
-/* End of file mysqli_driver.php */
+
+/* End of file mysqli_driver.php */
/* Location: ./system/database/drivers/mysqli/mysqli_driver.php */ \ No newline at end of file
diff --git a/system/database/drivers/mysqli/mysqli_forge.php b/system/database/drivers/mysqli/mysqli_forge.php
index 087f9b80b..f767acbea 100644
--- a/system/database/drivers/mysqli/mysqli_forge.php
+++ b/system/database/drivers/mysqli/mysqli_forge.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -238,6 +238,6 @@ class CI_DB_mysqli_forge extends CI_DB_forge {
}
}
-
-/* End of file mysqli_forge.php */
+
+/* End of file mysqli_forge.php */
/* Location: ./system/database/drivers/mysqli/mysqli_forge.php */ \ No newline at end of file
diff --git a/system/database/drivers/mysqli/mysqli_result.php b/system/database/drivers/mysqli/mysqli_result.php
index 6b42d35e9..4b8115d8e 100644
--- a/system/database/drivers/mysqli/mysqli_result.php
+++ b/system/database/drivers/mysqli/mysqli_result.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -170,6 +170,6 @@ class CI_DB_mysqli_result extends CI_DB_result {
}
-
-/* End of file mysqli_result.php */
+
+/* End of file mysqli_result.php */
/* Location: ./system/database/drivers/mysqli/mysqli_result.php */ \ No newline at end of file
diff --git a/system/database/drivers/mysqli/mysqli_utility.php b/system/database/drivers/mysqli/mysqli_utility.php
index 24b05b7af..235ee4b67 100644
--- a/system/database/drivers/mysqli/mysqli_utility.php
+++ b/system/database/drivers/mysqli/mysqli_utility.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -118,6 +118,6 @@ class CI_DB_mysqli_utility extends CI_DB_utility {
}
}
-
-/* End of file mysqli_utility.php */
+
+/* End of file mysqli_utility.php */
/* Location: ./system/database/drivers/mysqli/mysqli_utility.php */ \ No newline at end of file
diff --git a/system/database/drivers/oci8/oci8_driver.php b/system/database/drivers/oci8/oci8_driver.php
index 367095990..2bc45258d 100644
--- a/system/database/drivers/oci8/oci8_driver.php
+++ b/system/database/drivers/oci8/oci8_driver.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -155,7 +155,7 @@ class CI_DB_oci8_driver extends CI_DB {
*/
function _set_stmt_id($sql)
{
- if (! is_resource($this->stmt_id))
+ if ( ! is_resource($this->stmt_id))
{
$this->stmt_id = ociparse($this->conn_id, $this->_prep_query($sql));
}
@@ -254,7 +254,7 @@ class CI_DB_oci8_driver extends CI_DB {
*/
function _bind_params($params)
{
- if (! is_array($params) OR ! is_resource($this->stmt_id))
+ if ( ! is_array($params) OR ! is_resource($this->stmt_id))
{
return;
}
@@ -263,7 +263,7 @@ class CI_DB_oci8_driver extends CI_DB {
{
foreach (array('name', 'value', 'type', 'length') as $val)
{
- if (! isset($param[$val]))
+ if ( ! isset($param[$val]))
{
$param[$val] = '';
}
@@ -283,7 +283,7 @@ class CI_DB_oci8_driver extends CI_DB {
*/
function trans_begin($test_mode = FALSE)
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -313,7 +313,7 @@ class CI_DB_oci8_driver extends CI_DB {
*/
function trans_commit()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -339,7 +339,7 @@ class CI_DB_oci8_driver extends CI_DB {
*/
function trans_rollback()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -603,7 +603,7 @@ class CI_DB_oci8_driver extends CI_DB {
*/
function _from_tables($tables)
{
- if (! is_array($tables))
+ if ( ! is_array($tables))
{
$tables = array($tables);
}
@@ -651,7 +651,7 @@ class CI_DB_oci8_driver extends CI_DB {
$valstr[] = $key." = ".$val;
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
@@ -697,7 +697,7 @@ class CI_DB_oci8_driver extends CI_DB {
{
$conditions = '';
- if (count($where) > 0 || count($like) > 0)
+ if (count($where) > 0 OR count($like) > 0)
{
$conditions = "\nWHERE ";
$conditions .= implode("\n", $this->ar_where);
@@ -709,7 +709,7 @@ class CI_DB_oci8_driver extends CI_DB {
$conditions .= implode("\n", $like);
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
return "DELETE FROM ".$table.$conditions.$limit;
}
@@ -761,6 +761,6 @@ class CI_DB_oci8_driver extends CI_DB {
}
-
-/* End of file oci8_driver.php */
+
+/* End of file oci8_driver.php */
/* Location: ./system/database/drivers/oci8/oci8_driver.php */ \ No newline at end of file
diff --git a/system/database/drivers/oci8/oci8_forge.php b/system/database/drivers/oci8/oci8_forge.php
index 64dd2a202..9f3fac54f 100644
--- a/system/database/drivers/oci8/oci8_forge.php
+++ b/system/database/drivers/oci8/oci8_forge.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -232,6 +232,6 @@ class CI_DB_oci8_forge extends CI_DB_forge {
}
-
-/* End of file oci8_forge.php */
+
+/* End of file oci8_forge.php */
/* Location: ./system/database/drivers/oci8/oci8_forge.php */ \ No newline at end of file
diff --git a/system/database/drivers/oci8/oci8_result.php b/system/database/drivers/oci8/oci8_result.php
index 416c57de0..73373c882 100644
--- a/system/database/drivers/oci8/oci8_result.php
+++ b/system/database/drivers/oci8/oci8_result.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -248,6 +248,6 @@ class CI_DB_oci8_result extends CI_DB_result {
}
-
-/* End of file oci8_result.php */
+
+/* End of file oci8_result.php */
/* Location: ./system/database/drivers/oci8/oci8_result.php */ \ No newline at end of file
diff --git a/system/database/drivers/oci8/oci8_utility.php b/system/database/drivers/oci8/oci8_utility.php
index 93eaa226f..69d07f437 100644
--- a/system/database/drivers/oci8/oci8_utility.php
+++ b/system/database/drivers/oci8/oci8_utility.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -117,6 +117,6 @@ class CI_DB_oci8_utility extends CI_DB_utility {
}
}
-
-/* End of file oci8_utility.php */
+
+/* End of file oci8_utility.php */
/* Location: ./system/database/drivers/oci8/oci8_utility.php */ \ No newline at end of file
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index 4511592bb..48a143271 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -152,7 +152,7 @@ class CI_DB_odbc_driver extends CI_DB {
*/
function trans_begin($test_mode = FALSE)
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -181,7 +181,7 @@ class CI_DB_odbc_driver extends CI_DB {
*/
function trans_commit()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -207,7 +207,7 @@ class CI_DB_odbc_driver extends CI_DB {
*/
function trans_rollback()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -464,7 +464,7 @@ class CI_DB_odbc_driver extends CI_DB {
*/
function _from_tables($tables)
{
- if (! is_array($tables))
+ if ( ! is_array($tables))
{
$tables = array($tables);
}
@@ -512,7 +512,7 @@ class CI_DB_odbc_driver extends CI_DB {
$valstr[] = $key." = ".$val;
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
@@ -559,7 +559,7 @@ class CI_DB_odbc_driver extends CI_DB {
{
$conditions = '';
- if (count($where) > 0 || count($like) > 0)
+ if (count($where) > 0 OR count($like) > 0)
{
$conditions = "\nWHERE ";
$conditions .= implode("\n", $this->ar_where);
@@ -571,7 +571,7 @@ class CI_DB_odbc_driver extends CI_DB {
$conditions .= implode("\n", $like);
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
return "DELETE FROM ".$table.$conditions.$limit;
}
@@ -613,6 +613,6 @@ class CI_DB_odbc_driver extends CI_DB {
}
-
-/* End of file odbc_driver.php */
+
+/* End of file odbc_driver.php */
/* Location: ./system/database/drivers/odbc/odbc_driver.php */ \ No newline at end of file
diff --git a/system/database/drivers/odbc/odbc_forge.php b/system/database/drivers/odbc/odbc_forge.php
index fb011f298..60df616c3 100644
--- a/system/database/drivers/odbc/odbc_forge.php
+++ b/system/database/drivers/odbc/odbc_forge.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -253,6 +253,6 @@ class CI_DB_odbc_forge extends CI_DB_forge {
}
-
-/* End of file odbc_forge.php */
+
+/* End of file odbc_forge.php */
/* Location: ./system/database/drivers/odbc/odbc_forge.php */ \ No newline at end of file
diff --git a/system/database/drivers/odbc/odbc_result.php b/system/database/drivers/odbc/odbc_result.php
index 4acfb056e..809887a43 100644
--- a/system/database/drivers/odbc/odbc_result.php
+++ b/system/database/drivers/odbc/odbc_result.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -229,6 +229,6 @@ class CI_DB_odbc_result extends CI_DB_result {
}
-
-/* End of file odbc_result.php */
+
+/* End of file odbc_result.php */
/* Location: ./system/database/drivers/odbc/odbc_result.php */ \ No newline at end of file
diff --git a/system/database/drivers/odbc/odbc_utility.php b/system/database/drivers/odbc/odbc_utility.php
index ac8b5d808..5d9010506 100644
--- a/system/database/drivers/odbc/odbc_utility.php
+++ b/system/database/drivers/odbc/odbc_utility.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -143,6 +143,6 @@ class CI_DB_odbc_utility extends CI_DB_utility {
return FALSE;
}
}
-
-/* End of file odbc_utility.php */
+
+/* End of file odbc_utility.php */
/* Location: ./system/database/drivers/odbc/odbc_utility.php */ \ No newline at end of file
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php
index 4fd92f0c0..9a260a5ac 100644
--- a/system/database/drivers/postgre/postgre_driver.php
+++ b/system/database/drivers/postgre/postgre_driver.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -150,7 +150,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
function trans_begin($test_mode = FALSE)
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -179,7 +179,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
function trans_commit()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -203,7 +203,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
function trans_rollback()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -488,7 +488,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
function _from_tables($tables)
{
- if (! is_array($tables))
+ if ( ! is_array($tables))
{
$tables = array($tables);
}
@@ -536,7 +536,7 @@ class CI_DB_postgre_driver extends CI_DB {
$valstr[] = $key." = ".$val;
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
@@ -583,7 +583,7 @@ class CI_DB_postgre_driver extends CI_DB {
{
$conditions = '';
- if (count($where) > 0 || count($like) > 0)
+ if (count($where) > 0 OR count($like) > 0)
{
$conditions = "\nWHERE ";
$conditions .= implode("\n", $this->ar_where);
@@ -595,7 +595,7 @@ class CI_DB_postgre_driver extends CI_DB {
$conditions .= implode("\n", $like);
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
return "DELETE FROM ".$table.$conditions.$limit;
}
@@ -641,6 +641,6 @@ class CI_DB_postgre_driver extends CI_DB {
}
-
-/* End of file postgre_driver.php */
+
+/* End of file postgre_driver.php */
/* Location: ./system/database/drivers/postgre/postgre_driver.php */ \ No newline at end of file
diff --git a/system/database/drivers/postgre/postgre_forge.php b/system/database/drivers/postgre/postgre_forge.php
index fb4fcf128..f8dfca8a1 100644
--- a/system/database/drivers/postgre/postgre_forge.php
+++ b/system/database/drivers/postgre/postgre_forge.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -235,6 +235,6 @@ class CI_DB_postgre_forge extends CI_DB_forge {
}
-
-/* End of file postgre_forge.php */
+
+/* End of file postgre_forge.php */
/* Location: ./system/database/drivers/postgre/postgre_forge.php */ \ No newline at end of file
diff --git a/system/database/drivers/postgre/postgre_result.php b/system/database/drivers/postgre/postgre_result.php
index 25360b3f3..1613da9b8 100644
--- a/system/database/drivers/postgre/postgre_result.php
+++ b/system/database/drivers/postgre/postgre_result.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -170,6 +170,6 @@ class CI_DB_postgre_result extends CI_DB_result {
}
-
-/* End of file postgre_result.php */
+
+/* End of file postgre_result.php */
/* Location: ./system/database/drivers/postgre/postgre_result.php */ \ No newline at end of file
diff --git a/system/database/drivers/postgre/postgre_utility.php b/system/database/drivers/postgre/postgre_utility.php
index 17df599b6..261050b2d 100644
--- a/system/database/drivers/postgre/postgre_utility.php
+++ b/system/database/drivers/postgre/postgre_utility.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -119,6 +119,6 @@ class CI_DB_postgre_utility extends CI_DB_utility {
}
-
-/* End of file postgre_utility.php */
+
+/* End of file postgre_utility.php */
/* Location: ./system/database/drivers/postgre/postgre_utility.php */ \ No newline at end of file
diff --git a/system/database/drivers/sqlite/sqlite_driver.php b/system/database/drivers/sqlite/sqlite_driver.php
index cb53ad91a..b323e4154 100644
--- a/system/database/drivers/sqlite/sqlite_driver.php
+++ b/system/database/drivers/sqlite/sqlite_driver.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -48,7 +48,7 @@ class CI_DB_sqlite_driver extends CI_DB {
*/
function db_connect()
{
- if (! $conn_id = @sqlite_open($this->database, FILE_WRITE_MODE, $error))
+ if ( ! $conn_id = @sqlite_open($this->database, FILE_WRITE_MODE, $error))
{
log_message('error', $error);
@@ -73,7 +73,7 @@ class CI_DB_sqlite_driver extends CI_DB {
*/
function db_pconnect()
{
- if (! $conn_id = @sqlite_popen($this->database, FILE_WRITE_MODE, $error))
+ if ( ! $conn_id = @sqlite_popen($this->database, FILE_WRITE_MODE, $error))
{
log_message('error', $error);
@@ -171,7 +171,7 @@ class CI_DB_sqlite_driver extends CI_DB {
*/
function trans_begin($test_mode = FALSE)
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -201,7 +201,7 @@ class CI_DB_sqlite_driver extends CI_DB {
*/
function trans_commit()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -226,7 +226,7 @@ class CI_DB_sqlite_driver extends CI_DB {
*/
function trans_rollback()
{
- if (! $this->trans_enabled)
+ if ( ! $this->trans_enabled)
{
return TRUE;
}
@@ -482,7 +482,7 @@ class CI_DB_sqlite_driver extends CI_DB {
*/
function _from_tables($tables)
{
- if (! is_array($tables))
+ if ( ! is_array($tables))
{
$tables = array($tables);
}
@@ -530,7 +530,7 @@ class CI_DB_sqlite_driver extends CI_DB {
$valstr[] = $key." = ".$val;
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
$orderby = (count($orderby) >= 1)?' ORDER BY '.implode(", ", $orderby):'';
@@ -577,7 +577,7 @@ class CI_DB_sqlite_driver extends CI_DB {
{
$conditions = '';
- if (count($where) > 0 || count($like) > 0)
+ if (count($where) > 0 OR count($like) > 0)
{
$conditions = "\nWHERE ";
$conditions .= implode("\n", $this->ar_where);
@@ -589,7 +589,7 @@ class CI_DB_sqlite_driver extends CI_DB {
$conditions .= implode("\n", $like);
}
- $limit = (!$limit) ? '' : ' LIMIT '.$limit;
+ $limit = ( ! $limit) ? '' : ' LIMIT '.$limit;
return "DELETE FROM ".$table.$conditions.$limit;
}
@@ -656,6 +656,6 @@ class CI_DB_sqlite_driver extends CI_DB {
}
-
-/* End of file sqlite_driver.php */
+
+/* End of file sqlite_driver.php */
/* Location: ./system/database/drivers/sqlite/sqlite_driver.php */ \ No newline at end of file
diff --git a/system/database/drivers/sqlite/sqlite_forge.php b/system/database/drivers/sqlite/sqlite_forge.php
index 8a1a4da01..25c74a731 100644
--- a/system/database/drivers/sqlite/sqlite_forge.php
+++ b/system/database/drivers/sqlite/sqlite_forge.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -49,7 +49,7 @@ class CI_DB_sqlite_forge extends CI_DB_forge {
*/
function _drop_database($name)
{
- if (! @file_exists($this->db->database) OR ! @unlink($this->db->database))
+ if ( ! @file_exists($this->db->database) OR ! @unlink($this->db->database))
{
if ($this->db->db_debug)
{
@@ -231,6 +231,6 @@ class CI_DB_sqlite_forge extends CI_DB_forge {
}
}
-
-/* End of file sqlite_forge.php */
+
+/* End of file sqlite_forge.php */
/* Location: ./system/database/drivers/sqlite/sqlite_forge.php */ \ No newline at end of file
diff --git a/system/database/drivers/sqlite/sqlite_result.php b/system/database/drivers/sqlite/sqlite_result.php
index 72c93fd48..8bb0d9d0b 100644
--- a/system/database/drivers/sqlite/sqlite_result.php
+++ b/system/database/drivers/sqlite/sqlite_result.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -180,6 +180,6 @@ class CI_DB_sqlite_result extends CI_DB_result {
}
-
-/* End of file sqlite_result.php */
+
+/* End of file sqlite_result.php */
/* Location: ./system/database/drivers/sqlite/sqlite_result.php */ \ No newline at end of file
diff --git a/system/database/drivers/sqlite/sqlite_utility.php b/system/database/drivers/sqlite/sqlite_utility.php
index c85e36575..fff24a715 100644
--- a/system/database/drivers/sqlite/sqlite_utility.php
+++ b/system/database/drivers/sqlite/sqlite_utility.php
@@ -1,4 +1,4 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -124,7 +124,7 @@ class CI_DB_sqlite_utility extends CI_DB_utility {
*/
function _drop_database($name)
{
- if (! @file_exists($this->db->database) OR ! @unlink($this->db->database))
+ if ( ! @file_exists($this->db->database) OR ! @unlink($this->db->database))
{
if ($this->db->db_debug)
{
@@ -136,6 +136,6 @@ class CI_DB_sqlite_utility extends CI_DB_utility {
}
}
-
-/* End of file sqlite_utility.php */
+
+/* End of file sqlite_utility.php */
/* Location: ./system/database/drivers/sqlite/sqlite_utility.php */ \ No newline at end of file