Resource Description for MealSession

Properties for MealSession

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
endDatetime DateTime
invoicedDatetime DateTime
location Room TripLocation
locationText string
mealSitting MealSitting
registerClosedDatetime DateTime
registerOpenedDatetime DateTime
startDatetime DateTime
timetableSlot TimetableSlot

SDK Example for PHP

<?PHP

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

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

$mealSession = MealSession::retrieve(5433);

$startDatetime = $mealSession->getStartDatetime();
$endDatetime = $mealSession->getEndDatetime();
$locationText = $mealSession->getLocationText();
$location = $mealSession->getLocation();
$scheduledBy = $mealSession->getScheduledBy();
$mealSessionName = $mealSession->getMealSessionName();
$mealSitting = $mealSession->getMealSitting();
$registerOpenedDatetime = $mealSession->getRegisterOpenedDatetime();
$registerClosedDatetime = $mealSession->getRegisterClosedDatetime();
$invoicedDatetime = $mealSession->getInvoicedDatetime();

 

Related Resources