ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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.

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

References $DIC.

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.

40 : string
41 {
42 return $this->prtf_settings->get("decl_author_" . $l);
43 }

Referenced by getForUser().

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

63 : string
64 {
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 @access public

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

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

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: