ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilECSFileSettings Class Reference

Class ilECSFileSettings. More...

+ Inheritance diagram for ilECSFileSettings:
+ Collaboration diagram for ilECSFileSettings:

Protected Member Functions

 getECSObjectType ()
 Get ECS resource identifier, e.g.
 buildJson (ilECSSetting $a_server)
 Build resource-specific json.
- Protected Member Functions inherited from ilECSObjectSettings
 isActive ()
 Is ECS (for current object) active?
 handleSettingsForServer (ilECSSetting $a_server, $a_export, $a_mids)
 Save ECS settings (add- update- deleteResource)
 doAdd (ilECSSetting $a_server, ilECSExport $a_export_settings, array $a_mids)
 Add resource to ECS.
 doUpdate (ilECSSetting $a_server, ilECSExport $a_export_settings, array $a_mids=null)
 Update ECS resource.
 getParticipants ($a_server_id, $a_econtent_id)
 Get participants for server and ecs resource.
 sendNewContentNotification (ilECSSetting $a_server, $a_econtent_id)
 send notifications about new EContent
 handlePermissionUpdate (ilECSSetting $server)
 getJsonCore ($a_etype)
 Build core json structure.
 addMetadataToJson (&$a_json, ilECSSetting $a_server, array $a_definition)
 Add advanced metadata to json (export)

Additional Inherited Members

- Public Member Functions inherited from ilECSObjectSettings
 __construct (ilObject $a_content_object)
 Constructor.
 getContentObject ()
 Get content object.
 addSettingsToForm (ilPropertyFormGUI $a_form, $a_type)
 Fill ECS export settings "multiple servers".
 handleSettingsUpdate ()
 Update ECS Export Settings.
 handleContentUpdate ()
 Update ECS Content.
 doDelete (ilECSSetting $a_server, ilECSExport $a_export_settings)
 Delete ECS resource.
- Static Public Member Functions inherited from ilECSObjectSettings
static getInstanceByObject (ilObject $a_content_obj)
 Get settings handler for repository object.
static _handleDelete (array $a_subbtree_nodes)
 handle delete Objects that are moved to the trash call ECS-Remove
- Data Fields inherited from ilECSObjectSettings
const MAIL_SENDER = 6
- Protected Attributes inherited from ilECSObjectSettings
 $content_obj

Detailed Description

Class ilECSFileSettings.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Id:
class.ilObjCourseGUI.php 31646 2011-11-14 11:39:37Z jluetzen

/

Definition at line 15 of file class.ilECSFileSettings.php.

Member Function Documentation

ilECSFileSettings::buildJson ( ilECSSetting  $a_server)
protected

Build resource-specific json.

Parameters
ilECSSetting$a_server
Returns
object

Reimplemented from ilECSObjectSettings.

Definition at line 22 of file class.ilECSFileSettings.php.

References ilHistory\_getEntriesForObject(), ilECSObjectSettings\getJsonCore(), IL_CAL_DATETIME, and IL_CAL_UNIX.

{
$json = $this->getJsonCore('application/ecs-file');
$json->version = $this->content_obj->getVersion();
require_once("./Services/History/classes/class.ilHistoryGUI.php");
$entries = ilHistory::_getEntriesForObject($this->content_obj->getId(),
$this->content_obj->getType());
if(count($entries))
{
$entry = array_shift($entries);
$entry = new ilDateTime($entry["date"],IL_CAL_DATETIME);
$json->version_date = $entry->get(IL_CAL_UNIX);
}
else
{
$json->version_date = time();
}
return $json;
}

+ Here is the call graph for this function:

ilECSFileSettings::getECSObjectType ( )
protected

Get ECS resource identifier, e.g.

"/campusconnect/courselinks"

Returns
string

Reimplemented from ilECSObjectSettings.

Definition at line 17 of file class.ilECSFileSettings.php.

{
return '/campusconnect/files';
}

The documentation for this class was generated from the following file: