Update fetch api
parent
280946979f
commit
c5974e6212
|
@ -19,11 +19,13 @@ interface H5PFrameworkInterface {
|
|||
/**
|
||||
* Fetches a file from a remote server using HTTP GET
|
||||
*
|
||||
* @param $url
|
||||
* @param $data
|
||||
* @param $url Where you want to get or send data.
|
||||
* @param $data Data to post to the URL.
|
||||
* @param $blocking Set to 'FALSE' to instantly time out (fire and forget).
|
||||
* @param $stream Where to save the file directly on the filesystem.
|
||||
* @return string The content (response body). NULL if something went wrong
|
||||
*/
|
||||
public function fetchExternalData($url, $data = NULL);
|
||||
public function fetchExternalData($url, $data = NULL, $blocking = TRUE, $stream = NULL);
|
||||
|
||||
/**
|
||||
* Set the tutorial URL for a library. All versions of the library is set
|
||||
|
|
Loading…
Reference in New Issue