本文整理匯總了PHP中pdf::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP pdf::__construct方法的具體用法?PHP pdf::__construct怎麽用?PHP pdf::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類pdf
的用法示例。
在下文中一共展示了pdf::__construct方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($orientation, $columnwidths)
{
parent::__construct($orientation);
// Set default configuration.
$this->SetCreator('TUWEL');
$this->SetMargins(10, 20, 10, true);
$this->setHeaderMargin(7);
$this->SetFont('freesans', '');
$this->columnwidths = $columnwidths;
$this->orientation = $orientation;
$this->columnformat = array();
for ($i = 0; $i < count($columnwidths); $i++) {
$this->columnformat[] = array();
$this->columnformat[$i][] = array("fill" => 0, "align" => "L");
$this->columnformat[$i][] = array("fill" => 1, "align" => "L");
}
}
示例2:
function __construct(CController $controller)
{
parent::__construct();
$this->style = $controller->render('/admin/export/quexmlpdf_view', '', true);
}
示例3: __construct
public function __construct($settings)
{
parent::__construct($settings->orientation, $settings->unit, $settings->format);
$this->_dfsettings = $settings;
}