Resource Description for Detention

Properties for Detention

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
absenteesDetentionAction mixed
attendanceMark string
decisionDatetime DateTime
detentionDuration DateTime
detentionSession DetentionSession
detentionType DetentionType
issuedByStaff Staff
notes string
notifiedGuardiansDatetime DateTime
notifiedStudentDatetime DateTime
notifiedTutorsDatetime DateTime
reasonForDetention Behaviour
student Student

SDK Example for PHP

<?PHP

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

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

$detention = Detention::retrieve(5433);

$student = $detention->getStudent();
$detentionSession = $detention->getDetentionSession();
$decisionDatetime = $detention->getDecisionDatetime();
$notifiedStudentDatetime = $detention->getNotifiedStudentDatetime();
$notifiedGuardiansDatetime = $detention->getNotifiedGuardiansDatetime();
$detentionDuration = $detention->getDetentionDuration();
$notes = $detention->getNotes();

 

Related Resources