本文整理汇总了PHP中Cezpdf::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Cezpdf::__construct方法的具体用法?PHP Cezpdf::__construct怎么用?PHP Cezpdf::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cezpdf
的用法示例。
在下文中一共展示了Cezpdf::__construct方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct($params)
{
if (is_array($params)) {
parent::__construct($params['paper'], $params['orientation'], $params['type'], $params['option']);
} else {
parent::__construct();
}
}
示例2: __construct
public function __construct($p, $o)
{
parent::__construct($p, $o, 'none', array());
$this->isUnicode = true;
$this->allowedTags .= '|uline';
// always embed the font for the time being
//$this->embedFont = false;
}
示例3: array
/**
Constructor. This class is only used to encapsulate a table.
*/
function __construct($paper = 'a4', $orientation = 'portrait')
{
parent::__construct($paper, $orientation);
$this->TOC = array();
$this->KeywordArray = array();
$this->PageCounter = array();
$this->initFrameMargins();
$this->ez['textStack'] = array();
$this->PreStack = array();
$this->DocSpecification = array();
$this->pushStack();
$this->FrontpageID = null;
}
示例4: __construct
public function __construct($pagesize, $orientation, $title)
{
global $layout;
$diff = array(177 => 'aogonek', 161 => 'Aogonek', 230 => 'cacute', 198 => 'Cacute', 234 => 'eogonek', 202 => 'Eogonek', 241 => 'nacute', 209 => 'Nacute', 179 => 'lslash', 163 => 'Lslash', 182 => 'sacute', 166 => 'Sacute', 188 => 'zacute', 172 => 'Zacute', 191 => 'zdot', 175 => 'Zdot', 185 => 'scaron', 169 => 'Scaron', 232 => 'ccaron', 200 => 'Ccaron', 236 => 'edot', 204 => 'Edot', 231 => 'iogonek', 199 => 'Iogonek', 249 => 'uogonek', 217 => 'Uogonek', 254 => 'umacron', 222 => 'Umacron', 190 => 'zcaron', 174 => 'Zcaron');
parent::__construct($pagesize, $orientation);
//landscape/portrait
$this->isUnicode = true;
$this->addInfo('Producer', 'LMS Developers');
$this->addInfo('Title', $title);
$this->addInfo('Creator', 'LMS ' . $layout['lmsv']);
$this->setPreferences('FitWindow', '1');
$this->ezSetMargins(PDF_MARGIN_TOP, PDF_MARGIN_BOTTOM, PDF_MARGIN_LEFT, PDF_MARGIN_RIGHT);
$this->setLineStyle(0.5);
$this->setFontFamily('arial', array('b' => 'arialbd'));
$this->selectFont('arial', array('encoding' => 'WinAnsiEncoding', 'differences' => $diff), 1, true);
}
示例5: __construct
public function __construct($p, $o)
{
parent::__construct($p, $o, 'none', array());
}
示例6: __construct
public function __construct($p, $o, $t, $op)
{
parent::__construct($p, $o, $t, $op);
}
示例7: CezTableImage
/**
* @param Cezpdf $ezpdf current cezpdf object
*/
function CezTableImage($p, $o = 'portrait', $t = 'none', $op = array())
{
parent::__construct($p, $o, $t, $op);
$this->allowedTags .= '|showimage:.*?';
}
示例8: CezDummy
/**
* @param Cezpdf $ezpdf current cezpdf object
*/
function CezDummy($p, $o = 'portrait', $t = 'none', $op = array())
{
parent::__construct($p, $o, $t, $op);
}
示例9: Creport
function Creport($p,$o,$t,$op){
parent::__construct($p,$o,$t,$op);
}
示例10: CezDummy
/**
* @param Cezpdf $ezpdf current cezpdf object
*/
function CezDummy($p, $o = 'portrait', $t = 'none', $op = array())
{
parent::__construct($p, $o, $t, $op);
$this->allowedTags .= '|dummy:[0-9]+';
}
示例11: __construct
public function __construct($p, $o)
{
parent::__construct($p, $o);
}
示例12: __construct
public function __construct($p, $o)
{
parent::__construct($p, $o, 'color', array(0.8, 0.8, 0.8));
}
示例13: Creport
function Creport($p, $o)
{
parent::__construct($p, $o);
}
示例14: __construct
/**
* PdfClass constructor.
*/
public function __construct($orientation = 'portrait', $title = '')
{
if (strtolower($orientation) !== 'landscape') {
$orientation = 'portrait';
}
parent::__construct('a4', $orientation);
/**
* sets default info
*/
$this->addInfo('Author', PORTAL_NAME);
$this->addInfo('Creator', 'ADA platform v' . ADA_VERSION);
$this->addInfo('Producer', 'Lynx Srl');
$this->addInfo('CreationDate', date('YmdHis'));
/**
* sets defaults margins
*/
$this->ezSetMargins($this->_topMargin, $this->_bottomMargin, $this->_leftMargin, $this->_rightMargin);
/**
* sets the title if it's been passed
*/
if (isset($title) && $title != '') {
$this->setTitle($title);
}
/**
* sets 'Helvetica' as default font
*/
$this->setFont(DEFAULT_DOC_FONT, DEFAULT_DOC_FONTSIZE);
}