本文整理匯總了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);
}