Class ilPDSelectedItemsBlockViewGUI.
More...
◆ __construct()
◆ bySettings()
- Parameters
-
- Returns
- self
Definition at line 121 of file class.ilPDSelectedItemsBlockViewGUI.php.
References ilPDSelectedItemsBlockViewSettings\getActor(), and ilPDSelectedItemsBlockViewSettings\isMembershipsViewActive().
Referenced by ilPDSelectedItemsBlockGUI\initViewSettings().
124 require_once
'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockMembershipsViewGUI.php';
125 require_once
'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockMembershipsProvider.php';
132 require_once
'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockSelectedItemsViewGUI.php';
133 require_once
'Services/PersonalDesktop/ItemsBlock/classes/class.ilPDSelectedItemsBlockSelectedItemsProvider.php';
Class ilPDSelectedItemsBlockMembershipsViewGUI.
Class ilPDSelectedItemsBlockSelectedItemsViewGUI.
Class ilPDSelectedItemsBlockMembershipsProvider.
Class ilPDSelectedItemsBlockMembershipsProvider.
isMembershipsViewActive()
◆ getGroups()
ilPDSelectedItemsBlockViewGUI::getGroups |
( |
| ) |
|
|
abstract |
◆ getIntroductionHtml()
ilPDSelectedItemsBlockViewGUI::getIntroductionHtml |
( |
| ) |
|
|
abstract |
◆ getItemGroups()
ilPDSelectedItemsBlockViewGUI::getItemGroups |
( |
| ) |
|
◆ getMinimumDetailLevelForSection()
ilPDSelectedItemsBlockViewGUI::getMinimumDetailLevelForSection |
( |
| ) |
|
◆ getRepositoryTitle()
ilPDSelectedItemsBlockViewGUI::getRepositoryTitle |
( |
| ) |
|
|
protected |
◆ getScreenId()
ilPDSelectedItemsBlockViewGUI::getScreenId |
( |
| ) |
|
|
abstract |
◆ getTitle()
ilPDSelectedItemsBlockViewGUI::getTitle |
( |
| ) |
|
|
abstract |
◆ groupItemsByLocation()
ilPDSelectedItemsBlockViewGUI::groupItemsByLocation |
( |
| ) |
|
|
protected |
◆ groupItemsByStartDate()
ilPDSelectedItemsBlockViewGUI::groupItemsByStartDate |
( |
| ) |
|
|
protected |
- Returns
- ilPDSelectedItemsBlockGroup[]
Definition at line 220 of file class.ilPDSelectedItemsBlockViewGUI.php.
References $key, array, ilPDSelectedItemsBlockGroup\getItems(), IL_CAL_UNIX, and time.
Referenced by ilPDSelectedItemsBlockMembershipsViewGUI\getGroups().
222 $items = $this->provider->getItems();
224 if (0 == count($items)) {
229 'upcoming' =>
array(),
230 'ongoing' =>
array(),
232 'not_dated' =>
array()
235 foreach ($items as
$key => $item) {
236 if ($item[
'start'] && $item[
'start'] && $item[
'start'] instanceof
ilDate) {
238 $groups[
'upcoming'][] = $item;
240 $groups[
'ongoing'][] = $item;
242 $groups[
'ended'][] = $item;
245 $groups[
'not_dated'][] = $item;
249 uasort($groups[
'upcoming'],
function ($left, $right) {
256 return strcmp($left[
'title'], $right[
'title']);
259 uasort($groups[
'ongoing'],
function ($left, $right) {
266 return strcmp($left[
'title'], $right[
'title']);
269 uasort($groups[
'ended'],
function ($left, $right) {
276 return strcmp($left[
'title'], $right[
'title']);
279 uasort($groups[
'not_dated'],
function ($left, $right) {
280 return strcmp($left[
'title'], $right[
'title']);
284 $upcoming->setLabel($this->lng->txt(
'pd_upcoming'));
285 $upcoming->setItems($groups[
'upcoming']);
288 $ongoing->setLabel($this->lng->txt(
'pd_ongoing'));
289 $ongoing->setItems($groups[
'ongoing']);
292 $ended->setLabel($this->lng->txt(
'pd_ended'));
293 $ended->setItems($groups[
'ended']);
296 $not_dated->setLabel($this->lng->txt(
'pd_not_date'));
297 $not_dated->setItems($groups[
'not_dated']);
299 return array_filter([
305 return count($group->
getItems()) > 0;
Class ilPDSelectedItemsBlockGroup.
Create styles array
The data for the language used.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
◆ groupItemsByType()
ilPDSelectedItemsBlockViewGUI::groupItemsByType |
( |
| ) |
|
|
protected |
◆ isRootNode()
ilPDSelectedItemsBlockViewGUI::isRootNode |
( |
|
$refId | ) |
|
|
protected |
◆ mayRemoveItem()
ilPDSelectedItemsBlockViewGUI::mayRemoveItem |
( |
|
$refId | ) |
|
◆ preloadItemGroups()
ilPDSelectedItemsBlockViewGUI::preloadItemGroups |
( |
array |
$item_groups | ) |
|
|
protected |
- Parameters
-
ilPDSelectedItemsBlockGroup[] | $item_groups |
Definition at line 167 of file class.ilPDSelectedItemsBlockViewGUI.php.
References ilObjectListGUI\CONTEXT_PERSONAL_DESKTOP, and ilAdvancedMDValues\preloadByObjIds().
Referenced by getItemGroups().
169 require_once
'Services/Object/classes/class.ilObjectListGUIPreloader.php';
173 foreach ($item_groups as $item_group) {
174 foreach ($item_group->getItems() as $item) {
175 $obj_ids[] = $item[
'obj_id'];
176 $listPreloader->addItem($item[
'obj_id'], $item[
'type'], $item[
'ref_id']);
180 $listPreloader->preload();
static preloadByObjIds(array $a_obj_ids)
Preload list gui data.
Preloader for object list GUIs.
const CONTEXT_PERSONAL_DESKTOP
◆ supportsSelectAll()
ilPDSelectedItemsBlockViewGUI::supportsSelectAll |
( |
| ) |
|
|
abstract |
◆ $accessHandler
ilPDSelectedItemsBlockViewGUI::$accessHandler |
|
protected |
◆ $lng
ilPDSelectedItemsBlockViewGUI::$lng |
|
protected |
◆ $object_cache
ilPDSelectedItemsBlockViewGUI::$object_cache |
|
protected |
◆ $provider
ilPDSelectedItemsBlockViewGUI::$provider |
|
protected |
◆ $tree
ilPDSelectedItemsBlockViewGUI::$tree |
|
protected |
◆ $viewSettings
ilPDSelectedItemsBlockViewGUI::$viewSettings |
|
protected |
The documentation for this class was generated from the following file: