add comments

This commit is contained in:
Marc Michalsky forumZFD 2020-10-15 11:06:35 +02:00
parent 99ff3bc38e
commit 7e386ec7f3
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 54 additions and 4 deletions

View file

@ -361,6 +361,18 @@ class TwingleApiCall {
return $response;
}
/**
* Sends a curl post and gives back the result array.
*
* @param $url
* The url the curl should get sent to
*
* @param $data
* The data that should get posted
*
* @return false|mixed
* Returns the result array of the curl or FALSE, if the curl failed
*/
private function curlPost($url, $data) {
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);