| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
class DBNone extends DBAdapter { |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
* @see DBAdapter::initConnection() |
|---|
| 36 |
*/ |
|---|
| 37 |
public function initConnection(PDO $con, array $settings) |
|---|
| 38 |
{ |
|---|
| 39 |
} |
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
* This method is used to ignore case. |
|---|
| 43 |
* |
|---|
| 44 |
* @param in The string to transform to upper case. |
|---|
| 45 |
* @return The upper case string. |
|---|
| 46 |
*/ |
|---|
| 47 |
public function toUpperCase($in) |
|---|
| 48 |
{ |
|---|
| 49 |
return $in; |
|---|
| 50 |
} |
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
* This method is used to ignore case. |
|---|
| 54 |
* |
|---|
| 55 |
* @param in The string whose case to ignore. |
|---|
| 56 |
* @return The string in a case that can be ignored. |
|---|
| 57 |
*/ |
|---|
| 58 |
public function ignoreCase($in) |
|---|
| 59 |
{ |
|---|
| 60 |
return $in; |
|---|
| 61 |
} |
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 |
* Returns SQL which concatenates the second string to the first. |
|---|
| 65 |
* |
|---|
| 66 |
* @param string String to concatenate. |
|---|
| 67 |
* @param string String to append. |
|---|
| 68 |
* @return string |
|---|
| 69 |
*/ |
|---|
| 70 |
public function concatString($s1, $s2) |
|---|
| 71 |
{ |
|---|
| 72 |
return ($s1 . $s2); |
|---|
| 73 |
} |
|---|
| 74 |
|
|---|
| 75 |
|
|---|
| 76 |
* Returns SQL which extracts a substring. |
|---|
| 77 |
* |
|---|
| 78 |
* @param string String to extract from. |
|---|
| 79 |
* @param int Offset to start from. |
|---|
| 80 |
* @param int Number of characters to extract. |
|---|
| 81 |
* @return string |
|---|
| 82 |
*/ |
|---|
| 83 |
public function subString($s, $pos, $len) |
|---|
| 84 |
{ |
|---|
| 85 |
return substr($s, $pos, $len); |
|---|
| 86 |
} |
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 |
* Returns SQL which calculates the length (in chars) of a string. |
|---|
| 90 |
* |
|---|
| 91 |
* @param string String to calculate length of. |
|---|
| 92 |
* @return string |
|---|
| 93 |
*/ |
|---|
| 94 |
public function strLength($s) |
|---|
| 95 |
{ |
|---|
| 96 |
return strlen($s); |
|---|
| 97 |
} |
|---|
| 98 |
|
|---|
| 99 |
} |
|---|
| 100 |
|
|---|