mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11015] Fix some more whitespace in the driver
PHPBB3-11015
This commit is contained in:
parent
f8841b7f52
commit
9cc7680965
1 changed files with 21 additions and 21 deletions
|
@ -75,9 +75,9 @@ class phpbb_db_driver
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->num_queries = array(
|
$this->num_queries = array(
|
||||||
'cached' => 0,
|
'cached' => 0,
|
||||||
'normal' => 0,
|
'normal' => 0,
|
||||||
'total' => 0,
|
'total' => 0,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Fill default sql layer based on the class being called.
|
// Fill default sql layer based on the class being called.
|
||||||
|
@ -288,10 +288,10 @@ class phpbb_db_driver
|
||||||
*
|
*
|
||||||
* Note: The two statements action_true and action_false must have the same data type (int, vchar, ...) in the database!
|
* Note: The two statements action_true and action_false must have the same data type (int, vchar, ...) in the database!
|
||||||
*
|
*
|
||||||
* @param string $condition The condition which must be true, to use action_true rather then action_else
|
* @param string $condition The condition which must be true, to use action_true rather then action_else
|
||||||
* @param string $action_true SQL expression that is used, if the condition is true
|
* @param string $action_true SQL expression that is used, if the condition is true
|
||||||
* @param string $action_else SQL expression that is used, if the condition is false, optional
|
* @param string $action_else SQL expression that is used, if the condition is false, optional
|
||||||
* @return string CASE expression including the condition and statements
|
* @return string CASE expression including the condition and statements
|
||||||
*/
|
*/
|
||||||
public function sql_case($condition, $action_true, $action_false = false)
|
public function sql_case($condition, $action_true, $action_false = false)
|
||||||
{
|
{
|
||||||
|
@ -305,9 +305,9 @@ class phpbb_db_driver
|
||||||
/**
|
/**
|
||||||
* Build a concatenated expression
|
* Build a concatenated expression
|
||||||
*
|
*
|
||||||
* @param string $expr1 Base SQL expression where we append the second one
|
* @param string $expr1 Base SQL expression where we append the second one
|
||||||
* @param string $expr2 SQL expression that is appended to the first expression
|
* @param string $expr2 SQL expression that is appended to the first expression
|
||||||
* @return string Concatenated string
|
* @return string Concatenated string
|
||||||
*/
|
*/
|
||||||
public function sql_concatenate($expr1, $expr2)
|
public function sql_concatenate($expr1, $expr2)
|
||||||
{
|
{
|
||||||
|
@ -447,10 +447,10 @@ class phpbb_db_driver
|
||||||
* arrays to improve comparison speed
|
* arrays to improve comparison speed
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $field name of the sql column that shall be compared
|
* @param string $field name of the sql column that shall be compared
|
||||||
* @param array $array array of values that are allowed (IN) or not allowed (NOT IN)
|
* @param array $array array of values that are allowed (IN) or not allowed (NOT IN)
|
||||||
* @param bool $negate true for NOT IN (), false for IN () (default)
|
* @param bool $negate true for NOT IN (), false for IN () (default)
|
||||||
* @param bool $allow_empty_set If true, allow $array to be empty, this function will return 1=1 or 1=0 then. Default to false.
|
* @param bool $allow_empty_set If true, allow $array to be empty, this function will return 1=1 or 1=0 then. Default to false.
|
||||||
*/
|
*/
|
||||||
function sql_in_set($field, $array, $negate = false, $allow_empty_set = false)
|
function sql_in_set($field, $array, $negate = false, $allow_empty_set = false)
|
||||||
{
|
{
|
||||||
|
@ -555,9 +555,9 @@ class phpbb_db_driver
|
||||||
/**
|
/**
|
||||||
* Run LOWER() on DB column of type text (i.e. neither varchar nor char).
|
* Run LOWER() on DB column of type text (i.e. neither varchar nor char).
|
||||||
*
|
*
|
||||||
* @param string $column_name The column name to use
|
* @param string $column_name The column name to use
|
||||||
*
|
*
|
||||||
* @return string A SQL statement like "LOWER($column_name)"
|
* @return string A SQL statement like "LOWER($column_name)"
|
||||||
*/
|
*/
|
||||||
function sql_lower_text($column_name)
|
function sql_lower_text($column_name)
|
||||||
{
|
{
|
||||||
|
@ -1010,10 +1010,10 @@ class phpbb_db_driver
|
||||||
/**
|
/**
|
||||||
* Gets the estimated number of rows in a specified table.
|
* Gets the estimated number of rows in a specified table.
|
||||||
*
|
*
|
||||||
* @param string $table_name Table name
|
* @param string $table_name Table name
|
||||||
*
|
*
|
||||||
* @return string Number of rows in $table_name.
|
* @return string Number of rows in $table_name.
|
||||||
* Prefixed with ~ if estimated (otherwise exact).
|
* Prefixed with ~ if estimated (otherwise exact).
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
|
@ -1025,9 +1025,9 @@ class phpbb_db_driver
|
||||||
/**
|
/**
|
||||||
* Gets the exact number of rows in a specified table.
|
* Gets the exact number of rows in a specified table.
|
||||||
*
|
*
|
||||||
* @param string $table_name Table name
|
* @param string $table_name Table name
|
||||||
*
|
*
|
||||||
* @return string Exact number of rows in $table_name.
|
* @return string Exact number of rows in $table_name.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue