Resource Description for Ethnicity

Properties for Ethnicity

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
active bool
appliesToStaff bool
appliesToStudents bool
code string
dataOrder int
ethnicityCategory EthnicityCategory
ethnicityName string
notes string

SDK Example for PHP

<?PHP

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

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

$ethnicity = Ethnicity::retrieve(5433);

$code = $ethnicity->getCode();
$active = $ethnicity->getActive();
$dataOrder = $ethnicity->getDataOrder();
$ethnicityName = $ethnicity->getEthnicityName();
$mainCategory = $ethnicity->getMainCategory();
$parentCode = $ethnicity->getParentCode();
$appliesToStudents = $ethnicity->getAppliesToStudents();
$appliesToStaff = $ethnicity->getAppliesToStaff();
$notes = $ethnicity->getNotes();

 

Related Resources

See also: EthnicityCategory