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).
파일 보기
프로젝트 열기: pradosoft/prado
1 사용 예제들
공개 메소드들
보호된 메소드들
메소드 |
설명 |
|
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. |
|
메소드 상세
Initialize the properties and property map collections.
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. |
public getProperties ( ) : TParameterProperty[] |
리턴 |
TParameterProperty[] |
list of properties for the parameter map. |
public getProperty ( $index ) : TParameterProperty |
리턴 |
TParameterProperty |
parameter property. |
getPropertyNames()
공개 메소드
getPropertyValue()
공개 메소드
Get the value of a property from the the parameter object.
public getPropertyValue ( $registry, $property, $parameterValue ) : unknown |
리턴 |
unknown |
|
public insertProperty ( $index, TParameterProperty $property ) |
$property |
TParameterProperty |
|
nullifyDefaultValue()
보호된 메소드
When the actual value matches the {@link NullValue TParameterProperty::setNullValue()},
set the current value to null.