Resource Description for AttendancePattern

Properties for AttendancePattern

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
active bool
attendancePatternName string
code string
dataOrder int
isAfternoonOnly bool
isMorningOnly bool
isPartTime bool

SDK Example for PHP

<?PHP

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

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

$attendancePattern = AttendancePattern::retrieve(5433);

$code = $attendancePattern->getCode();
$active = $attendancePattern->getActive();
$dataOrder = $attendancePattern->getDataOrder();
$attendancePatternName = $attendancePattern->getAttendancePatternName();
$isPartTime = $attendancePattern->getIsPartTime();
$isMorningOnly = $attendancePattern->getIsMorningOnly();
$isAfternoonOnly = $attendancePattern->getIsAfternoonOnly();