Resource Description for SchoolTrip

Properties for SchoolTrip

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
description string
endDatetime DateTime
location Room TripLocation
locationText string
startDatetime DateTime
tripName string

SDK Example for PHP

<?PHP

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

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

$schoolTrip = SchoolTrip::retrieve(5433);

$startDatetime = $schoolTrip->getStartDatetime();
$endDatetime = $schoolTrip->getEndDatetime();
$locationText = $schoolTrip->getLocationText();
$location = $schoolTrip->getLocation();
$scheduledBy = $schoolTrip->getScheduledBy();
$tripName = $schoolTrip->getTripName();
$description = $schoolTrip->getDescription();

 

Related Resources

See also: Room, TripLocation