Пример #1
0
 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);
 }
Пример #2
0
 protected final function filterBooleanValue($value)
 {
     return Util::convertBooleanValue($value);
 }
Пример #3
0
 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;
     }
 }
Пример #4
0
 public function setEqualsColumns($flag)
 {
     $flag = Util::convertBooleanValue($flag);
     $this->setAttributeDirectly('equals-columns', $flag);
 }