Resource Description for CoverRequirement

Properties for CoverRequirement

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
absenceEvent mixed
absentStaff Staff
coverArrangedDatetime DateTime
coverEvent mixed
coverNotRequiredDatetime DateTime
coverProposedDatetime DateTime

SDK Example for PHP

<?PHP

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

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

$coverRequirement = CoverRequirement::retrieve(5433);

$coverEvent = $coverRequirement->getCoverEvent();
$absentStaff = $coverRequirement->getAbsentStaff();
$absenceEvent = $coverRequirement->getAbsenceEvent();
$coverProposedDatetime = $coverRequirement->getCoverProposedDatetime();
$coverArrangedDatetime = $coverRequirement->getCoverArrangedDatetime();

 

Related Resources

See also: Staff