ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilExAssTypeBlog Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilExAssTypeBlog:
+ Collaboration diagram for ilExAssTypeBlog:

Public Member Functions

 __construct (?ilSetting $a_setting=null, ?ilLanguage $a_lng=null)
 Constructor. More...
 
 isActive ()
 
 usesTeams ()
 
 usesFileUpload ()
 
 getTitle ()
 
 getSubmissionType ()
 
 isSubmissionAssignedToTeam ()
 
 cloneSpecificProperties (ilExAssignment $source, ilExAssignment $target)
 
 supportsWebDirAccess ()
 
 getStringIdentifier ()
 
 getExportObjIdForResourceId (int $resource_id)
 

Protected Attributes

const STR_IDENTIFIER = "blog"
 
ilSetting $setting
 
ilLanguage $lng
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Blog type

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilExAssTypeBlog.php.

Constructor & Destructor Documentation

◆ __construct()

ilExAssTypeBlog::__construct ( ?ilSetting  $a_setting = null,
?ilLanguage  $a_lng = null 
)

Constructor.

Parameters
ilSetting | null$a_setting
ilLanguage | null$a_lng

Definition at line 37 of file class.ilExAssTypeBlog.php.

References $DIC, and ILIAS\Repository\lng().

38  {
39  global $DIC;
40 
41  $this->setting = ($a_setting)
42  ?: $DIC["ilSetting"];
43 
44  $this->lng = ($a_lng)
45  ?: $DIC->language();
46  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ cloneSpecificProperties()

ilExAssTypeBlog::cloneSpecificProperties ( ilExAssignment  $source,
ilExAssignment  $target 
)

Implements ilExAssignmentTypeInterface.

Definition at line 83 of file class.ilExAssTypeBlog.php.

83  : void
84  {
85  }

◆ getExportObjIdForResourceId()

ilExAssTypeBlog::getExportObjIdForResourceId ( int  $resource_id)

Definition at line 100 of file class.ilExAssTypeBlog.php.

100  : int
101  {
102  // in case of blogs the $resource id is the workspace id
103  $tree = new ilWorkspaceTree(0);
104  $owner = $tree->lookupOwner($resource_id);
105  $tree = new ilWorkspaceTree($owner);
106  return $tree->lookupObjectId($resource_id);
107  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getStringIdentifier()

ilExAssTypeBlog::getStringIdentifier ( )

Implements ilExAssignmentTypeInterface.

Definition at line 92 of file class.ilExAssTypeBlog.php.

92  : string
93  {
94  return self::STR_IDENTIFIER;
95  }

◆ getSubmissionType()

ilExAssTypeBlog::getSubmissionType ( )

Implements ilExAssignmentTypeInterface.

Definition at line 73 of file class.ilExAssTypeBlog.php.

References ilExSubmission\TYPE_OBJECT.

73  : string
74  {
76  }

◆ getTitle()

ilExAssTypeBlog::getTitle ( )

Implements ilExAssignmentTypeInterface.

Definition at line 66 of file class.ilExAssTypeBlog.php.

References $lng, and ilLanguage\txt().

66  : string
67  {
68  $lng = $this->lng;
69 
70  return $lng->txt("exc_type_blog");
71  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
+ Here is the call graph for this function:

◆ isActive()

ilExAssTypeBlog::isActive ( )

Implements ilExAssignmentTypeInterface.

Definition at line 48 of file class.ilExAssTypeBlog.php.

48  : bool
49  {
50  if ($this->setting->get('disable_wsp_blogs')) {
51  return false;
52  }
53  return true;
54  }

◆ isSubmissionAssignedToTeam()

ilExAssTypeBlog::isSubmissionAssignedToTeam ( )

Implements ilExAssignmentTypeInterface.

Definition at line 78 of file class.ilExAssTypeBlog.php.

78  : bool
79  {
80  return false;
81  }

◆ supportsWebDirAccess()

ilExAssTypeBlog::supportsWebDirAccess ( )

Implements ilExAssignmentTypeInterface.

Definition at line 87 of file class.ilExAssTypeBlog.php.

87  : bool
88  {
89  return true;
90  }

◆ usesFileUpload()

ilExAssTypeBlog::usesFileUpload ( )

Implements ilExAssignmentTypeInterface.

Definition at line 61 of file class.ilExAssTypeBlog.php.

61  : bool
62  {
63  return false;
64  }

◆ usesTeams()

ilExAssTypeBlog::usesTeams ( )

Implements ilExAssignmentTypeInterface.

Definition at line 56 of file class.ilExAssTypeBlog.php.

56  : bool
57  {
58  return false;
59  }

Field Documentation

◆ $lng

ilLanguage ilExAssTypeBlog::$lng
protected

Definition at line 29 of file class.ilExAssTypeBlog.php.

Referenced by getTitle().

◆ $setting

ilSetting ilExAssTypeBlog::$setting
protected

Definition at line 28 of file class.ilExAssTypeBlog.php.

◆ STR_IDENTIFIER

const ilExAssTypeBlog::STR_IDENTIFIER = "blog"
protected

Definition at line 26 of file class.ilExAssTypeBlog.php.


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