ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilExAssTypePortfolio 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 ilExAssTypePortfolio:
+ Collaboration diagram for ilExAssTypePortfolio:

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 = "prtf"
 
ilSetting $setting
 
ilLanguage $lng
 
string $identifier_str
 

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 Portfolio type

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

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

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

Parameters
ilSetting | null$a_setting
ilLanguage | null$a_lng

Definition at line 38 of file class.ilExAssTypePortfolio.php.

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

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

Member Function Documentation

◆ cloneSpecificProperties()

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

Implements ilExAssignmentTypeInterface.

Definition at line 84 of file class.ilExAssTypePortfolio.php.

84  : void
85  {
86  }

◆ getExportObjIdForResourceId()

ilExAssTypePortfolio::getExportObjIdForResourceId ( int  $resource_id)

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

98  : int
99  {
100  return $resource_id;
101  }

◆ getStringIdentifier()

ilExAssTypePortfolio::getStringIdentifier ( )

Implements ilExAssignmentTypeInterface.

Definition at line 93 of file class.ilExAssTypePortfolio.php.

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

◆ getSubmissionType()

ilExAssTypePortfolio::getSubmissionType ( )

Implements ilExAssignmentTypeInterface.

Definition at line 74 of file class.ilExAssTypePortfolio.php.

References ilExSubmission\TYPE_OBJECT.

74  : string
75  {
77  }

◆ getTitle()

ilExAssTypePortfolio::getTitle ( )

Implements ilExAssignmentTypeInterface.

Definition at line 67 of file class.ilExAssTypePortfolio.php.

References $lng, and ilLanguage\txt().

67  : string
68  {
69  $lng = $this->lng;
70 
71  return $lng->txt("exc_type_portfolio");
72  }
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()

ilExAssTypePortfolio::isActive ( )

Implements ilExAssignmentTypeInterface.

Definition at line 49 of file class.ilExAssTypePortfolio.php.

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

◆ isSubmissionAssignedToTeam()

ilExAssTypePortfolio::isSubmissionAssignedToTeam ( )

Implements ilExAssignmentTypeInterface.

Definition at line 79 of file class.ilExAssTypePortfolio.php.

79  : bool
80  {
81  return false;
82  }

◆ supportsWebDirAccess()

ilExAssTypePortfolio::supportsWebDirAccess ( )

Implements ilExAssignmentTypeInterface.

Definition at line 88 of file class.ilExAssTypePortfolio.php.

88  : bool
89  {
90  return true;
91  }

◆ usesFileUpload()

ilExAssTypePortfolio::usesFileUpload ( )

Implements ilExAssignmentTypeInterface.

Definition at line 62 of file class.ilExAssTypePortfolio.php.

62  : bool
63  {
64  return false;
65  }

◆ usesTeams()

ilExAssTypePortfolio::usesTeams ( )

Implements ilExAssignmentTypeInterface.

Definition at line 57 of file class.ilExAssTypePortfolio.php.

57  : bool
58  {
59  return false;
60  }

Field Documentation

◆ $identifier_str

string ilExAssTypePortfolio::$identifier_str
protected

Definition at line 30 of file class.ilExAssTypePortfolio.php.

◆ $lng

ilLanguage ilExAssTypePortfolio::$lng
protected

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

Referenced by getTitle().

◆ $setting

ilSetting ilExAssTypePortfolio::$setting
protected

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

◆ STR_IDENTIFIER

const ilExAssTypePortfolio::STR_IDENTIFIER = "prtf"
protected

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


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