ILIAS  release_8 Revision v8.24
class.ilObjRemoteFileGUI.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
33{
34 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
35 {
36 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
37
38 $this->lng->loadLanguageModule('rfil');
39 $this->lng->loadLanguageModule('file');
40 }
41
42 public function getType(): string
43 {
44 return 'rfil';
45 }
46
47 protected function addCustomInfoFields(ilInfoScreenGUI $a_info): void
48 {
49 $a_info->addProperty($this->lng->txt('version'), $this->object->getVersion());
50 $a_info->addProperty(
51 $this->lng->txt('rfil_version_tstamp'),
52 ilDatePresentation::formatDate(new ilDateTime($this->object->getVersionDateTime(), IL_CAL_UNIX))
53 );
54 }
55}
const IL_CAL_UNIX
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@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.
Interface ilCtrlBaseClassInterface describes ilCtrl base classes.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc