ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilExAssTypeBlog Class Reference

Blog type. More...

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

Public Member Functions

 __construct (ilSetting $a_setting=null, ilLanguage $a_lng=null)
 Constructor. More...
 
 isActive ()
 Is assignment type active?
Returns
bool
More...
 
 usesTeams ()
 Uses teams.
Returns
bool
More...
 
 usesFileUpload ()
 Uses file upload.
Returns
bool
More...
 
 getTitle ()
 Get title of type.
Returns
string
More...
 
 getSubmissionType ()
 Get submission type.
Returns
string
More...
 
 isSubmissionAssignedToTeam ()
 Get submission type.
Returns
string
More...
 
 cloneSpecificProperties (ilExAssignment $source, ilExAssignment $target)
 Clone type specific properties of an assignment.
Parameters
ilExAssignment$source
ilExAssignment$target
More...
 
 supportsWebDirAccess ()
 Returns if the submission has support to web access directory.
Returns
bool
More...
 
 getStringIdentifier ()
 Returns the short string identifier. More...
 

Protected Attributes

 $setting
 
 $lng
 

Detailed Description

Blog type.

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

Definition at line 10 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 28 of file class.ilExAssTypeBlog.php.

References $DIC.

29  {
30  global $DIC;
31 
32  $this->setting = ($a_setting)
33  ? $a_setting
34  : $DIC["ilSetting"];
35 
36  $this->lng = ($a_lng)
37  ? $a_lng
38  : $DIC->language();
39  }
global $DIC
Definition: goto.php:24

Member Function Documentation

◆ cloneSpecificProperties()

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

Clone type specific properties of an assignment.

Parameters
ilExAssignment$source
ilExAssignment$target

Implements ilExAssignmentTypeInterface.

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

99  {
100  }

◆ getStringIdentifier()

ilExAssTypeBlog::getStringIdentifier ( )

Returns the short string identifier.

Returns
string

Implements ilExAssignmentTypeInterface.

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

110  : string
111  {
112  // TODO: Implement getSubmissionStringIdentifier() method.
113  }

◆ getSubmissionType()

ilExAssTypeBlog::getSubmissionType ( )

Get submission type.

Returns
string

Implements ilExAssignmentTypeInterface.

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

References ilExSubmission\TYPE_OBJECT.

83  {
85  }

◆ getTitle()

ilExAssTypeBlog::getTitle ( )

Get title of type.

Returns
string

Implements ilExAssignmentTypeInterface.

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

References $lng.

73  {
74  $lng = $this->lng;
75 
76  return $lng->txt("exc_type_blog");
77  }

◆ isActive()

ilExAssTypeBlog::isActive ( )

Is assignment type active?

Returns
bool

Implements ilExAssignmentTypeInterface.

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

45  {
46  if ($this->setting->get('disable_wsp_blogs')) {
47  return false;
48  }
49  return true;
50  }

◆ isSubmissionAssignedToTeam()

ilExAssTypeBlog::isSubmissionAssignedToTeam ( )

Get submission type.

Returns
string

Implements ilExAssignmentTypeInterface.

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

91  {
92  return false;
93  }

◆ supportsWebDirAccess()

ilExAssTypeBlog::supportsWebDirAccess ( )

Returns if the submission has support to web access directory.

Returns
bool

Implements ilExAssignmentTypeInterface.

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

105  : bool
106  {
107  return false;
108  }

◆ usesFileUpload()

ilExAssTypeBlog::usesFileUpload ( )

Uses file upload.

Returns
bool

Implements ilExAssignmentTypeInterface.

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

65  {
66  return false;
67  }

◆ usesTeams()

ilExAssTypeBlog::usesTeams ( )

Uses teams.

Returns
bool

Implements ilExAssignmentTypeInterface.

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

57  {
58  return false;
59  }

Field Documentation

◆ $lng

ilExAssTypeBlog::$lng
protected

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

Referenced by getTitle().

◆ $setting

ilExAssTypeBlog::$setting
protected

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


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