libraries:restwebservice:restrequestclass:hasnamedparameters
RestRequest::hasNamedParameters()
Definition
Checks if there exist named parameters in the current request.
Named parameters are URL parameters sent by the client with the pattern <key>=<value>
.
Bool hasNamedParameters ( )
Returns
- Bool
True, if at least one named parameter exists.
Example
$Request = new RestRequest(); // Called endpoint is: [PUT] https://www.domain.com/webservice/accounting/booking?debug=true // Content is: "id:5,account:1234,name:Mr. Smith,amount:592.30" $Application = $Request->getApplication(); // "accounting" $Method = $Request->getMethod(); // "booking" if ( $Request->hasNamedParameters() ) // true { [...] }
libraries/restwebservice/restrequestclass/hasnamedparameters.txt · Last modified: 2022/12/21 20:05 by michael.pohl