Resource Description for TrainingEvent

Properties for TrainingEvent

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
endDatetime DateTime
location Room TripLocation
locationText string
startDatetime DateTime
trainingCourse TrainingCourse
trainingEventTitle string

SDK Example for PHP

<?PHP

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

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

$trainingEvent = TrainingEvent::retrieve(5433);

$startDatetime = $trainingEvent->getStartDatetime();
$endDatetime = $trainingEvent->getEndDatetime();
$locationText = $trainingEvent->getLocationText();
$location = $trainingEvent->getLocation();
$scheduledBy = $trainingEvent->getScheduledBy();
$trainingEventTitle = $trainingEvent->getTrainingEventTitle();
$trainingCourse = $trainingEvent->getTrainingCourse();

 

Related Resources