* * @return none, but populates $this->JSON */ public function handleGET() { $TE = $this->getHeader('acquisition:echo_time'); $TR = $this->getHeader('acquisition:repetition_time'); $TI = $this->getHeader('acquisition:inversion_time'); $ST = $this->getHeader('acquisition:slice_thickness'); $SeriesName = $this->getHeader("acquisition:protocol"); $SeriesDescription = $this->getHeader("acquisition:series_description"); $XSpace = ["Length" => $this->getHeader("xspace:length"), "StepSize" => $this->getHeader("xspace:step")]; $YSpace = ["Length" => $this->getHeader("yspace:length"), "StepSize" => $this->getHeader("yspace:step")]; $ZSpace = ["Length" => $this->getHeader("zspace:length"), "StepSize" => $this->getHeader("zspace:step")]; $TimeD = ["Length" => $this->getHeader("time:length"), "StepSize" => $this->getHeader("time:step")]; $this->JSON = ['Meta' => ['CandID' => $this->CandID, 'Visit' => $this->VisitLabel, 'Filename' => $this->Filename], 'Physical' => ["TE" => $TE, "TR" => $TR, "TI" => $TI, "SliceThickness" => $ST], 'Description' => ["SeriesName" => $SeriesName, "SeriesDescription" => $SeriesDescription], 'Dimensions' => ["XSpace" => $XSpace, "YSpace" => $YSpace, "ZSpace" => $ZSpace, "TimeDimension" => $TimeD]]; } /** * Calculate the entity tag for this URL * * @return string */ public function calculateETag() { return null; } } if (isset($_REQUEST['PrintHeadersSummary'])) { $obj = new Headers($_SERVER['REQUEST_METHOD'], $_REQUEST['CandID'], $_REQUEST['VisitLabel'], $_REQUEST['Filename']); print $obj->toJSONString(); }