PHP 클래스 Prado\Data\ActiveRecord\TActiveRecordManager
The default connection can be set as follows:
TActiveRecordManager::getInstance()->setDbConnection($conn);
All new active record created after setting the
{@link DbConnection setDbConnection()} will use that connection unless
the custom ActiveRecord class overrides the ActiveRecord::getDbConnection().
Set the {@link setCache Cache} property to an ICache object to allow
the active record gateway to cache the table meta data information.
파일 보기
프로젝트 열기: pradosoft/prado
1 사용 예제들
공개 메소드들
보호된 메소드들
메소드 상세
createRecordGateway()
보호된 메소드
protected createRecordGateway ( ) : TActiveRecordGateway |
리턴 |
TActiveRecordGateway |
default record gateway. |
public getCache ( ) : ICache |
리턴 |
ICache |
application cache. |
public getDbConnection ( ) : TDbConnection |
리턴 |
TDbConnection |
default database connection |
public getGatewayClass ( ) : string |
리턴 |
string |
the implementation class of ActiveRecordGateway. Defaults to {@link TActiveRecordManager::DEFAULT_GATEWAY_CLASS DEFAULT_GATEWAY_CLASS} |
public static getInstance ( $self = null ) : TActiveRecordManager |
리턴 |
TActiveRecordManager |
static instance of record manager. |
getInvalidFinderResult()
공개 메소드
public getInvalidFinderResult ( ) : TActiveRecordInvalidFinderResult |
리턴 |
TActiveRecordInvalidFinderResult |
Defaults to '{@link TActiveRecordInvalidFinderResult::Null Null}'. |
getRecordGateway()
공개 메소드
public getRecordGateway ( ) : TActiveRecordGateway |
리턴 |
TActiveRecordGateway |
record gateway. |
Set implementation class of ActiveRecordGateway
setInvalidFinderResult()
공개 메소드
Define the way an active record finder react if an invalid magic-finder invoked