Resource Description for Guardian

Properties for Guardian

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
bloodGroup string
employer string
ethnicity Ethnicity
jobPosition string
legacySystemId string
person Person
preferredContactMethod string
religion Religion
shareContactDetails bool

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\Guardian;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$guardian = Guardian::retrieve(5433);

$person = $guardian->getPerson();
$employer = $guardian->getEmployer();
$religion = $guardian->getReligion();
$ethnicity = $guardian->getEthnicity();
$jobPosition = $guardian->getJobPosition();
$bloodGroup = $guardian->getBloodGroup();
$shareContactDetails = $guardian->getShareContactDetails();

 

Related Resources

See also: Person, Religion, Ethnicity