PHP 클래스 Prado\Data\SqlMap\Configuration\TResultMap

A TResultMap lets you control how data is extracted from the result of a query, and how the columns are mapped to object properties. A TResultMap can describe the column type, a null value replacement, and complex property mappings including Collections. The can contain any number of property mappings that map object properties to the columns of a result element. The property mappings are applied, and the columns are read, in the order that they are defined. Maintaining the element order ensures consistent results between different drivers and providers. The {@link Class setClass()} property must be a PHP class object or array instance. The optional {@link Extends setExtends()} attribute can be set to the ID of another upon which to base this . All properties of the "parent" will be included as part of this , and values from the "parent" are set before any values specified by this .
부터: 3.1
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Initialize the columns collection.
addResultProperty ( TResultProperty $property ) Add a TResultProperty to result mapping.
createInstanceOfResult ( $registry ) : mixed Create a new instance of the class of this result map.
getClass ( ) : string
getColumns ( ) : TMap
getDiscriminator ( ) : TDiscriminator
getExtends ( ) : string
getGroupBy ( ) : string
getID ( ) : string
resolveSubMap ( $registry, $row ) : TResultMap Result sub-mappings using the discriminiator column.
setClass ( $value )
setDiscriminator ( TDiscriminator $value )
setExtends ( $value )
setGroupBy ( $value )
setID ( $value )

메소드 상세

__construct() 공개 메소드

Initialize the columns collection.
public __construct ( )

addResultProperty() 공개 메소드

Add a TResultProperty to result mapping.
public addResultProperty ( TResultProperty $property )
$property TResultProperty

createInstanceOfResult() 공개 메소드

Create a new instance of the class of this result map.
public createInstanceOfResult ( $registry ) : mixed
리턴 mixed new result object.

getClass() 공개 메소드

public getClass ( ) : string
리턴 string result class name.

getColumns() 공개 메소드

public getColumns ( ) : TMap
리턴 Prado\Collections\TMap result columns.

getDiscriminator() 공개 메소드

public getDiscriminator ( ) : TDiscriminator
리턴 TDiscriminator result class discriminator.

getExtends() 공개 메소드

public getExtends ( ) : string
리턴 string result map extends another result map.

getGroupBy() 공개 메소드

public getGroupBy ( ) : string
리턴 string result map groups by.

getID() 공개 메소드

public getID ( ) : string
리턴 string a unique identifier for the .

resolveSubMap() 공개 메소드

Result sub-mappings using the discriminiator column.
public resolveSubMap ( $registry, $row ) : TResultMap
리턴 TResultMap result sub-map.

setClass() 공개 메소드

public setClass ( $value )

setDiscriminator() 공개 메소드

public setDiscriminator ( TDiscriminator $value )
$value TDiscriminator

setExtends() 공개 메소드

public setExtends ( $value )

setGroupBy() 공개 메소드

public setGroupBy ( $value )

setID() 공개 메소드

public setID ( $value )