Пример #1
0
 public function __construct($color = null, $type = self::TYPE_ALL, $size = 1, $radius = null, $style = self::STYLE_SOLID, $position = 0)
 {
     parent::__construct($color, $radius);
     $this->setType($type);
     $this->setStyle($style);
     $this->setSize($size);
     $this->setPosition($position);
 }
Пример #2
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);
 }