ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilPortfolioDeclarationOfAuthorship Class Reference

Declaration of authorship (data gateway) More...

+ Collaboration diagram for ilPortfolioDeclarationOfAuthorship:

Public Member Functions

 __construct ()
 Constructor. More...
 
 getForLanguage (string $l)
 Get for language. More...
 
 setForLanguage (string $l, string $value)
 Set for language. More...
 
 getForUser (ilObjUser $user)
 Get for user. More...
 

Protected Attributes

 $prtf_settings
 
 $lng
 

Detailed Description

Declaration of authorship (data gateway)

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

Definition at line 11 of file class.ilPortfolioDeclarationOfAuthorship.php.

Constructor & Destructor Documentation

◆ __construct()

ilPortfolioDeclarationOfAuthorship::__construct ( )

Constructor.

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

References $DIC.

27  {
28  global $DIC;
29 
30  $this->lng = $DIC->language();
31  $this->prtf_settings = new ilSetting("prtf");
32  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ getForLanguage()

ilPortfolioDeclarationOfAuthorship::getForLanguage ( string  $l)

Get for language.

Parameters
string$l
Returns
string

Definition at line 40 of file class.ilPortfolioDeclarationOfAuthorship.php.

Referenced by getForUser().

40  : string
41  {
42  return $this->prtf_settings->get("decl_author_" . $l);
43  }
global $l
Definition: afr.php:30
+ Here is the caller graph for this function:

◆ getForUser()

ilPortfolioDeclarationOfAuthorship::getForUser ( ilObjUser  $user)

Get for user.

Parameters
ilObjUser$user
Returns
string

Definition at line 63 of file class.ilPortfolioDeclarationOfAuthorship.php.

References $lng, getForLanguage(), and ilObjUser\getLanguage().

63  : string
64  {
65  $lng = $this->lng;
66 
67  $decl = $this->getForLanguage($user->getLanguage());
68  if ($decl == "") {
69  $decl = $this->getForLanguage($lng->getDefaultLanguage());
70  }
71  return $decl;
72  }
getLanguage()
returns a 2char-language-string public
+ Here is the call graph for this function:

◆ setForLanguage()

ilPortfolioDeclarationOfAuthorship::setForLanguage ( string  $l,
string  $value 
)

Set for language.

Parameters
string$l
string$value
Returns
string

Definition at line 52 of file class.ilPortfolioDeclarationOfAuthorship.php.

52  : string
53  {
54  return $this->prtf_settings->set("decl_author_" . $l, $value);
55  }
global $l
Definition: afr.php:30

Field Documentation

◆ $lng

ilPortfolioDeclarationOfAuthorship::$lng
protected

Definition at line 21 of file class.ilPortfolioDeclarationOfAuthorship.php.

Referenced by getForUser().

◆ $prtf_settings

ilPortfolioDeclarationOfAuthorship::$prtf_settings
protected

Definition at line 16 of file class.ilPortfolioDeclarationOfAuthorship.php.


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