public function setFormat($format)
    {
        $this->_format = $format;
        // Use formatter content type if exists
        if (isset($this->contentTypes[$this->_format])) {
            $this->ci->output
                ->set_content_type($this->contentTypes[$this->_format]);
        }

        return $this;
    }
public function setFormat($format)
    {
        $this->_format = $format;
        // Use formatter content type if exists
        if (isset($this->contentTypes[$this->_format])) {
            $this->ci->output
                ->set_content_type($this->contentTypes[$this->_format]);
        }

        return $this;
    }
public function setFormat ( $ format ) { $ this -> _format = $ format ; // Use formatter content type if exists if ( isset ( $ this -> contentTypes [ $ this -> _format ] ) ) { $ this -> ci -> output -> set_content_type ( $ this -> contentTypes [ $ this -> _format ] ) ; } return $ this ; }
Set Response Format into CI_Output

@param string Response format
Set Response Format into CI_Output