PHP 클래스 GDS\Mapper\RESTv1

상속: extends GDS\Mapper
파일 보기 프로젝트 열기: tomwalder/php-gds

공개 메소드들

메소드 설명
buildKeyPath ( Entity $obj_gds_entity, boolean $bol_first_node = true ) : array Create a fully qualified Key path
mapOneFromResult ( object $obj_result ) : Entity Map a single result out of the Raw response data array FROM Google TO a GDS Entity
mapToGoogle ( Entity $obj_gds_entity ) : stdClass Create a REST representation of a GDS entity

보호된 메소드들

메소드 설명
createKeyPathElement ( array $arr_kpe ) : stdClass Create a Key Path Element from array
createPropertyValue ( array $arr_field_def, $mix_value ) : mixed Create a property object
extractAutoDetectValue ( object $obj_property ) : mixed Auto detect & extract a value
extractDatetimeValue ( $obj_property ) : mixed Extract a datetime value
extractGeopointValue ( $obj_property ) : Geopoint Extract a Geopoint value
extractPropertyValue ( $int_type, object $obj_property ) : mixed Extract a single property value from a Property object
extractStringListValue ( $obj_property ) : array Extract a String List value

비공개 메소드들

메소드 설명
bestEffortFieldDefs ( Entity $obj_gds_entity ) : array Find and return the field definitions (if any) for the Entity
createEntityWithKey ( stdClass $obj_result ) : array Create & populate a GDS\Entity with key data

메소드 상세

buildKeyPath() 공개 메소드

Create a fully qualified Key path
public buildKeyPath ( Entity $obj_gds_entity, boolean $bol_first_node = true ) : array
$obj_gds_entity GDS\Entity
$bol_first_node boolean
리턴 array

createKeyPathElement() 보호된 메소드

Create a Key Path Element from array
protected createKeyPathElement ( array $arr_kpe ) : stdClass
$arr_kpe array
리턴 stdClass

createPropertyValue() 보호된 메소드

Create a property object
protected createPropertyValue ( array $arr_field_def, $mix_value ) : mixed
$arr_field_def array
$mix_value
리턴 mixed

extractAutoDetectValue() 보호된 메소드

Auto detect & extract a value
protected extractAutoDetectValue ( object $obj_property ) : mixed
$obj_property object
리턴 mixed

extractDatetimeValue() 보호된 메소드

We will lose accuracy - past seconds in version 3.0 - past microseconds (down from nanoseconds) in version 4.0
protected extractDatetimeValue ( $obj_property ) : mixed
$obj_property
리턴 mixed

extractGeopointValue() 보호된 메소드

Extract a Geopoint value
protected extractGeopointValue ( $obj_property ) : Geopoint
$obj_property
리턴 GDS\Property\Geopoint

extractPropertyValue() 보호된 메소드

Defer any varying data type extractions to child classes
protected extractPropertyValue ( $int_type, object $obj_property ) : mixed
$int_type
$obj_property object
리턴 mixed

extractStringListValue() 보호된 메소드

Extract a String List value
protected extractStringListValue ( $obj_property ) : array
$obj_property
리턴 array

mapOneFromResult() 공개 메소드

Map a single result out of the Raw response data array FROM Google TO a GDS Entity
public mapOneFromResult ( object $obj_result ) : Entity
$obj_result object
리턴 GDS\Entity

mapToGoogle() 공개 메소드

https://cloud.google.com/datastore/reference/rest/v1/Entity
public mapToGoogle ( Entity $obj_gds_entity ) : stdClass
$obj_gds_entity GDS\Entity
리턴 stdClass