mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/10942] Add access modifiers
PHPBB3-10942
This commit is contained in:
parent
fe1f21d1a5
commit
6776feb0de
6 changed files with 7 additions and 7 deletions
|
@ -293,7 +293,7 @@ class dbal
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
function sql_case($condition, $action_true, $action_false = false)
|
public function sql_case($condition, $action_true, $action_false = false)
|
||||||
{
|
{
|
||||||
$sql_case = 'CASE WHEN ' . $condition;
|
$sql_case = 'CASE WHEN ' . $condition;
|
||||||
$sql_case .= ' THEN ' . $action_true;
|
$sql_case .= ' THEN ' . $action_true;
|
||||||
|
@ -309,7 +309,7 @@ class dbal
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
function sql_concatenate($expr1, $expr2)
|
public function sql_concatenate($expr1, $expr2)
|
||||||
{
|
{
|
||||||
return $expr1 . ' || ' . $expr2;
|
return $expr1 . ' || ' . $expr2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,7 @@ class dbal_mssql extends dbal
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
function sql_concatenate($expr1, $expr2)
|
public function sql_concatenate($expr1, $expr2)
|
||||||
{
|
{
|
||||||
return $expr1 . ' + ' . $expr2;
|
return $expr1 . ' + ' . $expr2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ class dbal_mssql_odbc extends dbal
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
function sql_concatenate($expr1, $expr2)
|
public function sql_concatenate($expr1, $expr2)
|
||||||
{
|
{
|
||||||
return $expr1 . ' + ' . $expr2;
|
return $expr1 . ' + ' . $expr2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -260,7 +260,7 @@ class dbal_mssqlnative extends dbal
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
function sql_concatenate($expr1, $expr2)
|
public function sql_concatenate($expr1, $expr2)
|
||||||
{
|
{
|
||||||
return $expr1 . ' + ' . $expr2;
|
return $expr1 . ' + ' . $expr2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,7 +122,7 @@ class dbal_mysql extends dbal
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
function sql_concatenate($expr1, $expr2)
|
public function sql_concatenate($expr1, $expr2)
|
||||||
{
|
{
|
||||||
return 'CONCAT(' . $expr1 . ', ' . $expr2 . ')';
|
return 'CONCAT(' . $expr1 . ', ' . $expr2 . ')';
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ class dbal_mysqli extends dbal
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
function sql_concatenate($expr1, $expr2)
|
public function sql_concatenate($expr1, $expr2)
|
||||||
{
|
{
|
||||||
return 'CONCAT(' . $expr1 . ', ' . $expr2 . ')';
|
return 'CONCAT(' . $expr1 . ', ' . $expr2 . ')';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue