Differential D350 Diff 976 branches/5.2.x/core/units/general/libchart/classes/view/primitive/Padding.php
Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/general/libchart/classes/view/primitive/Padding.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Creates a new padding. | * Creates a new padding. | ||||
* | * | ||||
* @param integer Top padding | * @param integer Top padding | ||||
* @param integer Right padding | * @param integer Right padding | ||||
* @param integer Bottom padding | * @param integer Bottom padding | ||||
* @param integer Left padding | * @param integer Left padding | ||||
*/ | */ | ||||
public function LibchartPadding($top, $right = null, $bottom = null, $left = null) { | public function __construct($top, $right = null, $bottom = null, $left = null) { | ||||
$this->top = $top; | $this->top = $top; | ||||
if ($right == null) { | if ($right == null) { | ||||
$this->right = $top; | $this->right = $top; | ||||
$this->bottom = $top; | $this->bottom = $top; | ||||
$this->left = $top; | $this->left = $top; | ||||
} else { | } else { | ||||
$this->right = $right; | $this->right = $right; | ||||
$this->bottom = $bottom; | $this->bottom = $bottom; | ||||
$this->left = $left; | $this->left = $left; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
No newline at end of file |