Resource Description for Schoolwork

Properties for Schoolwork

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
academicUnit AcademicUnit
dueDatetime DateTime
dueEvent mixed
markingCompletedDatetime DateTime
markingStartedDatetime DateTime
session Session
setDatetime DateTime
studentInstructions string
teacherNotes string
title string

SDK Example for PHP

<?PHP

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

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

$schoolwork = Schoolwork::retrieve(5433);

$title = $schoolwork->getTitle();
$description = $schoolwork->getDescription();
$setDatetime = $schoolwork->getSetDatetime();
$dueDatetime = $schoolwork->getDueDatetime();
$markingStartedDatetime = $schoolwork->getMarkingStartedDatetime();
$markingFinishedDatetime = $schoolwork->getMarkingFinishedDatetime();
$schoolworkType = $schoolwork->getSchoolworkType();
$session = $schoolwork->getSession();
$sessionStream = $schoolwork->getSessionStream();
$aspectSet = $schoolwork->getAspectSet();
$academicUnit = $schoolwork->getAcademicUnit();

 

Related Resources

See also: Session, AcademicUnit