ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
Card.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 2016 Amstutz Timon <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component\Card
;
6
7
use
ILIAS\UI\Component\Card
as
C
;
8
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
9
10
class
Card
implements
C\Card {
11
use
ComponentHelper
;
12
16
protected
$title
;
17
21
protected
$header_section
;
22
26
protected
$content_sections
;
27
31
protected
$image
;
32
33
38
public
function
__construct
(
$title
, \
ILIAS
\UI\
Component
\Image\Image
$image
= null){
39
$this->checkStringArg(
"title"
,
$title
);
40
41
$this->title =
$title
;
42
$this->
image
=
$image
;
43
}
44
48
public
function
withTitle
(
$title
){
49
$this->checkStringArg(
"title"
,
$title
);
50
51
$clone = clone $this;
52
$clone->title =
$title
;
53
54
return
$clone;
55
}
56
60
public
function
getTitle
(){
61
return
$this->title
;
62
}
63
67
public
function
withImage
(\
ILIAS
\UI\
Component
\Image\Image
$image
){
68
$clone = clone $this;
69
$clone->image =
$image
;
70
return
$clone;
71
}
72
76
public
function
getImage
(){
77
return
$this->image
;
78
}
79
83
public
function
withSections
(
array
$sections){
84
$classes = [\ILIAS\UI\Component\Component::class];
85
$this->checkArgListElements(
"sections"
,$sections,$classes);
86
87
$clone = clone $this;
88
$clone->content_sections = $sections;
89
return
$clone;
90
}
91
95
public
function
getSections
(){
96
return
$this->content_sections
;
97
}
98
}
99
?>
ILIAS\UI\Implementation\Component\Card\Card\withSections
withSections(array $sections)
Definition:
Card.php:83
ILIAS
Interface Card .
ILIAS\UI\Implementation\Component\Card\Card\getSections
getSections()
Definition:
Card.php:95
ILIAS\UI\Component
Component
ILIAS\UI\Implementation\Component\Card\Card\withImage
withImage(\ILIAS\UI\Component\Image\Image $image)
Definition:
Card.php:67
ILIAS\UI\Implementation\Component\Card\Card\$content_sections
$content_sections
Definition:
Card.php:26
ILIAS\UI\Implementation\Component\Card\Card\__construct
__construct($title, \ILIAS\UI\Component\Image\Image $image=null)
Definition:
Card.php:38
ILIAS\UI\Implementation\Component\Card\Card\withTitle
withTitle($title)
Definition:
Card.php:48
image
Generate an image
Definition:
25inmemoryimage.php:56
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ILIAS\UI\Implementation\Component\Card
Definition:
Card.php:5
ILIAS\UI\Implementation\Component\Card\Card\getImage
getImage()
Definition:
Card.php:76
ILIAS\UI\Implementation\Component\Card\Card
Definition:
Card.php:10
ILIAS\UI\Implementation\Component\Card\Card\$title
$title
Definition:
Card.php:16
ILIAS\UI\Implementation\Component\Card\Card\$image
$image
Definition:
Card.php:31
ILIAS\UI\Implementation\Component\Card\Card\$header_section
$header_section
Definition:
Card.php:21
ComponentHelper
php
ILIAS\UI\Component\Card
Definition:
Card.php:5
ILIAS\UI\Implementation\Component\Card\Card\getTitle
getTitle()
Definition:
Card.php:60
ComponentHelper
src
UI
Implementation
Component
Card
Card.php
Generated on Fri Jan 17 2025 19:01:21 for ILIAS by
1.8.13 (using
Doxyfile
)