ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjRemoteFileGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
34{
35 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
36 {
37 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
38
39 $this->lng->loadLanguageModule('rfil');
40 $this->lng->loadLanguageModule('file');
41 }
42
43 public function getType(): string
44 {
45 return 'rfil';
46 }
47
48 protected function addCustomInfoFields(ilInfoScreenGUI $a_info): void
49 {
50 $a_info->addProperty($this->lng->txt('version'), $this->object->getVersion());
51 $a_info->addProperty(
52 $this->lng->txt('rfil_version_tstamp'),
53 ilDatePresentation::formatDate(new ilDateTime($this->object->getVersionDateTime(), IL_CAL_UNIX))
54 );
55 }
56}
const IL_CAL_UNIX
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
@classDescription Date and time handling
Class ilInfoScreenGUI.
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
addCustomInfoFields(ilInfoScreenGUI $a_info)
Add custom fields to info screen.
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
getType()
Functions that must be overwritten.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc