Perforce Chronicle 2012.2/486814
API Documentation
|
Provides a common interface for connected models. More...
Public Member Functions | |
__construct (P4_Connection_Interface $connection=null) | |
Instantiate the model and set the connection to use. | |
clearConnection () | |
Clear this model's connection. | |
getConnection () | |
Get the Perforce connection used by this model. | |
hasConnection () | |
Determine if this model has a connection to Perforce. | |
setConnection (P4_Connection_Interface $connection) | |
Set the Perforce connection to use when issuing Perforce commands for this instance. | |
Static Public Member Functions | |
static | getDefaultConnection () |
Get the default Perforce connection to use. |
Provides a common interface for connected models.
P4_ConnectedInterface::__construct | ( | P4_Connection_Interface $ | connection = null | ) |
Instantiate the model and set the connection to use.
P4_Connection_Interface | $connection | optional - a connection to use for this instance. |
Implemented in P4_ConnectedAbstract.
P4_ConnectedInterface::clearConnection | ( | ) |
Clear this model's connection.
This is primarily for testing purposes.
Implemented in P4_ConnectedAbstract.
P4_ConnectedInterface::getConnection | ( | ) |
Get the Perforce connection used by this model.
Implemented in P4_ConnectedAbstract.
static P4_ConnectedInterface::getDefaultConnection | ( | ) | [static] |
Get the default Perforce connection to use.
Implemented in P4_ConnectedAbstract.
P4_ConnectedInterface::hasConnection | ( | ) |
Determine if this model has a connection to Perforce.
Implemented in P4_ConnectedAbstract.
P4_ConnectedInterface::setConnection | ( | P4_Connection_Interface $ | connection | ) |
Set the Perforce connection to use when issuing Perforce commands for this instance.
P4_Connection_Interface | $connection | the connection to use for this instance. |
Implemented in P4_ConnectedAbstract.