Struct ext_php_rs::php::args::ArgParser [−][src]
pub struct ArgParser<'a, 'b> { /* fields omitted */ }
Expand description
Parses the arguments of a function.
Implementations
Sets the next arguments to be added as not required.
Uses the argument parser to parse the arguments contained in the given
ExecutionData
object. Returns successfully if the arguments were parsed.
This function can only be safely called from within an exported PHP function.
Parameters
execute_data
- The execution data from the function.
Errors
Returns an Error
type if there were too many or too little arguments passed to the
function. The user has already been notified so you should break execution after seeing an
error type.