Resource Description for StaffWorkingPeriod

Properties for StaffWorkingPeriod

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
appliesOnFriday bool
appliesOnMonday bool
appliesOnSaturday bool
appliesOnSunday bool
appliesOnThursday bool
appliesOnTuesday bool
appliesOnWednesday bool
effectiveDate DateTime
endDate DateTime
endTime DateTime
staff Staff
startTime DateTime

SDK Example for PHP

<?PHP

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

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

$staffWorkingPeriod = StaffWorkingPeriod::retrieve(5433);

$staff = $staffWorkingPeriod->getStaff();
$effectiveDate = $staffWorkingPeriod->getEffectiveDate();
$endDate = $staffWorkingPeriod->getEndDate();
$dayOfCycle = $staffWorkingPeriod->getDayOfCycle();
$startTime = $staffWorkingPeriod->getStartTime();
$endTime = $staffWorkingPeriod->getEndTime();

 

Related Resources

See also: Staff