[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

/lib/database/ -> sfDatabase.class.php (sommaire)

sfDatabase is a base abstraction class that allows you to setup any type of database connection via a configuration file.

Author: Fabien Potencier <fabien.potencier@symfony-project.com>
Author: Sean Kerr <skerr@mojavi.org>
Version: SVN: $Id: sfDatabase.class.php 3210 2007-01-10 20:28:16Z fabien $
Poids: 163 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 7 fonctions

  getConnection()
  getResource()
  initialize()
  getParameterHolder()
  getParameter()
  hasParameter()
  setParameter()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

getConnection()   X-Ref
Retrieves the database connection associated with this sfDatabase implementation.

When this is executed on a Database implementation that isn't an
abstraction layer, a copy of the resource will be returned.

return: mixed A database connection

getResource()   X-Ref
Retrieves a raw database resource associated with this sfDatabase implementation.

return: mixed A database resource

initialize($parameters = array()   X-Ref
Initializes this sfDatabase object.

param: array An associative array of initialization parameters
return: bool true, if initialization completes successfully, otherwise false

getParameterHolder()   X-Ref
Gets the parameter holder for this object.

return: sfParameterHolder A sfParameterHolder instance

getParameter($name, $default = null, $ns = null)   X-Ref
Gets the parameter associated with the given key.

This is a shortcut for:

<code>$this->getParameterHolder()->get()</code>

param: string The key name
param: string The default value
param: string The namespace to use
return: string The value associated with the key

hasParameter($name, $ns = null)   X-Ref
Returns true if the given key exists in the parameter holder.

This is a shortcut for:

<code>$this->getParameterHolder()->has()</code>

param: string The key name
param: string The namespace to use
return: boolean true if the given key exists, false otherwise

setParameter($name, $value, $ns = null)   X-Ref
Sets the value for the given key.

This is a shortcut for:

<code>$this->getParameterHolder()->set()</code>

param: string The key name
param: string The value
param: string The namespace to use



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7