lib/PHPRtfLite.php
public function addFooter($type = PHPRtfLite_Container_Footer::TYPE_ALL, PHPRtfLite_Container_Footer $footer = null)
    {
        if ($footer === null) {
            $footer = new PHPRtfLite_Container_Footer($this, $type);
        }
        $this->_footers[$type] = $footer;

        return $footer;
    }
public function addFooter($type = PHPRtfLite_Container_Footer::TYPE_ALL, PHPRtfLite_Container_Footer $footer = null)
    {
        if ($footer === null) {
            $footer = new PHPRtfLite_Container_Footer($this, $type);
        }
        $this->_footers[$type] = $footer;

        return $footer;
    }
public function addFooter ( $ type = PHPRtfLite_Container_Footer :: TYPE_ALL , PHPRtfLite_Container_Footer $ footer = null ) { if ( $ footer === null ) { $ footer = new PHPRtfLite_Container_Footer ( $ this , $ type ) ; } $ this -> _footers [ $ type ] = $ footer ; return $ footer ; }
creates footer for the document

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

@return  PHPRtfLite_Container_Footer
creates footer for the document