Resource Description for Consent

Properties for Consent

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
consentType ConsentType
consentedDatetime DateTime
rejectedDatetime DateTime
related mixed
requestedDatetime DateTime
requestor mixed
respondee mixed
student Student

SDK Example for PHP

<?PHP

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

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

$consent = Consent::retrieve(5433);

$student = $consent->getStudent();
$consentType = $consent->getConsentType();
$related = $consent->getRelated();
$requestor = $consent->getRequestor();
$requestedDatetime = $consent->getRequestedDatetime();
$rejectedDatetime = $consent->getRejectedDatetime();
$consentedDatetime = $consent->getConsentedDatetime();
$respondee = $consent->getRespondee();

 

Related Resources

See also: Student, ConsentType