Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AbstractSpreadsheetConnector
- {
- // column maps
- public static $studentColumns = [
- 'Key' => 'ForeignKey',
- 'School ID Number' => 'StudentNumber',
- 'Student ID' => 'StudentNumber',
- 'Username' => 'Username',
- 'Password' => 'Password',
- 'Email' => 'Email',
- 'First Name' => 'FirstName',
- 'First' => 'FirstName',
- 'Last Name' => 'LastName',
- 'Last' => 'LastName',
- 'Middle Name' => 'MiddleName',
- 'Middle' => 'MiddleName',
- 'Gender' => 'Gender',
- 'Sex' => 'Gender',
- 'Birth Date' => 'BirthDate',
- 'Birthday' => 'BirthDate',
- 'Graduation Year' => 'GraduationYear',
- 'Graduation' => 'GraduationYear',
- 'Grade' => 'Grade',
- 'School' => 'School',
- 'Cohort' => 'Group', 'Group' => 'Group',
- 'Advisor' => 'AdvisorUsername',
- # 'Assigned Password',
- # 'Email',
- # 'Phone',
- # 'Postal Address'
- ];
- public static $alumniColumns = [
- 'Username' => 'Username',
- 'Password' => 'Password',
- 'Email' => 'Email',
- 'First Name' => 'FirstName',
- 'First' => 'FirstName',
- 'Last Name' => 'LastName',
- 'Last' => 'LastName',
- 'Middle Name' => 'MiddleName',
- 'Middle' => 'MiddleName',
- 'Gender' => 'Gender',
- 'Sex' => 'Gender',
- 'Birth Date' => 'BirthDate',
- 'Birthday' => 'BirthDate',
- 'Graduation Year' => 'GraduationYear',
- 'Graduation' => 'GraduationYear'
- ];
- public static $staffColumns = [
- 'First Name' => 'FirstName',
- 'First' => 'FirstName',
- 'Last Name' => 'LastName',
- 'Last' => 'LastName',
- 'Middle Name' => 'MiddleName',
- 'Middle' => 'MiddleName',
- 'Gender' => 'Gender',
- 'Sex' => 'Gender',
- 'Birth Date' => 'BirthDate',
- 'Birthday' => 'BirthDate',
- # 'StaffID',
- 'Username' => 'Username',
- 'Password' => 'Password',
- 'Account Level' => 'AccountLevel',
- 'Account Type' => 'AccountLevel',
- 'Role / Job Title' => 'About',
- 'Email' => 'Email',
- 'School' => 'School',
- # 'Phone',
- # 'Postal Address'
- ];
- public static $sectionColumns = [
- 'Section ID' => 'SectionExternal',
- 'Section Code' => 'SectionCode',
- 'Section code' => 'SectionCode',
- 'Title' => 'Title',
- 'Course Code' => 'CourseCode',
- 'Course code' => 'CourseCode',
- 'Teacher' => 'TeacherUsername',
- 'Term' => 'Term',
- 'Terms' => 'Term',
- 'Schedule' => 'Schedule',
- 'Location' => 'Location',
- 'Room' => 'Location',
- 'Students Capacity' => 'StudentsCapacity',
- '# of Students' => 'StudentsCapacity',
- 'Seats' => 'StudentsCapacity',
- 'Notes' => 'Notes'
- ];
- public static $enrollmentColumns = [
- 'School ID Number' => 'StudentNumber',
- 'School ID' => 'StudentNumber',
- 'Student Number' => 'StudentNumber',
- 'Username' => 'Username'
- ];
- // minimum required columns
- public static $studentRequiredColumns = [
- 'StudentNumber',
- 'FirstName',
- 'LastName'
- ];
- public static $alumniRequiredColumns = [
- 'FirstName',
- 'LastName'
- ];
- public static $staffRequiredColumns = [
- 'FirstName',
- 'LastName'
- ];
- public static $sectionRequiredColumns = [
- 'CourseCode'
- ];
- public static $enrollmentRequiredColumns = [];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement