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; }
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); } } }
public function __construct($position) { parent::__construct("position"); $this->setValue($position); }
public function __construct() { parent::__construct("background-attached"); $this->setValue("fixed"); }
public function __construct($key, $dimension) { parent::__construct($key); $this->setValue($dimension); }
public function __construct($key, $color, $opacity = false) { parent::__construct($key); $this->color = $color; $this->opacity = $opacity; }