PHP 클래스 Prado\Data\SqlMap\TSqlMapConfig

Database connection and TSqlMapManager configuration.
부터: 3.1
상속: extends Prado\Data\TDataSourceConfig
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
clearCache ( ) Deletes the configuration cache.
getClient ( ) : TSqlMapGateway Initialize the sqlmap if necessary, returns the TSqlMapGateway instance.
getConfigFile ( ) : string
getEnableCache ( ) : boolean
getSqlMapManager ( ) : TSqlMapManager Create and configure the data mapper using sqlmap configuration file.
setConfigFile ( $value )
setEnableCache ( $value ) Set true to cache sqlmap instances.

보호된 메소드들

메소드 설명
cacheSqlMapManager ( $manager ) : boolean Saves the current SqlMap manager to cache.
createSqlMapGateway ( ) : TSqlMapGateway
loadCachedSqlMapManager ( ) : TSqlMapManager Loads SqlMap manager from cache.

비공개 메소드들

메소드 설명
getCacheKey ( ) : string

메소드 상세

cacheSqlMapManager() 보호된 메소드

Saves the current SqlMap manager to cache.
protected cacheSqlMapManager ( $manager ) : boolean
리턴 boolean true if SqlMap manager was cached, false otherwise.

clearCache() 공개 메소드

Deletes the configuration cache.
public clearCache ( )

createSqlMapGateway() 보호된 메소드

protected createSqlMapGateway ( ) : TSqlMapGateway
리턴 TSqlMapGateway SqlMap gateway instance.

getClient() 공개 메소드

Initialize the sqlmap if necessary, returns the TSqlMapGateway instance.
public getClient ( ) : TSqlMapGateway
리턴 TSqlMapGateway SqlMap gateway instance.

getConfigFile() 공개 메소드

public getConfigFile ( ) : string
리턴 string SqlMap configuration file.

getEnableCache() 공개 메소드

public getEnableCache ( ) : boolean
리턴 boolean true if configuration should be cached, false otherwise.

getSqlMapManager() 공개 메소드

Or if cache is enabled and manager already cached load from cache. If cache is enabled, the data mapper instance is cached.
부터: 3.1.7
public getSqlMapManager ( ) : TSqlMapManager
리턴 TSqlMapManager SqlMap manager instance

loadCachedSqlMapManager() 보호된 메소드

Loads SqlMap manager from cache.
protected loadCachedSqlMapManager ( ) : TSqlMapManager
리턴 TSqlMapManager SqlMap manager intance if load was successful, null otherwise.

setConfigFile() 공개 메소드

public setConfigFile ( $value )

setEnableCache() 공개 메소드

Set true to cache sqlmap instances.
public setEnableCache ( $value )