public function addPostField($field, $value) {
        if (is_null($this->postData)) {
            $this->postData = array();
        }

        if (is_array($this->postData)) {
            $this->postData[$field] = (string) $value;
            return $this;
        } else {
            throw new LogicException('cannot set field for non array');
        }
    }
public function addPostField($field, $value) {
        if (is_null($this->postData)) {
            $this->postData = array();
        }

        if (is_array($this->postData)) {
            $this->postData[$field] = (string) $value;
            return $this;
        } else {
            throw new LogicException('cannot set field for non array');
        }
    }
public function addPostField ( $ field , $ value ) { if ( is_null ( $ this -> postData ) ) { $ this -> postData = array ( ) ; } if ( is_array ( $ this -> postData ) ) { $ this -> postData [ $ field ] = ( string ) $ value ; return $ this ; } else { throw new LogicException ( 'cannot set field for non array' ) ; } }
Add POST parameter
@param string $field parameter name
@param string $value parameter value
@throw LogicException if post data is not array
@return Request self
Add POST parameter