[ Index ]
 

Code source de WordPress 2.1.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/wp-includes/ -> wp-db.php (sommaire)

(pas de description)

Poids: 388 lignes (11 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

wpdb:: (18 méthodes):
  wpdb()
  __construct()
  __destruct()
  select()
  escape()
  print_error()
  show_errors()
  hide_errors()
  flush()
  query()
  get_var()
  get_row()
  get_col()
  get_results()
  get_col_info()
  timer_start()
  timer_stop()
  bail()


Classe: wpdb  - X-Ref

wpdb($dbuser, $dbpassword, $dbname, $dbhost)   X-Ref
Connects to the database server and selects a database

param: string $dbuser
param: string $dbpassword
param: string $dbname
param: string $dbhost

__construct($dbuser, $dbpassword, $dbname, $dbhost)   X-Ref
Pas de description

__destruct()   X-Ref
Pas de description

select($db)   X-Ref
Selects a database using the current class's $this->dbh

param: string $db name

escape($string)   X-Ref
Escapes content for insertion into the database, for security

param: string $string
return: string query safe string

print_error($str = '')   X-Ref
Pas de description

show_errors()   X-Ref
Pas de description

hide_errors()   X-Ref
Pas de description

flush()   X-Ref
Pas de description

query($query)   X-Ref
Pas de description

get_var($query=null, $x = 0, $y = 0)   X-Ref
Get one variable from the database

param: string $query (can be null as well, for caching, see codex)
param: int $x = 0 row num to return
param: int $y = 0 col num to return
return: mixed results

get_row($query = null, $output = OBJECT, $y = 0)   X-Ref
Get one row from the database

param: string $query
param: string $output ARRAY_A | ARRAY_N | OBJECT
param: int $y row num to return
return: mixed results

get_col($query = null , $x = 0)   X-Ref
Gets one column from the database

param: string $query (can be null as well, for caching, see codex)
param: int $x col num to return
return: array results

get_results($query = null, $output = OBJECT)   X-Ref
Return an entire result set from the database

param: string $query (can also be null to pull from the cache)
param: string $output ARRAY_A | ARRAY_N | OBJECT
return: mixed results

get_col_info($info_type = 'name', $col_offset = -1)   X-Ref
Grabs column metadata from the last query

param: string $info_type one of name, table, def, max_length, not_null, primary_key, multiple_key, unique_key, numeric, blob, type, unsigned, zerofill
param: int $col_offset 0: col name. 1: which table the col's in. 2: col's max length. 3: if the col is numeric. 4: col's type
return: mixed results

timer_start()   X-Ref
Starts the timer, for debugging purposes


timer_stop()   X-Ref
Stops the debugging timer

return: int total time spent on the query, in milliseconds

bail($message)   X-Ref
Wraps fatal errors in a nice header and footer and dies.

param: string $message



Généré le : Fri Mar 30 19:41:27 2007 par Balluche grâce à PHPXref 0.7