Resource Description for SchoolEvent

Properties for SchoolEvent

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
endDatetime DateTime
location Room TripLocation
locationText string
narrative string
repeatingSchoolEvent RepeatingSchoolEvent
schoolEventName string
schoolEventType SchoolEventType
startDatetime DateTime
timetableSlot TimetableSlot

SDK Example for PHP

<?PHP

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

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

$schoolEvent = SchoolEvent::retrieve(5433);

$startDatetime = $schoolEvent->getStartDatetime();
$endDatetime = $schoolEvent->getEndDatetime();
$locationText = $schoolEvent->getLocationText();
$location = $schoolEvent->getLocation();
$scheduledBy = $schoolEvent->getScheduledBy();
$schoolEventType = $schoolEvent->getSchoolEventType();
$schoolEventName = $schoolEvent->getSchoolEventName();
$narrative = $schoolEvent->getNarrative();

 

Related Resources