Exemple #1
0
 public function getUserTypes()
 {
     $saved_db = DbUtil::switchToGlobal();
     $lab_config_id = $this->id;
     $retval = array();
     $query_string = "SELECT * FROM user_type";
     $resultset = query_associative_all($query_string, $row_count);
     if ($resultset != null) {
         foreach ($resultset as $record) {
             $retval[] = UserType::getObject($record);
         }
     }
     DbUtil::switchRestore($saved_db);
     return $retval;
 }