本文整理汇总了PHP中Component::initComponent方法的典型用法代码示例。如果您正苦于以下问题:PHP Component::initComponent方法的具体用法?PHP Component::initComponent怎么用?PHP Component::initComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Component
的用法示例。
在下文中一共展示了Component::initComponent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initComponent
public function initComponent($pdfDocument, $pdfWriter, $baseX, $baseY, $marginTop, $marginLeft, $marginRight, $marginBottom, $parentWidth, $parentHeight)
{
parent::initComponent($pdfDocument, $pdfWriter, $baseX, $baseY, $marginTop, $marginLeft, $marginRight, $marginBottom, $parentWidth, $parentHeight);
foreach ($this->children as $component) {
if (get_class($component) != "") {
$component->initComponent($pdfDocument, $pdfWriter, $this->x, $this->y, $this->marginTop, $this->marginLeft, $this->marginRight, $this->marginBottom, $this->width, $this->height);
}
}
}
示例2: initComponent
public function initComponent($pdfDocument, $pdfWriter, $baseX, $baseY, $marginTop, $marginLeft, $marginRight, $marginBottom, $parentWidth, $parentHeight)
{
parent::initComponent($pdfDocument, $pdfWriter, $baseX, $baseY, $marginTop, $marginLeft, $marginRight, $marginBottom, $parentWidth, $parentHeight);
$this->rowHeight = $this->fontSize + 2 * $this->cellPadding;
}