web_interface/astpp/system/database/drivers/cubrid/cubrid_driver.php 1 location
|
@@ 386-403 (lines=18) @@
|
| 383 |
|
* @param string |
| 384 |
|
* @return integer |
| 385 |
|
*/ |
| 386 |
|
function count_all($table = '') |
| 387 |
|
{ |
| 388 |
|
if ($table == '') |
| 389 |
|
{ |
| 390 |
|
return 0; |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 394 |
|
|
| 395 |
|
if ($query->num_rows() == 0) |
| 396 |
|
{ |
| 397 |
|
return 0; |
| 398 |
|
} |
| 399 |
|
|
| 400 |
|
$row = $query->row(); |
| 401 |
|
$this->_reset_select(); |
| 402 |
|
return (int)$row->numrows; |
| 403 |
|
} |
| 404 |
|
|
| 405 |
|
// -------------------------------------------------------------------- |
| 406 |
|
|
web_interface/astpp/system/database/drivers/mssql/mssql_driver.php 1 location
|
@@ 357-374 (lines=18) @@
|
| 354 |
|
* @param string |
| 355 |
|
* @return integer |
| 356 |
|
*/ |
| 357 |
|
function count_all($table = '') |
| 358 |
|
{ |
| 359 |
|
if ($table == '') |
| 360 |
|
{ |
| 361 |
|
return 0; |
| 362 |
|
} |
| 363 |
|
|
| 364 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 365 |
|
|
| 366 |
|
if ($query->num_rows() == 0) |
| 367 |
|
{ |
| 368 |
|
return 0; |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
$row = $query->row(); |
| 372 |
|
$this->_reset_select(); |
| 373 |
|
return (int)$row->numrows; |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
// -------------------------------------------------------------------- |
| 377 |
|
|
web_interface/astpp/system/database/drivers/mysql/mysql_driver.php 1 location
|
@@ 375-392 (lines=18) @@
|
| 372 |
|
* @param string |
| 373 |
|
* @return integer |
| 374 |
|
*/ |
| 375 |
|
function count_all($table = '') |
| 376 |
|
{ |
| 377 |
|
if ($table == '') |
| 378 |
|
{ |
| 379 |
|
return 0; |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 383 |
|
|
| 384 |
|
if ($query->num_rows() == 0) |
| 385 |
|
{ |
| 386 |
|
return 0; |
| 387 |
|
} |
| 388 |
|
|
| 389 |
|
$row = $query->row(); |
| 390 |
|
$this->_reset_select(); |
| 391 |
|
return (int)$row->numrows; |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
// -------------------------------------------------------------------- |
| 395 |
|
|
web_interface/astpp/system/database/drivers/mysqli/mysqli_driver.php 1 location
|
@@ 372-389 (lines=18) @@
|
| 369 |
|
* @param string |
| 370 |
|
* @return integer |
| 371 |
|
*/ |
| 372 |
|
function count_all($table = '') |
| 373 |
|
{ |
| 374 |
|
if ($table == '') |
| 375 |
|
{ |
| 376 |
|
return 0; |
| 377 |
|
} |
| 378 |
|
|
| 379 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 380 |
|
|
| 381 |
|
if ($query->num_rows() == 0) |
| 382 |
|
{ |
| 383 |
|
return 0; |
| 384 |
|
} |
| 385 |
|
|
| 386 |
|
$row = $query->row(); |
| 387 |
|
$this->_reset_select(); |
| 388 |
|
return (int)$row->numrows; |
| 389 |
|
} |
| 390 |
|
|
| 391 |
|
// -------------------------------------------------------------------- |
| 392 |
|
|
web_interface/astpp/system/database/drivers/oci8/oci8_driver.php 1 location
|
@@ 460-477 (lines=18) @@
|
| 457 |
|
* @param string |
| 458 |
|
* @return integer |
| 459 |
|
*/ |
| 460 |
|
public function count_all($table = '') |
| 461 |
|
{ |
| 462 |
|
if ($table == '') |
| 463 |
|
{ |
| 464 |
|
return 0; |
| 465 |
|
} |
| 466 |
|
|
| 467 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 468 |
|
|
| 469 |
|
if ($query == FALSE) |
| 470 |
|
{ |
| 471 |
|
return 0; |
| 472 |
|
} |
| 473 |
|
|
| 474 |
|
$row = $query->row(); |
| 475 |
|
$this->_reset_select(); |
| 476 |
|
return (int)$row->numrows; |
| 477 |
|
} |
| 478 |
|
|
| 479 |
|
// -------------------------------------------------------------------- |
| 480 |
|
|
web_interface/astpp/system/database/drivers/odbc/odbc_driver.php 1 location
|
@@ 329-346 (lines=18) @@
|
| 326 |
|
* @param string |
| 327 |
|
* @return integer |
| 328 |
|
*/ |
| 329 |
|
function count_all($table = '') |
| 330 |
|
{ |
| 331 |
|
if ($table == '') |
| 332 |
|
{ |
| 333 |
|
return 0; |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 337 |
|
|
| 338 |
|
if ($query->num_rows() == 0) |
| 339 |
|
{ |
| 340 |
|
return 0; |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
$row = $query->row(); |
| 344 |
|
$this->_reset_select(); |
| 345 |
|
return (int)$row->numrows; |
| 346 |
|
} |
| 347 |
|
|
| 348 |
|
// -------------------------------------------------------------------- |
| 349 |
|
|
web_interface/astpp/system/database/drivers/pdo/pdo_driver.php 1 location
|
@@ 397-414 (lines=18) @@
|
| 394 |
|
* @param string |
| 395 |
|
* @return integer |
| 396 |
|
*/ |
| 397 |
|
function count_all($table = '') |
| 398 |
|
{ |
| 399 |
|
if ($table == '') |
| 400 |
|
{ |
| 401 |
|
return 0; |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 405 |
|
|
| 406 |
|
if ($query->num_rows() == 0) |
| 407 |
|
{ |
| 408 |
|
return 0; |
| 409 |
|
} |
| 410 |
|
|
| 411 |
|
$row = $query->row(); |
| 412 |
|
$this->_reset_select(); |
| 413 |
|
return (int)$row->numrows; |
| 414 |
|
} |
| 415 |
|
|
| 416 |
|
// -------------------------------------------------------------------- |
| 417 |
|
|
web_interface/astpp/system/database/drivers/postgre/postgre_driver.php 1 location
|
@@ 375-392 (lines=18) @@
|
| 372 |
|
* @param string |
| 373 |
|
* @return integer |
| 374 |
|
*/ |
| 375 |
|
function count_all($table = '') |
| 376 |
|
{ |
| 377 |
|
if ($table == '') |
| 378 |
|
{ |
| 379 |
|
return 0; |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 383 |
|
|
| 384 |
|
if ($query->num_rows() == 0) |
| 385 |
|
{ |
| 386 |
|
return 0; |
| 387 |
|
} |
| 388 |
|
|
| 389 |
|
$row = $query->row(); |
| 390 |
|
$this->_reset_select(); |
| 391 |
|
return (int)$row->numrows; |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
// -------------------------------------------------------------------- |
| 395 |
|
|
web_interface/astpp/system/database/drivers/sqlite/sqlite_driver.php 1 location
|
@@ 344-361 (lines=18) @@
|
| 341 |
|
* @param string |
| 342 |
|
* @return integer |
| 343 |
|
*/ |
| 344 |
|
function count_all($table = '') |
| 345 |
|
{ |
| 346 |
|
if ($table == '') |
| 347 |
|
{ |
| 348 |
|
return 0; |
| 349 |
|
} |
| 350 |
|
|
| 351 |
|
$query = $this->query($this->_count_string.$this->_protect_identifiers('numrows')." FROM ".$this->_protect_identifiers($table, TRUE, NULL, FALSE)); |
| 352 |
|
|
| 353 |
|
if ($query->num_rows() == 0) |
| 354 |
|
{ |
| 355 |
|
return 0; |
| 356 |
|
} |
| 357 |
|
|
| 358 |
|
$row = $query->row(); |
| 359 |
|
$this->_reset_select(); |
| 360 |
|
return (int)$row->numrows; |
| 361 |
|
} |
| 362 |
|
|
| 363 |
|
// -------------------------------------------------------------------- |
| 364 |
|
|