Resource Description for StaffAbsence

Properties for StaffAbsence

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
actualWorkingDays float
actualWorkingHours float
approvedByStaff Staff
approvedDatetime DateTime
calculatedWorkingDays float
calculatedWorkingHours float
endDatetime DateTime
narrative string
sicknessCategory StaffAbsenceSicknessCategory
sicknessSubcategory StaffAbsenceSicknessSubcategory
staff Staff
staffAbsenceCategory StaffAbsenceCategory
startDatetime DateTime
workingDays float
workingHours float

SDK Example for PHP

<?PHP

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

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

$staffAbsence = StaffAbsence::retrieve(5433);

$staff = $staffAbsence->getStaff();
$startDatetime = $staffAbsence->getStartDatetime();
$endDatetime = $staffAbsence->getEndDatetime();
$staffAbsenceCategory = $staffAbsence->getStaffAbsenceCategory();
$approvedDatetime = $staffAbsence->getApprovedDatetime();
$approvedByStaff = $staffAbsence->getApprovedByStaff();
$paidSickLeaveUsed = $staffAbsence->getPaidSickLeaveUsed();
$unPaidSickLeaveUsed = $staffAbsence->getUnPaidSickLeaveUsed();
$paidHolidayUsed = $staffAbsence->getPaidHolidayUsed();
$unPaidHolidayUsed = $staffAbsence->getUnPaidHolidayUsed();
$narrative = $staffAbsence->getNarrative();

 

Related Resources