Resource Description for AcademicYear

Properties for AcademicYear

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
academicYearName string
code string
endDate DateTime
startDate DateTime
timetableCycleLength int

SDK Example for PHP

<?PHP

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

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

$academicYear = AcademicYear::retrieve(5433);

$academicYearName = $academicYear->getAcademicYearName();
$code = $academicYear->getCode();
$startDate = $academicYear->getStartDate();
$endDate = $academicYear->getEndDate();
$timetableCycleLength = $academicYear->getTimetableCycleLength();
$timetableCycleResetsEachTerm = $academicYear->getTimetableCycleResetsEachTerm();