Resource Description for DetentionSession

Properties for DetentionSession

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
detentionType DetentionType
endDatetime DateTime
location Room TripLocation
locationText string
startDatetime DateTime
timetableSlot TimetableSlot

SDK Example for PHP

<?PHP

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

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

$detentionSession = DetentionSession::retrieve(5433);

$startDatetime = $detentionSession->getStartDatetime();
$endDatetime = $detentionSession->getEndDatetime();
$locationText = $detentionSession->getLocationText();
$location = $detentionSession->getLocation();
$scheduledBy = $detentionSession->getScheduledBy();
$detentionSessionName = $detentionSession->getDetentionSessionName();

 

Related Resources