private function setPut()
    {
        if ($this->parameters['header']["Content-Type"] == "application/x-www-form-urlencoded") {
            if (isset($_GET)) {
                foreach ($_GET as $k => $v) {
                    $this->log->debug("[ PUT Params ]" . $k . ": " . $v, []);
                    $this->put->$k = $this->setSecurityLevel($v);
                    $this->parameters["put"][$k] = $this->setSecurityLevel($v);
                }
                unset($_GET);
            }

            $rawData = file_get_contents("php://input");
            parse_str($rawData, $_PUT);
            foreach ($_PUT as $k => $v) {
                $this->log->debug("[ PUT Params ]" . $k . ": " . $v, []);
                $this->put->$k = $this->setSecurityLevel($v);
                $this->parameters["put"][$k] = $this->setSecurityLevel($v);
            }
            if ($rawData) {
                $this->parameters["put"]['raw'] = $rawData;
                $this->log->debug("[ PUT RawData ] raw: " . $rawData, []);
            }
        }
    }
private function setPut()
    {
        if ($this->parameters['header']["Content-Type"] == "application/x-www-form-urlencoded") {
            if (isset($_GET)) {
                foreach ($_GET as $k => $v) {
                    $this->log->debug("[ PUT Params ]" . $k . ": " . $v, []);
                    $this->put->$k = $this->setSecurityLevel($v);
                    $this->parameters["put"][$k] = $this->setSecurityLevel($v);
                }
                unset($_GET);
            }

            $rawData = file_get_contents("php://input");
            parse_str($rawData, $_PUT);
            foreach ($_PUT as $k => $v) {
                $this->log->debug("[ PUT Params ]" . $k . ": " . $v, []);
                $this->put->$k = $this->setSecurityLevel($v);
                $this->parameters["put"][$k] = $this->setSecurityLevel($v);
            }
            if ($rawData) {
                $this->parameters["put"]['raw'] = $rawData;
                $this->log->debug("[ PUT RawData ] raw: " . $rawData, []);
            }
        }
    }
private function setPut ( ) { if ( $ this -> parameters [ 'header' ] [ "Content-Type" ] == "application/x-www-form-urlencoded" ) { if ( isset ( $ _GET ) ) { foreach ( $ _GET as $ k => $ v ) { $ this -> log -> debug ( "[ PUT Params ]" . $ k . ": " . $ v , [ ] ) ; $ this -> put -> $ k = $ this -> setSecurityLevel ( $ v ) ; $ this -> parameters [ "put" ] [ $ k ] = $ this -> setSecurityLevel ( $ v ) ; } unset ( $ _GET ) ; } $ rawData = file_get_contents ( "php://input" ) ; parse_str ( $ rawData , $ _PUT ) ; foreach ( $ _PUT as $ k => $ v ) { $ this -> log -> debug ( "[ PUT Params ]" . $ k . ": " . $ v , [ ] ) ; $ this -> put -> $ k = $ this -> setSecurityLevel ( $ v ) ; $ this -> parameters [ "put" ] [ $ k ] = $ this -> setSecurityLevel ( $ v ) ; } if ( $ rawData ) { $ this -> parameters [ "put" ] [ 'raw' ] = $ rawData ; $ this -> log -> debug ( "[ PUT RawData ] raw: " . $ rawData , [ ] ) ; } } }
PUT Method and Parameter Information and assign via for framework
PUT Method and Parameter Information and assign via for framework