Exemple #1
0
 public function getArtifacts($proxy_id = NULL)
 {
     $artifacts = Models_Eportfolio_Folder_Artifact::fetchAll($this->pfolder_id, $proxy_id);
     return $artifacts;
 }
 public function getArtifact()
 {
     $artifact = Models_Eportfolio_Folder_Artifact::fetchRow($this->pfartifact_id);
     return $artifact;
 }
                 $fa_data[] = $folder_artifact->toArray();
             }
             echo json_encode(array("status" => "success", "data" => $fa_data));
         } else {
             echo json_encode(array("status" => "error", "data" => "No artifacts attached to this portfolio folder ID. "));
         }
     } else {
         echo json_encode(array("status" => "error", "data" => "No portfolio folder ID or invalid portfolio folder ID."));
     }
     break;
 case "get-folder-artifact":
     if (${$request_var}["pfartifact_id"] && ($tmp_input = clean_input(${$request_var}["pfartifact_id"], "int"))) {
         $PROCESSED["pfartifact_id"] = $tmp_input;
     }
     if ($PROCESSED["pfartifact_id"]) {
         $folder_artifact = Models_Eportfolio_Folder_Artifact::fetchRow($PROCESSED["pfartifact_id"]);
         if ($folder_artifact) {
             $fa_data = $folder_artifact->toArray();
             echo json_encode(array("status" => "success", "data" => $fa_data));
         } else {
             echo json_encode(array("status" => "error", "data" => "No artifacts attached to this portfolio folder ID."));
         }
     } else {
         echo json_encode(array("status" => "error", "data" => "No portfolio folder artifact ID or invalid portfolio folder artifact ID."));
     }
     break;
 case "get-artifact-entries":
     if (isset(${$request_var}["pfartifact_id"]) && ($tmp_input = clean_input(${$request_var}["pfartifact_id"], "int"))) {
         $PROCESSED["pfartifact_id"] = $tmp_input;
     }
     if ($PROCESSED["pfartifact_id"]) {