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

TParameterMap holds one or more parameter child elements that map object properties to placeholders in a SQL statement. A TParameterMap defines an ordered list of values that match up with the placeholders of a parameterized query statement. While the attributes specified by the map still need to be in the correct order, each parameter is named. You can populate the underlying class in any order, and the TParameterMap ensures each value is passed in the correct order. Parameter Maps can be provided as an external element and inline. The element accepts two attributes: id (required) and extends (optional).
부터: 3.1
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Initialize the properties and property map collections.
addProperty ( TParameterProperty $property )
getExtends ( ) : string
getID ( ) : string
getProperties ( ) : TParameterProperty[]
getProperty ( $index ) : TParameterProperty
getPropertyNames ( ) : array
getPropertyValue ( $registry, $property, $parameterValue ) : unknown Get the value of a property from the the parameter object.
insertProperty ( $index, TParameterProperty $property )
setExtends ( $value )
setID ( $value )

보호된 메소드들

메소드 설명
createTypeHandler ( $property, $registry ) : TSqlMapTypeHandler Create type handler from {@link Type setType()} or {@link TypeHandler setTypeHandler}.
getObjectValue ( $object, $property ) : mixed
nullifyDefaultValue ( $property, $value ) : mixed When the actual value matches the {@link NullValue TParameterProperty::setNullValue()}, set the current value to null.

메소드 상세

__construct() 공개 메소드

Initialize the properties and property map collections.
public __construct ( )

addProperty() 공개 메소드

public addProperty ( TParameterProperty $property )
$property TParameterProperty

createTypeHandler() 보호된 메소드

Create type handler from {@link Type setType()} or {@link TypeHandler setTypeHandler}.
protected createTypeHandler ( $property, $registry ) : TSqlMapTypeHandler
리턴 TSqlMapTypeHandler type handler.

getExtends() 공개 메소드

public getExtends ( ) : string
리턴 string name of another upon which to base this TParameterMap.

getID() 공개 메소드

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

getObjectValue() 보호된 메소드

protected getObjectValue ( $object, $property ) : mixed
리턴 mixed property value.

getProperties() 공개 메소드

public getProperties ( ) : TParameterProperty[]
리턴 TParameterProperty[] list of properties for the parameter map.

getProperty() 공개 메소드

public getProperty ( $index ) : TParameterProperty
리턴 TParameterProperty parameter property.

getPropertyNames() 공개 메소드

public getPropertyNames ( ) : array
리턴 array list of property names.

getPropertyValue() 공개 메소드

Get the value of a property from the the parameter object.
public getPropertyValue ( $registry, $property, $parameterValue ) : unknown
리턴 unknown

insertProperty() 공개 메소드

public insertProperty ( $index, TParameterProperty $property )
$property TParameterProperty

nullifyDefaultValue() 보호된 메소드

When the actual value matches the {@link NullValue TParameterProperty::setNullValue()}, set the current value to null.
protected nullifyDefaultValue ( $property, $value ) : mixed
리턴 mixed null if NullValue matches currrent value.

setExtends() 공개 메소드

public setExtends ( $value )

setID() 공개 메소드

public setID ( $value )