public function __construct($color = null, $image = null, $repeat = self::REPEAT_NONE, $radius = null, $useRealDimension = false, $imageWidth = null, $imageHeight = null, $positionX = self::POSITION_LEFT, $positionY = self::POSITION_TOP) { parent::__construct($color, $radius); $this->image = $image; $this->setRepeat($repeat); $this->useRealDimension = Util::convertBooleanValue($useRealDimension); $this->setImageDimension($imageWidth, $imageHeight); $this->setPosition($positionX, $positionY); }
protected final function filterBooleanValue($value) { return Util::convertBooleanValue($value); }
public function setMetadataValue($name, $value) { switch ($name) { case 'Trapped': $value = $value === 'null' ? null : Util::convertBooleanValue($value); $this->getZendPdf()->properties[$name] = $value; break; case 'CreationDate': case 'ModDate': $value = PdfDocument::pdfDate(strtotime($value)); $this->getZendPdf()->properties[$name] = $value; break; case 'Title': case 'Author': case 'Subject': case 'Keywords': case 'Creator': $this->getZendPdf()->properties[$name] = $value; break; } }
public function setEqualsColumns($flag) { $flag = Util::convertBooleanValue($flag); $this->setAttributeDirectly('equals-columns', $flag); }