Rename DBA::num_rows to DBA::numRows

This commit is contained in:
Hypolite Petovan 2018-07-20 22:05:12 -04:00
parent 1f2c0b98b5
commit 415b982d39
7 changed files with 19 additions and 19 deletions

View file

@ -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;
}

View file

@ -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));

View file

@ -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);