Connection::sqlFunctionIf

public static Connection::sqlFunctionIf($condition, $expr1, $expr2 = NULL)

SQLite compatibility implementation for the IF() SQL function.

File

core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php, line 191

Class

Connection
SQLite implementation of \Drupal\Core\Database\Connection.

Namespace

Drupal\Core\Database\Driver\sqlite

Code

public static function sqlFunctionIf($condition, $expr1, $expr2 = NULL) {
  return $condition ? $expr1 : $expr2;
}
doc_Drupal
2016-10-29 08:56:02
Comments
Leave a Comment

Please login to continue.