Resource Description for Trigger

Properties for Trigger

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
code string
description string
testForAcademicUnits bool
testForGroups bool
testForSchool bool
testForStudentAcademicUnitEnrolments bool
testForStudents bool
triggerCategory string
triggerClass string
triggerClassArgs string
triggerName string

SDK Example for PHP

<?PHP

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

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

$trigger = Trigger::retrieve(5433);

$code = $trigger->getCode();
$triggerCategory = $trigger->getTriggerCategory();
$triggerName = $trigger->getTriggerName();
$description = $trigger->getDescription();
$triggerClass = $trigger->getTriggerClass();
$triggerClassArgs = $trigger->getTriggerClassArgs();
$testForSchool = $trigger->getTestForSchool();
$testForGroups = $trigger->getTestForGroups();
$testForAcademicUnits = $trigger->getTestForAcademicUnits();
$testForStudents = $trigger->getTestForStudents();
$testForStudentAcademicUnitEnrolments = $trigger->getTestForStudentAcademicUnitEnrolments();