Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
mssql_base.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 namespace phpbb\db\driver;
15
16 /**
17 * MSSQL Database Base Abstraction Layer
18 */
19 abstract class mssql_base extends \phpbb\db\driver\driver
20 {
21 /**
22 * {@inheritDoc}
23 */
24 public function sql_concatenate($expr1, $expr2)
25 {
26 return $expr1 . ' + ' . $expr2;
27 }
28
29 /**
30 * {@inheritDoc}
31 */
32 function sql_escape($msg)
33 {
34 return str_replace(array("'", "\0"), array("''", ''), $msg);
35 }
36
37 /**
38 * {@inheritDoc}
39 */
40 function sql_lower_text($column_name)
41 {
42 return "LOWER(SUBSTRING($column_name, 1, DATALENGTH($column_name)))";
43 }
44
45 /**
46 * Build LIKE expression
47 * @access private
48 */
49 function _sql_like_expression($expression)
50 {
51 return $expression . " ESCAPE '\\'";
52 }
53
54 /**
55 * Build NOT LIKE expression
56 * @access private
57 */
58 function _sql_not_like_expression($expression)
59 {
60 return $expression . " ESCAPE '\\'";
61 }
62
63 /**
64 * Build db-specific query data
65 * @access private
66 */
67 function _sql_custom_build($stage, $data)
68 {
69 return $data;
70 }
71 }
72