Class PersonParentsState
The PersonParentsState exposes management functions for person parents.
Class PersonParentsState
- Gedcomx\Rs\Client\GedcomxApplicationState
- Gedcomx\Rs\Client\PersonsState
- Gedcomx\Rs\Client\PersonParentsState
Direct known subclasses
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreePersonParentsState
Methods summary
public
|
#
__construct( GuzzleHttp\Client $client, GuzzleHttp\Psr7\Request $request, GuzzleHttp\Psr7\Response $response, string $accessToken,
Constructs a new person parents state using the specified client, request, response, access token, and state factory. |
public
|
|
public
|
|
public
|
#
findRelationshipTo(
Finds the relationship to the specified parent. This method iterates over the current person's relationships, and each item is examined to determine if the parent ID in the relationship matches the parent ID for the specified parent. If one is found, that relationship object containing that parent ID is returned, and no other relationships are examined further. |
public
|
#
readPerson(
Reads the current person represented by this state instance. |
public
|
#
readParent(
Reads the specified person, which is a parent to the current person. This person could come the array of persons for the current person. |
public
|
#
readRelationship(
Reads the specified relationship, which is a relationship between the current person and a parent. This relationship could come from the array of relationships for the current person. |
public
|
#
removeRelationship(
Removes the specified relationship, which is a relationship between the current person and a parent. |
public
|
#
removeRelationshipTo(
Removes the relationship from the current person to the specified person. |
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()