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

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

        return $header;
    }
public function addHeader ( $ type = PHPRtfLite_Container_Header :: TYPE_ALL , PHPRtfLite_Container_Header $ header = null ) { if ( $ header === null ) { $ header = new PHPRtfLite_Container_Header ( $ this , $ type ) ; } $ this -> _headers [ $ type ] = $ header ; return $ header ; }
creates header for the document

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

@return  PHPRtfLite_Container_Header
creates header for the document