Rename DBA::num_rows to DBA::numRows
This commit is contained in:
@@ -666,7 +666,7 @@ class DBA
|
||||
if (is_bool($stmt)) {
|
||||
$retval = $stmt;
|
||||
} else {
|
||||
$retval = (self::num_rows($stmt) > 0);
|
||||
$retval = (self::numRows($stmt) > 0);
|
||||
}
|
||||
|
||||
self::close($stmt);
|
||||
@@ -732,7 +732,7 @@ class DBA
|
||||
* @param PDOStatement|mysqli_result|mysqli_stmt Statement object
|
||||
* @return int Number of rows
|
||||
*/
|
||||
public static function num_rows($stmt) {
|
||||
public static function numRows($stmt) {
|
||||
if (!is_object($stmt)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ class DBM
|
||||
}
|
||||
|
||||
if (is_object($array)) {
|
||||
return DBA::num_rows($array) > 0;
|
||||
return DBA::numRows($array) > 0;
|
||||
}
|
||||
|
||||
return (is_array($array) && (count($array) > 0));
|
||||
|
||||
@@ -706,7 +706,7 @@ class DBStructure
|
||||
if (is_bool($stmt)) {
|
||||
$retval = $stmt;
|
||||
} else {
|
||||
$retval = (DBA::num_rows($stmt) > 0);
|
||||
$retval = (DBA::numRows($stmt) > 0);
|
||||
}
|
||||
|
||||
DBA::close($stmt);
|
||||
@@ -741,7 +741,7 @@ class DBStructure
|
||||
if (is_bool($stmt)) {
|
||||
$retval = $stmt;
|
||||
} else {
|
||||
$retval = (DBA::num_rows($stmt) > 0);
|
||||
$retval = (DBA::numRows($stmt) > 0);
|
||||
}
|
||||
|
||||
DBA::close($stmt);
|
||||
|
||||
Reference in New Issue
Block a user