lib/PHPRtfLite/Container/Section.php
public function addHeader($type = PHPRtfLite_Container_Header::TYPE_ALL)
    {
        $header = new PHPRtfLite_Container_Header($this->_rtf, $type);
        $this->_headers[$type] = $header;

        return $header;
    }
public function addHeader($type = PHPRtfLite_Container_Header::TYPE_ALL)
    {
        $header = new PHPRtfLite_Container_Header($this->_rtf, $type);
        $this->_headers[$type] = $header;

        return $header;
    }
public function addHeader ( $ type = PHPRtfLite_Container_Header :: TYPE_ALL ) { $ header = new PHPRtfLite_Container_Header ( $ this -> _rtf , $ type ) ; $ this -> _headers [ $ type ] = $ header ; return $ header ; }
creates header for sections.

@param string $type Represented by class constants PHPRtfLite_Container_Header::TYPE_*
Possible values: <br>
PHPRtfLite_Container_Header::TYPE_ALL      => 'all' - all pages (different odd and even headers/footers must be not set) <br>
PHPRtfLite_Container_Header::TYPE_LEFT     => 'left' - left pages (different odd and even headers/footers must be set) <br>
PHPRtfLite_Container_Header::TYPE_RIGHT    => 'right' - right pages (different odd and even headers/footers must be set) <br>
PHPRtfLite_Container_Header::TYPE_FIRST    => 'first' - first page

@return PHPRtfLite_Container_Header
creates header for sections .