previousDB_common::getOne() (Previous) (Next) DB_common::getRow()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

DB_common::getOption()

DB_common::getOption() – Détermine le statut courant d'une option de configuration PEAR DB

Synopsis

mixed getOption ( string $option )

Description

Détermine le statut courant d'une option de configuration PEAR DB.

Parameter

string $option

nom de l'option à examiner

Return value

mixed : la valeur de l'option

Throws

Possible PEAR_Error values
Code erreur Message d'erreur Raison Solution
NULL unknown option L'option donnée n'existe pas. Vérifier si vous n'avez pas fait d'erreurs de frappes sur l'option $option .

Note

This function can not be called statically.

Example

Exemple simple avec getOption()

<?php
// Vous devez avoir un objet DB valide nommé $db...
if ($db->getOption('autofree')) {
    
// faîte quelque chose ici...
}
?>
previousDB_common::getOne() (Previous) (Next) DB_common::getRow()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.