本文整理汇总了PHP中DOMPDF::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP DOMPDF::__construct方法的具体用法?PHP DOMPDF::__construct怎么用?PHP DOMPDF::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DOMPDF
的用法示例。
在下文中一共展示了DOMPDF::__construct方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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}');
}
示例2: __construct
/**
* Class constructor
*/
public function __construct()
{
parent::__construct();
self::$openTags = array();
self::$openPs = false;
self::$openTable = array();
self::$WordML = '';
}
示例3: __construct
/**
* Class constructor
*/
public function __construct()
{
$this->aDompdfTree = array();
parent::__construct();
}