예제 #1
0
 public function __construct($backgroundSource, $repeating = "no-repeat", $xposition = "center", $yposition = "center")
 {
     parent::__construct("background");
     $this->backgroundSource = $backgroundSource;
     $this->repeating = $repeating;
     $this->xposition = $xposition;
     $this->yposition = $yposition;
 }
예제 #2
0
 public function __construct($key, $value, $topbottom, $right, $bottom)
 {
     parent::__construct($key);
     if ($topbottom == null) {
         $this->setValues($value, $value, $value, $value);
     } else {
         if ($right == null) {
             $this->setValues($value, $topbottom, $value, $topbottom);
         } else {
             $this->setValues($value, $topbottom, $right, $bottom);
         }
     }
 }
예제 #3
0
 public function __construct($position)
 {
     parent::__construct("position");
     $this->setValue($position);
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct("background-attached");
     $this->setValue("fixed");
 }
예제 #5
0
 public function __construct($key, $dimension)
 {
     parent::__construct($key);
     $this->setValue($dimension);
 }
예제 #6
0
 public function __construct($key, $color, $opacity = false)
 {
     parent::__construct($key);
     $this->color = $color;
     $this->opacity = $opacity;
 }