Resource Description for MealPattern

Properties for MealPattern

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
appliesFriday bool
appliesMonday bool
appliesSaturday bool
appliesSunday bool
appliesThursday bool
appliesTuesday bool
appliesWednesday bool
attendee mixed
dayOfCycle int
effectiveDate DateTime
endDate DateTime
groupMembership mixed
meal Meal
mealSitting MealSitting
mealSittingAutomaticAttendeeTarget MealSittingAutomaticAttendeeTarget

SDK Example for PHP

<?PHP

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

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

$mealPattern = MealPattern::retrieve(5433);

$attendee = $mealPattern->getAttendee();
$meal = $mealPattern->getMeal();
$mealSitting = $mealPattern->getMealSitting();
$regularMealProvision = $mealPattern->getRegularMealProvision();
$dayOfCycle = $mealPattern->getDayOfCycle();
$effectiveDate = $mealPattern->getEffectiveDate();
$endDate = $mealPattern->getEndDate();
$mealSittingAutomaticAttendeeTarget = $mealPattern->getMealSittingAutomaticAttendeeTarget();
$groupMembership = $mealPattern->getGroupMembership();

 

Related Resources