[ Index ]
 

Code source de CakePHP 1.1.13.4450

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

title

Body

[fermer]

/cake/libs/model/ -> connection_manager.php (sommaire)

Short description for file. Long description for file

Copyright: Copyright 2005-2007, Cake Software Foundation, Inc.
License: http://www.opensource.org/licenses/mit-license.php The MIT License
Version: $Revision: 4409 $
Poids: 206 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ConnectionManager:: (7 méthodes):
  __construct()
  getInstance()
  getDataSource()
  getSourceName()
  loadDataSource()
  enumConnectionObjects()
  __destruct()


Classe: ConnectionManager  - X-Ref

Manages loaded instances of DataSource objects

Long description for file

__construct()   X-Ref
Constructor.


getInstance()   X-Ref
Gets a reference to the ConnectionManger object instance

return: object Instance of ConnectionManager

getDataSource($name)   X-Ref
Gets a reference to a DataSource object

param: string $name The name of the DataSource, as defined in app/config/database.php
return: object Instance of Dbo

getSourceName(&$source)   X-Ref
Gets a DataSource name from an object reference

param: object $source
return: string

loadDataSource($connName)   X-Ref
Loads the DataSource class for the given connection name

param: string $connName The name of the connection, as defined in Connections config
return: boolean True on success, false on failure or if the class is already loaded

enumConnectionObjects()   X-Ref
Gets a list of class and file names associated with the user-defined DataSource connections

return: array An associative array of elements where the key is the connection name

__destruct()   X-Ref
Destructor.




Généré le : Sun Feb 25 19:27:47 2007 par Balluche grâce à PHPXref 0.7