src/wcmf/application/controller/RESTController.php
protected function setLocationHeaderFromOid($oidStr) {
    $oid = ObjectId::parse($oidStr);
    if ($oid) {
      $response = $this->getResponse();
      $response->setHeader('Location', $oidStr);
    }
  }
protected function setLocationHeaderFromOid($oidStr) {
    $oid = ObjectId::parse($oidStr);
    if ($oid) {
      $response = $this->getResponse();
      $response->setHeader('Location', $oidStr);
    }
  }
protected function setLocationHeaderFromOid ( $ oidStr ) { $ oid = ObjectId :: parse ( $ oidStr ) ; if ( $ oid ) { $ response = $ this -> getResponse ( ) ; $ response -> setHeader ( 'Location' , $ oidStr ) ; } }
Set the location response header according to the given object id
@param $oidStr The serialized object id
Set the location response header according to the given object id