ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjRemoteFileGUI.php
Go to the documentation of this file.
1 <?php
2 
18 declare(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 }
Class ilInfoScreenGUI.
addCustomInfoFields(ilInfoScreenGUI $a_info)
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
__construct($a_id=0, $a_id_type=self::REPOSITORY_NODE_ID, $a_parent_node_id=0)
const IL_CAL_UNIX
Interface ilCtrlBaseClassInterface describes ilCtrl base classes.
__construct(Container $dic, ilPlugin $plugin)