ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjRemoteFileGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once('Services/WebServices/ECS/classes/class.ilRemoteObjectBaseGUI.php');
5
19{
20 public function __construct($a_id = 0, $a_id_type = self::REPOSITORY_NODE_ID, $a_parent_node_id = 0)
21 {
22 parent::__construct($a_id, $a_id_type, $a_parent_node_id);
23
24 $this->lng->loadLanguageModule('rfil');
25 $this->lng->loadLanguageModule('file');
26 }
27
28 public function getType()
29 {
30 return 'rfil';
31 }
32
33 protected function addCustomInfoFields(ilInfoScreenGUI $a_info)
34 {
35 $a_info->addProperty($this->lng->txt('version'), $this->object->getVersion());
36 $a_info->addProperty(
37 $this->lng->txt('rfil_version_tstamp'),
38 ilDatePresentation::formatDate(new ilDateTime($this->object->getVersionDateTime(), IL_CAL_UNIX))
39 );
40 }
41}
An exception for terminatinating execution or to throw for unit testing.
const IL_CAL_UNIX
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling
Class ilInfoScreenGUI.
addProperty($a_name, $a_value, $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)
Constructor.
getType()
Functions that must be overwritten.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc