@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Return if the database provider have a top or similar function |
| 57 | - * @return unknown_type |
|
| 57 | + * @return boolean |
|
| 58 | 58 | */ |
| 59 | 59 | function hasTop() |
| 60 | 60 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * Return if the database provider have a top or similar function |
| 46 | - * @return unknown_type |
|
| 46 | + * @return boolean |
|
| 47 | 47 | */ |
| 48 | 48 | function hasTop() |
| 49 | 49 | { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * Return if the database provider have a top or similar function |
| 53 | - * @return unknown_type |
|
| 53 | + * @return boolean |
|
| 54 | 54 | */ |
| 55 | 55 | function hasTop() |
| 56 | 56 | { |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | break; |
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | - $s.="')"; |
|
| 140 | + $s .= "')"; |
|
| 141 | 141 | if ($concat) $s = "CONCAT($s)"; |
| 142 | 142 | return $s; |
| 143 | 143 | } |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | |
| 186 | 186 | /** |
| 187 | 187 | * |
| 188 | - * @return handle |
|
| 188 | + * @return resource|null |
|
| 189 | 189 | */ |
| 190 | 190 | public function getDbConnection() |
| 191 | 191 | { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Return if the database provider have a top or similar function |
| 47 | - * @return unknown_type |
|
| 47 | + * @return boolean |
|
| 48 | 48 | */ |
| 49 | 49 | function hasTop() |
| 50 | 50 | { |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | break; |
| 99 | 99 | |
| 100 | 100 | case 'H': |
| 101 | - $s.= 'HH24'; |
|
| 101 | + $s .= 'HH24'; |
|
| 102 | 102 | break; |
| 103 | 103 | |
| 104 | 104 | case 'h': |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | protected $_conn; |
| 26 | 26 | protected $_transaction = false; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param ConnectionManagement $connMngt |
|
| 30 | + */ |
|
| 28 | 31 | public function __construct($connMngt) |
| 29 | 32 | { |
| 30 | 33 | $this->_connectionManagement = $connMngt; |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | sqlrcur_prepareQuery($cur, $sql); |
| 57 | 57 | $bindCount = 1; |
| 58 | 58 | foreach ($array as $key => $value) { |
| 59 | - $field = strval($bindCount ++); |
|
| 59 | + $field = strval($bindCount++); |
|
| 60 | 60 | sqlrcur_inputBind($cur, $field, $value); |
| 61 | 61 | } |
| 62 | 62 | $success = sqlrcur_executeQuery($cur); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * |
| 34 | 34 | * @param ConnectionManagement $connData |
| 35 | 35 | * @param string $sql |
| 36 | - * @param array $param |
|
| 36 | + * @param array $params |
|
| 37 | 37 | * @return array An array with the adjusted SQL and PARAMs |
| 38 | 38 | */ |
| 39 | 39 | public static function parseSQL(ConnectionManagement $connData, $sql, $params = null) |
@@ -32,7 +32,6 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Generate and Execute UPDATE and INSERTS |
| 34 | 34 | * |
| 35 | - * @param DBDataset $db |
|
| 36 | 35 | * @param string $table |
| 37 | 36 | * @param array $fields |
| 38 | 37 | * @param SQLType $type |
@@ -148,6 +147,9 @@ discard block |
||
| 148 | 147 | $this->_fieldDeliRight = $right; |
| 149 | 148 | } |
| 150 | 149 | |
| 150 | + /** |
|
| 151 | + * @param string $sql |
|
| 152 | + */ |
|
| 151 | 153 | public static function createSafeSQL($sql, $list) |
| 152 | 154 | { |
| 153 | 155 | foreach ($list as $key => $value) { |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | } elseif ($valores[0] == SQLFieldType::DATE) { |
| 110 | 110 | $date = ($valores[1] instanceof DateTime ? $valores[1]->format(DBBaseFunctions::YMDH) : $valores[1]); |
| 111 | 111 | $param[$name] = $date; |
| 112 | - if (($this->_db->getDbType() == 'oci8') || ( ($this->_db->getDbType() == 'dsn') && (strpos($this->_db->getDbConnectionString(), |
|
| 112 | + if (($this->_db->getDbType() == 'oci8') || (($this->_db->getDbType() == 'dsn') && (strpos($this->_db->getDbConnectionString(), |
|
| 113 | 113 | "oci8")))) { |
| 114 | 114 | return "TO_DATE($paramName, 'YYYY-MM-DD')"; |
| 115 | 115 | } else { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * @param string $fieldName |
| 20 | 20 | * @param int $startPos |
| 21 | 21 | * @param int $length |
| 22 | - * @param bool $requiredValue |
|
| 22 | + * @param string|boolean $requiredValue |
|
| 23 | 23 | * @param array_of_FixedTextDefinition $subTypes |
| 24 | 24 | */ |
| 25 | 25 | public function __construct($fieldName, $startPos, $length, $requiredValue = "", $subTypes = null) |