Exemple #1
0
function JB_load_profile_values($profile_id)
{
    // alias for JB_load_profile_data()s
    return JB_load_profile_data($profile_id);
}
 function &load($record_id, $user_id = '')
 {
     switch ($this->form_id) {
         case 1:
             // include/posts.inc.php
             $this->set_values(JB_load_post_data($record_id));
             break;
         case 2:
             // include/resumes.inc.php
             $this->set_values(JB_load_resume_data($record_id));
             break;
         case 3:
             // include/profiles.inc.php
             $this->set_values(JB_load_profile_data($record_id, $user_id));
             break;
         case 4:
             // include/employers.inc.php
             $this->set_values(JB_load_employer_data($record_id));
             break;
         case 5:
             // include/candidates.inc.php
             $this->set_values(JB_load_candidate_data($record_id));
             break;
         default:
             $values = null;
             JBPLUG_do_callback('load_values', $values, $this->form_id, $record_id);
             if (is_array($values)) {
                 $this->set_values($values);
             }
             break;
     }
     // now that the fields are initialized and loaded, we can append
     // extra tags to the <head> and <body> sections as needed
     // Tgas will be appended only if JBMarkup is not null
     $this->append_extra_markup();
     return $this->get_values();
 }