@@ 337-348 (lines=12) @@ | ||
334 | * @param int $sh_angle |
|
335 | * @param float $sh_distance |
|
336 | */ |
|
337 | public function setShadowProperties($sh_presets, $sh_color_value = null, $sh_color_type = null, $sh_color_alpha = null, $sh_blur = null, $sh_angle = null, $sh_distance = null) |
|
338 | { |
|
339 | $this->setShadowPresetsProperties((int) $sh_presets) |
|
340 | ->setShadowColor( |
|
341 | is_null($sh_color_value) ? $this->shadowProperties['color']['value'] : $sh_color_value, |
|
342 | is_null($sh_color_alpha) ? (int) $this->shadowProperties['color']['alpha'] : $sh_color_alpha, |
|
343 | is_null($sh_color_type) ? $this->shadowProperties['color']['type'] : $sh_color_type |
|
344 | ) |
|
345 | ->setShadowBlur($sh_blur) |
|
346 | ->setShadowAngle($sh_angle) |
|
347 | ->setShadowDistance($sh_distance); |
|
348 | } |
|
349 | ||
350 | /** |
|
351 | * Set Shadow Color |
@@ 289-301 (lines=13) @@ | ||
286 | * @param int $sh_angle |
|
287 | * @param float $sh_distance |
|
288 | */ |
|
289 | public function setShadowProperties($sh_presets, $sh_color_value = null, $sh_color_type = null, $sh_color_alpha = null, $sh_blur = null, $sh_angle = null, $sh_distance = null) |
|
290 | { |
|
291 | $this->activateObject() |
|
292 | ->setShadowPresetsProperties((int) $sh_presets) |
|
293 | ->setShadowColor( |
|
294 | is_null($sh_color_value) ? $this->shadowProperties['color']['value'] : $sh_color_value, |
|
295 | is_null($sh_color_alpha) ? (int) $this->shadowProperties['color']['alpha'] : $this->getTrueAlpha($sh_color_alpha), |
|
296 | is_null($sh_color_type) ? $this->shadowProperties['color']['type'] : $sh_color_type |
|
297 | ) |
|
298 | ->setShadowBlur($sh_blur) |
|
299 | ->setShadowAngle($sh_angle) |
|
300 | ->setShadowDistance($sh_distance); |
|
301 | } |
|
302 | ||
303 | /** |
|
304 | * Set Shadow Presets Properties |