ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilObjRemoteFileGUI.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
addCustomInfoFields(ilInfoScreenGUI $a_info)
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
const IL_CAL_UNIX
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)