PHPRtfLite::setSpecialLayoutForFirstPage PHP Метод

setSpecialLayoutForFirstPage() публичный Метод

sets that first page has a special layout
public setSpecialLayoutForFirstPage ( boolean $specialLayout = true )
$specialLayout boolean
    public function setSpecialLayoutForFirstPage($specialLayout = true)
    {
        $this->_titlepg = $specialLayout;
    }

Usage Example

Пример #1
0
 /**
  * Constructor
  *
  * @param PHPRtfLite    $rtf
  * @param string        $type
  */
 public function __construct(PHPRtfLite $rtf, $type = self::TYPE_ALL)
 {
     $this->_rtf = $rtf;
     $this->_type = $type;
     if ($this->_type == self::TYPE_FIRST) {
         $rtf->setSpecialLayoutForFirstPage(true);
     }
 }