Ejemplo n.º 1
0
                             $PROCESSED["evaluation_evaluators"][] = array("evaluator_type" => "proxy_id", "evaluator_value" => $result["proxy_id"]);
                         }
                     }
                 }
             } else {
                 add_error("You must select at least one individual to act as an evaluator.");
             }
             break;
     }
     if (empty($PROCESSED["evaluation_evaluators"])) {
         add_error("Please select an appropriate type of evaluator (i.e. entire class, percentage, etc).");
     }
 } elseif ($evaluation_target_type != "peer") {
     add_error("Please select an appropriate type of evaluator (i.e. entire class, percentage, etc).");
 }
 $PROCESSED = Models_Evaluation::processTargets($_POST, $PROCESSED);
 /**
  * Non-required field "associated_reviewer" / Associated Reviewers (array of proxy ids).
  * This is actually accomplished after the event is inserted below.
  */
 if (isset($_POST["associated_reviewer"])) {
     $associated_reviewers = explode(",", $_POST["associated_reviewer"]);
     foreach ($associated_reviewers as $contact_order => $proxy_id) {
         if ($proxy_id = clean_input($proxy_id, array("trim", "int"))) {
             $PROCESSED["associated_reviewers"][(int) $contact_order] = $proxy_id;
         }
     }
 }
 /**
  * Processing for evaluation_evaluators table.
  */