Resource Description for MealSitting

Properties for MealSitting

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
effectiveDate DateTime
endDate DateTime
meal Meal
mealSittingName string
room Room

SDK Example for PHP

<?PHP

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

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

$mealSitting = MealSitting::retrieve(5433);

$meal = $mealSitting->getMeal();
$mealSittingName = $mealSitting->getMealSittingName();
$startTime = $mealSitting->getStartTime();
$endTime = $mealSitting->getEndTime();
$room = $mealSitting->getRoom();
$academicYear = $mealSitting->getAcademicYear();
$effectiveDate = $mealSitting->getEffectiveDate();
$endDate = $mealSitting->getEndDate();

 

Related Resources

See also: Meal, Room