Updated Staff API 6.3.0

eduTrac SIS 6.3.0 will include an update to the staff api which will follow the same concept as get_person(), get_course_sec(), etc.

Examples

$staff = get_staff(2); echo "My name is: " . get_name($staff->staffID);

var_dump of $staff = get_staff(2); as an object

stdClass::__set_state(array(
'hireDate' => '2013-11-04',
'metaStartDate' => '2013-11-18',
'metaEndDate' => '0000-00-00',
'sMetaID' => '2',
'jobStatusCode' => 'FT',
'jobID' => '6',
'supervisorID' => '1',
'staffType' => 'FAC',
'approvedBy' => '1',
'LastLogin' => '2016-01-13 13:27:46',
'LastUpdate' => '2013-09-21 19:58:59',
'photo' => NULL,
'naeStatus' => 'A',
'approvedDate' => '2013-07-23 00:00:00',
'gender' => 'F',
'emergency_contact' => '',
'emergency_contact_phone' => '',
'ssn' => '205932934',
'dob' => '1981-07-05',
'veteran' => '1',
'ethnicity' => '',
'lname' => 'miller',
'mname' => '',
'email' => 'millerk@gmail.com',
'personType' => 'FAC',
'altID' => NULL,
'uname' => 'millerk',
'prefix' => 'Ms',
'fname' => 'Romaria',
'ID' => '1',
'staffID' => '2',
'staffStatus' => 'A',
'staffAddDate' => '2013-08-13',
'addressID' => '3',
'personID' => '2',
'address1' => '',
'address2' => '',
'city' => 'Elloree',
'state' => 'SC',
'zip' => '',
'country' => 'US',
'addressType' => 'P',
'startDate' => '2013-08-01',
'endDate' => '0000-00-00',
'addressStatus' => 'C',
'phone1' => '',
'phone2' => '',
'ext1' => '',
'ext2' => '',
'phoneType1' => '',
'phoneType2' => '',
'email1' => 'millerk@gmail.com',
'email2' => '',
'addDate' => '2013-08-03',
'addedBy' => '1',
'metaAddDate' => '2014-02-11',
))

var_dump of $staff = get_staff(2, false); as an array

array (
'hireDate' => '2013-11-04',
'metaStartDate' => '2013-11-18',
'metaEndDate' => '0000-00-00',
'sMetaID' => '2',
'jobStatusCode' => 'FT',
'jobID' => '6',
'supervisorID' => '1',
'staffType' => 'FAC',
'approvedBy' => '1',
'LastLogin' => '2016-01-13 13:27:46',
'LastUpdate' => '2013-09-21 19:58:59',
'photo' => NULL,
'naeStatus' => 'A',
'approvedDate' => '2013-07-23 00:00:00',
'gender' => 'F',
'emergency_contact' => '',
'emergency_contact_phone' => '',
'ssn' => '205932934',
'dob' => '1981-07-05',
'veteran' => '1',
'ethnicity' => '',
'lname' => 'Miller',
'mname' => '',
'email' => 'millerk@gmail.com',
'personType' => 'FAC',
'altID' => NULL,
'uname' => 'millerk',
'prefix' => 'Ms',
'fname' => 'Romaria',
'ID' => '1',
'staffID' => '2',
'staffStatus' => 'A',
'staffAddDate' => '2013-08-13',
'addressID' => '3',
'personID' => '2',
'address1' => '',
'address2' => '',
'city' => 'Elloree',
'state' => 'SC',
'zip' => '',
'country' => 'US',
'addressType' => 'P',
'startDate' => '2013-08-01',
'endDate' => '0000-00-00',
'addressStatus' => 'C',
'phone1' => '',
'phone2' => '',
'ext1' => '',
'ext2' => '',
'phoneType1' => '',
'phoneType2' => '',
'email1' => 'millerk@gmail.com',
'email2' => '',
'addDate' => '2013-08-03',
'addedBy' => '1',
'metaAddDate' => '2014-02-11',
)