ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 @inheritDoc More...
 
 isActive ()
 
 usesTeams ()
 
 usesFileUpload ()
 
 getTitle ()
 
 getSubmissionType ()
 
 isSubmissionAssignedToTeam ()
 
 cloneSpecificProperties (ilExAssignment $source, ilExAssignment $target)
 
 supportsWebDirAccess ()
 
 getStringIdentifier ()
 

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.

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:26

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

+ 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)

@inheritDoc

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 {
95 }

References STR_IDENTIFIER.

◆ getSubmissionType()

ilExAssTypeBlog::getSubmissionType ( )

Implements ilExAssignmentTypeInterface.

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

73 : string
74 {
76 }

References ilExSubmission\TYPE_OBJECT.

◆ getTitle()

ilExAssTypeBlog::getTitle ( )

Implements ilExAssignmentTypeInterface.

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

66 : string
67 {
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...

References $lng, and ilLanguage\txt().

+ 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.

Referenced by getStringIdentifier().


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