src/wcmf/application/controller/RESTController.php
protected function getFirstRequestOid() {
    $request = $this->getRequest();
    foreach ($request->getValues() as $key => $value) {
      if (ObjectId::isValid($key)) {
        return $key;
      }
    }
    return '';
  }
protected function getFirstRequestOid() {
    $request = $this->getRequest();
    foreach ($request->getValues() as $key => $value) {
      if (ObjectId::isValid($key)) {
        return $key;
      }
    }
    return '';
  }
protected function getFirstRequestOid ( ) { $ request = $ this -> getRequest ( ) ; foreach ( $ request -> getValues ( ) as $ key => $ value ) { if ( ObjectId :: isValid ( $ key ) ) { return $ key ; } } return '' ; }
Get the first oid from the request
@return String
Get the first oid from the request