本文整理汇总了PHP中FPDI::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP FPDI::__construct方法的具体用法?PHP FPDI::__construct怎么用?PHP FPDI::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FPDI
的用法示例。
在下文中一共展示了FPDI::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* class constructor
*
* @param string $orientation page orientation, same as TCPDF
* @param string $unit User measure unit, same as TCPDF
* @param mixed $format The format used for pages, same as TCPDF
* @param boolean $unicode TRUE means that the input text is unicode (default = true)
* @param String $encoding charset encoding; default is UTF-8
* @param boolean $diskcache if TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower).
* @access public
*/
public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8', $diskcache = false)
{
// call the parent constructor
parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
// init the specific parameters used by HTML2PDF
$this->SetCreator(PDF_CREATOR);
$this->SetAutoPageBreak(false, 0);
$this->linestyleCap = '2 J';
$this->setPrintHeader(false);
$this->jpeg_quality = 90;
// prepare the automatic footer
$this->SetMyFooter();
$this->setCellPaddings(0, 0, 0, 0);
$this->setCellMargins(0, 0, 0, 0);
}
示例2:
function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $copy = false)
{
if (file_exists(Util::getRootPath() . "ubiquitous/Fonts/")) {
# AND !defined("FPDF_FONTPATH")) {
#define('FPDF_FONTPATH', Util::getRootPath()."ubiquitous/Fonts/");
$this->AddFont("Ubuntu", "", "5e01bde68449bff64cefe374f81b7847_ubuntu-regular.php");
$this->AddFont("Ubuntu", "B", "70fed3593f0725ddea7da8f1c62577c1_ubuntu-bold.php");
$this->AddFont("Ubuntu", "I", "cfa4d284ee1dc737cb0fe903fbab1844_ubuntu-italic.php");
$this->AddFont("Ubuntu", "BI", "c409dbcbee5b5ac6bf7b101817c7416a_ubuntu-bolditalic.php");
$this->AddFont("Orbitron", "", "667a54623e1b9927fdf078125bbbf49b_orbitron-regular.php");
$this->AddFont("Orbitron", "B", "c4c6025fc06df62e82ebf42b2709e6ae_orbitron-bold.php");
$this->AddFont("Orbitron", "I", "c4c6025fc06df62e82ebf42b2709e6ae_orbitron-fakeItalic.php");
$this->AddFont("Orbitron", "BI", "c4c6025fc06df62e82ebf42b2709e6ae_orbitron-fakeBoldItalic.php");
$this->AddFont("Raleway", "", "ed7ad2408e498cae8fab623a755883f6_raleway-thin.php");
$this->AddFont("Raleway", "B", "ed7ad2408e498cae8fab623a755883f6_raleway-thin-fakeBold.php");
$this->AddFont("Raleway", "I", "ed7ad2408e498cae8fab623a755883f6_raleway-thin-fakeItalic.php");
$this->AddFont("Raleway", "BI", "ed7ad2408e498cae8fab623a755883f6_raleway-thin-fakeBoldItalic.php");
}
parent::__construct($orientation, $unit, $format, $copy);
}
示例3: __construct
/**
* This method overrides the parent constructor method.
* this is need to reset the default values.
*/
public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = TRUE, $encoding = 'UTF-8', $diskcache = FALSE)
{
parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
$this->defaultOrientation = $orientation;
$this->defaultFormat = $format;
}
示例4:
function __construct($opt)
{
parent::__construct();
$this->opt = $opt;
}
示例5:
function mb_fpdi($orientation = 'L', $unit = 'mm', $format = 'A4')
{
parent::__construct($orientation, $unit, $format);
$this->SetAutoPageBreak(false, 0);
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->ci =& get_instance();
}
示例7: __construct
public function __construct()
{
parent::__construct();
}