ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
YAxis.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\UI\Component\Chart\Bar
;
22
26
class
YAxis
extends
Axis
27
{
28
protected
const
ALLOWED_POSITIONS
= [
"left"
,
"right"
];
29
30
protected
string
$abbreviation
=
"y"
;
31
protected
string
$position
=
"left"
;
32
33
public
function
getAbbreviation
(): string
34
{
35
return
$this->abbreviation
;
36
}
37
44
public
function
withPosition
(
string
$position): self
45
{
46
if
(!in_array($position, self::ALLOWED_POSITIONS)) {
47
throw
new \InvalidArgumentException(
48
"Position must be 'left' or 'right'."
49
);
50
}
51
$clone = clone $this;
52
$clone->position =
$position
;
53
return
$clone;
54
}
55
56
public
function
getPosition
(): string
57
{
58
return
$this->position
;
59
}
60
}
ILIAS\UI\Component\Chart\Bar
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Axis.php:21
ILIAS\UI\Component\Chart\Bar\YAxis\getPosition
getPosition()
Definition:
YAxis.php:56
ILIAS\UI\Component\Chart\Bar\YAxis
Definition:
YAxis.php:26
ILIAS\UI\Component\Chart\Bar\YAxis\$abbreviation
string $abbreviation
Definition:
YAxis.php:30
ILIAS\UI\Component\Chart\Bar\YAxis\getAbbreviation
getAbbreviation()
Definition:
YAxis.php:33
ILIAS\UI\Component\Chart\Bar\YAxis\withPosition
withPosition(string $position)
Should the y-axis be displayed left or right? Default is left.
Definition:
YAxis.php:44
ILIAS\UI\Component\Chart\Bar\Axis
Definition:
Axis.php:26
ILIAS\UI\Component\Chart\Bar\YAxis\ALLOWED_POSITIONS
const ALLOWED_POSITIONS
Definition:
YAxis.php:28
ILIAS\UI\Component\Chart\Bar\YAxis\$position
string $position
Definition:
YAxis.php:31
src
UI
Component
Chart
Bar
YAxis.php
Generated on Sun Apr 6 2025 22:03:01 for ILIAS by
1.8.13 (using
Doxyfile
)