Abstract class, implementing access check in the before_filter(). All webservices classes should be derived from this.
◆ before_filter()
before_filter |
( |
& |
$name, |
|
|
& |
$args |
|
) |
| |
This method is called before every other service method and tries to authenticate an incoming request using the first argument as an so called "api key". If the "api key", the functions name and the remote IP pass the access rules, the request will be authorized, otherwise a fault is sent back to the caller.
- Parameters
-
string | the function's name. |
array | an array of arguments that will be delivered to the function. |
- Returns
- mixed if this method returns a Studip_Ws_Fault, further processing will be aborted
The documentation for this class was generated from the following file: