Open Journal Systems
3.3.0
ListPanel.inc.php
1
<?php
15
namespace
PKP\components\listPanels
;
16
17
class
ListPanel
{
18
20
public
$description
=
''
;
21
23
public
$emptyLabel
=
''
;
24
26
public
$expanded
= [];
27
29
public
$headingLevel
=
'h2'
;
30
32
public
$isSidebarVisible
=
false
;
33
35
public
$id
=
''
;
36
38
public
$items
= [];
39
41
public
$title
=
''
;
42
50
function
__construct
(
$id
,
$title
, $args = []) {
51
$this->
id
=
$id
;
52
$this->title =
$title
;
53
$this->
set
($args);
54
}
55
62
public
function
set
($args) {
63
foreach
($args as $prop => $value) {
64
if
(property_exists($this, $prop)) {
65
$this->{$prop} = $value;
66
}
67
}
68
69
return
$this;
70
}
71
78
public
function
getConfig
() {
79
$config = [
80
'description'
=>
$this->description
,
81
'expanded'
=>
$this->expanded
,
82
'headingLevel'
=>
$this->headingLevel
,
83
'id'
=>
$this->id
,
84
'isSidebarVisible'
=>
$this->isSidebarVisible
,
85
'items'
=>
$this->items
,
86
'title'
=>
$this->title
,
87
];
88
89
if
(strlen($this->emptyLabel)) {
90
$config[
'emptyLabel'
] =
$this->emptyLabel
;
91
}
92
93
if
(!empty($this->getParams)) {
94
$config[
'getParams'
] = $this->getParams;
95
}
96
97
if
($this->lazyLoad) {
98
$config[
'items'
] = [];
99
$config[
'itemsMax'
] = 0;
100
}
101
102
return
$config;
103
}
104
}
PKP\components\listPanels\ListPanel\$title
$title
Definition:
ListPanel.inc.php:65
PKP\components\listPanels\ListPanel\__construct
__construct($id, $title, $args=[])
Definition:
ListPanel.inc.php:74
PKP\components\listPanels\ListPanel\getConfig
getConfig()
Definition:
ListPanel.inc.php:102
PKP\components\listPanels\ListPanel\$id
$id
Definition:
ListPanel.inc.php:53
PKP\components\listPanels\ListPanel\$emptyLabel
$emptyLabel
Definition:
ListPanel.inc.php:29
PKP\components\listPanels\ListPanel\$isSidebarVisible
$isSidebarVisible
Definition:
ListPanel.inc.php:47
PKP\components\listPanels\ListPanel\$description
$description
Definition:
ListPanel.inc.php:23
PKP\components\listPanels\ListPanel\$headingLevel
$headingLevel
Definition:
ListPanel.inc.php:41
PKP\components\listPanels
Definition:
ListPanel.inc.php:15
PKP\components\listPanels\ListPanel\$expanded
$expanded
Definition:
ListPanel.inc.php:35
PKP\components\listPanels\ListPanel
Definition:
ListPanel.inc.php:17
PKP\components\listPanels\ListPanel\$items
$items
Definition:
ListPanel.inc.php:59
lib
pkp
classes
components
listPanels
ListPanel.inc.php
Generated on Fri Aug 28 2020 14:52:33 for Open Journal Systems by
1.8.17