classes/phing/tasks/ext/WikiPublishTask.php
private function setPostData($data = null)
    {
        if (null === $data) {
            curl_setopt($this->curl, CURLOPT_POST, false);

            return;
        }
        $postData = '';
        foreach ($data as $key => $value) {
            $postData .= urlencode($key) . '=' . urlencode($value) . '&';
        }
        if ($postData != '') {
            curl_setopt($this->curl, CURLOPT_POST, true);
            curl_setopt($this->curl, CURLOPT_POSTFIELDS, substr($postData, 0, -1));
        }
    }
private function setPostData($data = null)
    {
        if (null === $data) {
            curl_setopt($this->curl, CURLOPT_POST, false);

            return;
        }
        $postData = '';
        foreach ($data as $key => $value) {
            $postData .= urlencode($key) . '=' . urlencode($value) . '&';
        }
        if ($postData != '') {
            curl_setopt($this->curl, CURLOPT_POST, true);
            curl_setopt($this->curl, CURLOPT_POSTFIELDS, substr($postData, 0, -1));
        }
    }
private function setPostData ( $ data = null ) { if ( null === $ data ) { curl_setopt ( $ this -> curl , CURLOPT_POST , false ) ; return ; } $ postData = '' ; foreach ( $ data as $ key => $ value ) { $ postData .= urlencode ( $ key ) . '=' . urlencode ( $ value ) . '&' ; } if ( $ postData != '' ) { curl_setopt ( $ this -> curl , CURLOPT_POST , true ) ; curl_setopt ( $ this -> curl , CURLOPT_POSTFIELDS , substr ( $ postData , 0 , - 1 ) ) ; } }
Set POST data for curl call

@param array|null $data
Set POST data for curl call