Resource Description for MealProvision

Properties for MealProvision

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
copiedToMealProvision MealProvision
effectiveDate DateTime
endDate DateTime
isAbsent bool
isSchoolHotMeal bool
isSchoolLightMeal bool
isSchoolPackedMeal bool
isStudentPackedMeal bool
meal Meal
mealProvisionName string
requiresMeal bool

SDK Example for PHP

<?PHP

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

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

$mealProvision = MealProvision::retrieve(5433);

$meal = $mealProvision->getMeal();
$mealProvisionName = $mealProvision->getMealProvisionName();
$isAbsent = $mealProvision->getIsAbsent();
$isSchoolHotMeal = $mealProvision->getIsSchoolHotMeal();
$isSchoolPackedMeal = $mealProvision->getIsSchoolPackedMeal();
$isStudentHotMeal = $mealProvision->getIsStudentHotMeal();
$requiresMeal = $mealProvision->getRequiresMeal();

 

Related Resources

See also: Meal, MealProvision