Doctrine 1.2.4
Doctrine_Connection_Module Class Reference

Inherited by Doctrine_DataDict, Doctrine_Export, Doctrine_Expression_Driver, Doctrine_Formatter, Doctrine_Import, Doctrine_Sequence, Doctrine_Transaction, and Doctrine_Util.

Public Member Functions

 __construct ($conn=null)
 
 getConnection ()
 
 getModuleName ()
 

Detailed Description

Definition at line 33 of file Module.php.

Constructor & Destructor Documentation

Doctrine_Connection_Module::__construct (   $conn = null)
Parameters
Doctrine_Connection$connDoctrine_Connection object, every connection module holds an instance of Doctrine_Connection

Definition at line 50 of file Module.php.

{
if ( ! ($conn instanceof Doctrine_Connection)) {
$conn = Doctrine_Manager::getInstance()->getCurrentConnection();
}
$this->conn = $conn;
$e = explode('_', get_class($this));
$this->moduleName = $e[1];
}

Member Function Documentation

Doctrine_Connection_Module::getConnection ( )

getConnection returns the connection object this module uses

Returns
Doctrine_Connection

Definition at line 68 of file Module.php.

{
return $this->conn;
}
Doctrine_Connection_Module::getModuleName ( )

getModuleName returns the name of this module

Returns
string the name of this module

Definition at line 79 of file Module.php.

{
return $this->moduleName;
}

The documentation for this class was generated from the following file: