本文整理汇总了PHP中Component::write方法的典型用法代码示例。如果您正苦于以下问题:PHP Component::write方法的具体用法?PHP Component::write怎么用?PHP Component::write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Component
的用法示例。
在下文中一共展示了Component::write方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: write
public function write()
{
parent::write();
foreach ($this->children as $child) {
if ($child != null && get_class($child) != "" && !$child->onEachPage) {
$child->write();
}
}
}
示例2: write
public function write()
{
parent::write();
$imageData = $this->getContent();
if ($imageData['source'] == null) {
return;
}
$this->componentPdfWriter->Image($imageData['fileName'], $this->getPageX(), $this->getPageY(), $this->width, $this->height);
}
示例3: write
public function write()
{
parent::write();
if ($this->value == null || strlen($this->value) == 0 || $this->fontSize == 0) {
return;
}
$font = $this->getFont();
$font->setFont($this->componentPdfWriter);
$this->componentPdfWriter->SetXY($this->getPageX(), $this->getPageY());
$val = DataUtils::getValue($this->value);
if ($this->width == 0) {
$this->width = $this->componentPdfWriter->GetStringWidth($val);
}
$this->componentPdfWriter->MultiCell($this->width + 6, $this->fontSize + 6, $val, 0, "L", false);
}