Class PersonChildrenState
The PersonChildrenState exposes management functions for person children.
Class PersonChildrenState
- Gedcomx\Rs\Client\GedcomxApplicationState
- Gedcomx\Rs\Client\PersonsState
- Gedcomx\Rs\Client\PersonChildrenState
Direct known subclasses
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreePersonChildrenState
Package: Gedcomx\Rs\Client
Located at Rs/Client/PersonChildrenState.php
Methods summary
public
|
#
__construct( GuzzleHttp\Client $client, GuzzleHttp\Psr7\Request $request, GuzzleHttp\Psr7\Response $response, string $accessToken,
Constructs a new person children state using the specified client, request, respons, access token, and state factory. |
public
null
|
|
public
|
|
public
|
#
findRelationshipTo(
Finds the relationship to the specified child. This method iterates over the current relationships, and each item is examined to determine if the child ID in the relationship matches the child ID for the specified child. If one is found, that relationship object containing that child ID is returned, and no other relationships are examined further. |
public
|
#
readPerson(
Reads the current person represented by this state instance. |
public
|
#
readChild(
Reads the child from the person specified. |
public
null
|
#
readRelationship(
Reads the specified relationship. |
public
|
#
removeRelationship(
Removes the specified relationship. |
public
mixed
|
#
removeRelationshipTo(
Removes the relationship to the specified child. |
Methods inherited from Gedcomx\Rs\Client\PersonsState
Methods inherited from Gedcomx\Rs\Client\GedcomxApplicationState
authenticateViaOAuth2AuthCode()
,
authenticateViaOAuth2ClientCredentials()
,
authenticateViaOAuth2Password()
,
authenticateViaOAuth2WithoutCredentials()
,
authenticateWithAccessToken()
,
delete()
,
generateClientSecret()
,
get()
,
getAccessToken()
,
getClient()
,
getETag()
,
getEntity()
,
getHeader()
,
getHeaders()
,
getLastEmbeddedRequest()
,
getLastEmbeddedResponse()
,
getLastModified()
,
getLink()
,
getLinks()
,
getRequest()
,
getResourceReference()
,
getResponse()
,
getSelfRel()
,
getSelfUri()
,
getStatus()
,
getUri()
,
hasClientError()
,
hasError()
,
hasServerError()
,
hasStatus()
,
head()
,
ifSuccessful()
,
inject()
,
isAuthenticated()
,
loadAllEmbeddedResources()
,
logout()
,
options()
,
post()
,
put()
,
readAttributableContributor()
,
readContributor()
,
readReferenceContributor()
,
send()