Function DatabaseConnector->table_exists

Definitions

sources/database.php

  • Check if a table exists.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$table_name ID_TEXT No No required parameter N/A N/A The table name
$really_only boolean No No False N/A N/A Only check direct rather than using meta-table (if possible) (false means check both directly and using meta-table if possible)

Returns

  • Whether it exists
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Check if a table exists.
 *
 * @param  ID_TEXT $table_name The table name
 * @param  boolean $really_only Only check direct rather than using meta-table (if possible) (false means check both directly and using meta-table if possible)
 * @return boolean Whether it exists
 */

public function table_exists(string $table_name, bool $really_only = false) : bool