PHP 클래스 GDS\Mapper\ProtoBuf

저자: Tom Walder ([email protected])
상속: extends GDS\Mapper
파일 보기 프로젝트 열기: tomwalder/php-gds

공개 메소드들

메소드 설명
configureGoogleKey ( google\appengine\datastore\v4\Key $obj_key, Entity $obj_gds_entity ) : google\appengine\datastore\v4\Key Populate a ProtoBuf Key from a GDS Entity
mapOneFromResult ( google\appengine\datastore\v4\EntityResult $obj_result ) : Entity Map a single result out of the Raw response data into a supplied Entity object
mapToGoogle ( Entity $obj_gds_entity, google\appengine\datastore\v4\Entity $obj_entity ) Map from GDS to Google Protocol Buffer

보호된 메소드들

메소드 설명
extractAutoDetectValue ( google\appengine\datastore\v4\Value $obj_property ) : mixed Auto detect & extract a value
extractDatetimeValue ( object $obj_property ) : mixed Extract a datetime value
extractGeopointValue ( google\appengine\datastore\v4\Value $obj_property ) : Geopoint Extract a Geopoint value (lat/lon pair)
extractPropertyValue ( $int_type, object $obj_property ) : array Extract a single property value from a Property object
extractStringListValue ( object $obj_property ) : mixed Extract a String List value

비공개 메소드들

메소드 설명
configureGoogleKeyPathElement ( google\appengine\datastore\v4\Key\PathElement $obj_path_element, array $arr_kpe ) Configure a Google Key Path Element object
configureGooglePropertyValue ( google\appengine\datastore\v4\Value $obj_val, array $arr_field_def, $mix_value ) Populate a ProtoBuf Property Value from a GDS Entity field definition & value
createEntityWithKey ( google\appengine\datastore\v4\EntityResult $obj_result ) : array Create & populate a GDS\Entity with key data

메소드 상세

configureGoogleKey() 공개 메소드

Populate a ProtoBuf Key from a GDS Entity
public configureGoogleKey ( google\appengine\datastore\v4\Key $obj_key, Entity $obj_gds_entity ) : google\appengine\datastore\v4\Key
$obj_key google\appengine\datastore\v4\Key
$obj_gds_entity GDS\Entity
리턴 google\appengine\datastore\v4\Key

extractAutoDetectValue() 보호된 메소드

Auto detect & extract a value
protected extractAutoDetectValue ( google\appengine\datastore\v4\Value $obj_property ) : mixed
$obj_property google\appengine\datastore\v4\Value
리턴 mixed

extractDatetimeValue() 보호된 메소드

Extract a datetime value
protected extractDatetimeValue ( object $obj_property ) : mixed
$obj_property object
리턴 mixed

extractGeopointValue() 보호된 메소드

Extract a Geopoint value (lat/lon pair)
protected extractGeopointValue ( google\appengine\datastore\v4\Value $obj_property ) : Geopoint
$obj_property google\appengine\datastore\v4\Value
리턴 GDS\Property\Geopoint

extractPropertyValue() 보호된 메소드

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

extractStringListValue() 보호된 메소드

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

mapOneFromResult() 공개 메소드

Map a single result out of the Raw response data into a supplied Entity object
public mapOneFromResult ( google\appengine\datastore\v4\EntityResult $obj_result ) : Entity
$obj_result google\appengine\datastore\v4\EntityResult
리턴 GDS\Entity

mapToGoogle() 공개 메소드

Map from GDS to Google Protocol Buffer
public mapToGoogle ( Entity $obj_gds_entity, google\appengine\datastore\v4\Entity $obj_entity )
$obj_gds_entity GDS\Entity
$obj_entity google\appengine\datastore\v4\Entity