예제 #1
0
 public function render()
 {
     if (substr($this->color, 0, 1) == "#") {
         $this->color = substr($this->color, 1);
     }
     if (strlen($this->color) == 6 || strlen($this->color) == 3) {
         $this->setValue(convertHexToRgba($this->color, $this->opacity));
     } else {
         $this->setValue($this->color);
     }
     return parent::render();
 }
예제 #2
0
 public function render()
 {
     if ($this->left == $this->right && $this->top == $this->bottom) {
         if ($this->left == $this->top) {
             $this->setValue($this->left);
         } else {
             $this->setValue($this->left . " " . $this->top);
         }
     } else {
         $this->setValue($this->top . " " . $this->right . " " . $this->bottom . " " . $this->left);
     }
     return parent::render();
 }
예제 #3
0
 public function render()
 {
     $this->setValue($this->backgroundSource . " " . $this->repeating . " " . $this->xposition . " " . $this->yposition);
     return parent::render();
 }
예제 #4
0
 public function __construct($position)
 {
     parent::__construct("position");
     $this->setValue($position);
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct("background-attached");
     $this->setValue("fixed");
 }
예제 #6
0
 public function __construct($key, $dimension)
 {
     parent::__construct($key);
     $this->setValue($dimension);
 }