Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createEducation( $start_year, $end_year, $college, $degree, $field_of_study = null, $profile = null )
- {
- $education = R::dispense( 'education' );
- addDropDownCustom( $education, 'degree', $degree );
- addDropDownCustom( $education, 'college', $college );
- addString( $start_year, $education, 'start_year' );
- addString( $end_year, $education, 'end_year' );
- addString( $field_of_study, $education, 'field_of_study' );
- if( $profile != null )
- {
- $education->profile = $profile;
- }
- R::store( $education );
- return $education;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement