Resource Description for StaffAbsenceCategory

Properties for StaffAbsenceCategory

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
active bool
categoryName string
code string
dataOrder int
isAuthorizedAbsence bool
isPaidHoliday bool
isPaidMaternity bool
isPaidPaternity bool
isPaidSickLeave bool
isUnpaidHoliday bool
isUnpaidMaternity bool
isUnpaidPaternity bool
isUnpaidSickLeave bool

SDK Example for PHP

<?PHP

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

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

$staffAbsenceCategory = StaffAbsenceCategory::retrieve(5433);

$code = $staffAbsenceCategory->getCode();
$active = $staffAbsenceCategory->getActive();
$dataOrder = $staffAbsenceCategory->getDataOrder();
$categoryName = $staffAbsenceCategory->getCategoryName();
$isPaidSickLeave = $staffAbsenceCategory->getIsPaidSickLeave();
$isUnpaidSickLeave = $staffAbsenceCategory->getIsUnpaidSickLeave();
$isPaidHoliday = $staffAbsenceCategory->getIsPaidHoliday();
$isUnpaidHoliday = $staffAbsenceCategory->getIsUnpaidHoliday();
$isPaidMaternity = $staffAbsenceCategory->getIsPaidMaternity();
$isUnpaidMaternity = $staffAbsenceCategory->getIsUnpaidMaternity();
$isPaidPaternity = $staffAbsenceCategory->getIsPaidPaternity();
$isUnpaidPaternity = $staffAbsenceCategory->getIsUnpaidPaternity();
$isAuthorizedAbsence = $staffAbsenceCategory->getIsAuthorizedAbsence();