/** * Class constructor * * @param JDocument &$doc A reference to the JDocument object that instantiated the renderer * * @since 11.1 */ public function __construct(&$doc) { $this->jdoc =& $doc; // set default values $orientation = isset($doc->orientation) ? $doc->orientation : 'P'; $unit = isset($doc->unit) ? $doc->unit : 'mm'; $format = isset($doc->format) ? $doc->format : 'A4'; $unicode = isset($doc->unicode) ? $doc->unicode : true; $pdfa = isset($doc->pdfa) ? $doc->pdfa : false; // PDFA true include more datas but render same in all computers. For a web site this can be very longer setted to true. // $encoding always utf8 // $diskcache=false; // true : compatible with joomla ? // Default settings are a portrait layout with an A4 configuration using millimeters as units parent::__construct(); //'',$format,0,'',$doc->_margin_left,$doc->_margin_right,$doc->_margin_top,$doc->_margin_bottom,$doc->_margin_header,$doc->_margin_footer,$orientation); // set default header/footer // $app = JFactory::getApplication(); // if ($app->getCfg('sitename_pagetitles', 0) == 1) // { // $title = $app->getCfg('sitename'); // } // elseif ($app->getCfg('sitename_pagetitles', 0) == 2) // { // $title = JText::sprintf('JPAGETITLE', $doc->title, $app->getCfg('sitename')); // } // else // { // $title = $doc->title; // } // $this->SetFooter( $title.'|'.JURI::current().'|{PAGENO}/{nb}'); }
/** * Class constructor */ public function __construct() { parent::__construct(); self::$openTags = array(); self::$openPs = false; self::$openTable = array(); self::$WordML = ''; }
/** * Class constructor */ public function __construct() { $this->aDompdfTree = array(); parent::__construct(); }