ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Survey\Code\Code Class Reference

Code data class. More...

+ Collaboration diagram for ILIAS\Survey\Code\Code:

Public Member Functions

 __construct (string $code)
 
 getCode ()
 
 getFirstName ()
 
 getLastName ()
 
 getEmail ()
 
 getUserKey ()
 
 getSurveyId ()
 
 getId ()
 
 getUserId ()
 
 getSent ()
 
 getTimestamp ()
 
 withId (int $id)
 
 withSurveyId (int $id)
 
 withUserKey (string $user_key)
 
 withUserId (int $user_id)
 
 withTimestamp (int $tstamp)
 
 withSent (int $sent)
 
 withEmail (string $email)
 
 withFirstName (string $first_name)
 
 withLastName (string $last_name)
 

Protected Attributes

string $code = ""
 
string $user_key = null
 
string $email = ""
 
string $last_name = ""
 
string $first_name = ""
 
int $id = 0
 
int $user_id = 0
 
int $survey_id = 0
 
int $tstamp = 0
 
int $sent = 0
 

Detailed Description

Code data class.

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

Definition at line 27 of file class.Code.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Survey\Code\Code::__construct ( string  $code)

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

References ILIAS\Survey\Code\Code\$code.

42  {
43  $this->code = $code;
44  }

Member Function Documentation

◆ getCode()

ILIAS\Survey\Code\Code::getCode ( )

Definition at line 46 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code.

Referenced by ILIAS\Survey\Code\CodeManager\add().

46  : string
47  {
48  return $this->code;
49  }
+ Here is the caller graph for this function:

◆ getEmail()

ILIAS\Survey\Code\Code::getEmail ( )

Definition at line 61 of file class.Code.php.

References ILIAS\Survey\Code\Code\$email.

Referenced by ILIAS\Survey\Code\CodeManager\add().

61  : string
62  {
63  return $this->email;
64  }
+ Here is the caller graph for this function:

◆ getFirstName()

ILIAS\Survey\Code\Code::getFirstName ( )

Definition at line 51 of file class.Code.php.

References ILIAS\Survey\Code\Code\$first_name.

Referenced by ILIAS\Survey\Code\CodeManager\add().

51  : string
52  {
53  return $this->first_name;
54  }
+ Here is the caller graph for this function:

◆ getId()

ILIAS\Survey\Code\Code::getId ( )

Definition at line 76 of file class.Code.php.

References ILIAS\Survey\Code\Code\$id.

76  : int
77  {
78  return $this->id;
79  }

◆ getLastName()

ILIAS\Survey\Code\Code::getLastName ( )

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

References ILIAS\Survey\Code\Code\$last_name.

Referenced by ILIAS\Survey\Code\CodeManager\add().

56  : string
57  {
58  return $this->last_name;
59  }
+ Here is the caller graph for this function:

◆ getSent()

ILIAS\Survey\Code\Code::getSent ( )

Definition at line 86 of file class.Code.php.

References ILIAS\Survey\Code\Code\$sent.

Referenced by ILIAS\Survey\Code\CodeManager\add().

86  : int
87  {
88  return $this->sent;
89  }
+ Here is the caller graph for this function:

◆ getSurveyId()

ILIAS\Survey\Code\Code::getSurveyId ( )

Definition at line 71 of file class.Code.php.

References ILIAS\Survey\Code\Code\$survey_id.

71  : int
72  {
73  return $this->survey_id;
74  }

◆ getTimestamp()

ILIAS\Survey\Code\Code::getTimestamp ( )

Definition at line 91 of file class.Code.php.

References ILIAS\Survey\Code\Code\$tstamp.

Referenced by ILIAS\Survey\Code\CodeManager\add().

91  : int
92  {
93  return $this->tstamp;
94  }
+ Here is the caller graph for this function:

◆ getUserId()

ILIAS\Survey\Code\Code::getUserId ( )

Definition at line 81 of file class.Code.php.

References ILIAS\Survey\Code\Code\$user_id.

Referenced by ILIAS\Survey\Code\CodeManager\add().

81  : int
82  {
83  return $this->user_id;
84  }
+ Here is the caller graph for this function:

◆ getUserKey()

ILIAS\Survey\Code\Code::getUserKey ( )

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

References ILIAS\Survey\Code\Code\$user_key.

66  : string
67  {
68  return $this->user_key;
69  }

◆ withEmail()

ILIAS\Survey\Code\Code::withEmail ( string  $email)

Definition at line 138 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$email.

138  : self
139  {
140  $code = clone $this;
141  $code->email = $email;
142  return $code;
143  }

◆ withFirstName()

ILIAS\Survey\Code\Code::withFirstName ( string  $first_name)

Definition at line 145 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$first_name.

145  : self
146  {
147  $code = clone $this;
148  $code->first_name = $first_name;
149  return $code;
150  }

◆ withId()

ILIAS\Survey\Code\Code::withId ( int  $id)

Definition at line 96 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$id.

96  : self
97  {
98  $code = clone $this;
99  $code->id = $id;
100  return $code;
101  }

◆ withLastName()

ILIAS\Survey\Code\Code::withLastName ( string  $last_name)

Definition at line 152 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$last_name.

152  : self
153  {
154  $code = clone $this;
155  $code->last_name = $last_name;
156  return $code;
157  }

◆ withSent()

ILIAS\Survey\Code\Code::withSent ( int  $sent)

Definition at line 131 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$sent.

131  : self
132  {
133  $code = clone $this;
134  $code->sent = $sent;
135  return $code;
136  }

◆ withSurveyId()

ILIAS\Survey\Code\Code::withSurveyId ( int  $id)

Definition at line 103 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$id.

103  : self
104  {
105  $code = clone $this;
106  $code->survey_id = $id;
107  return $code;
108  }

◆ withTimestamp()

ILIAS\Survey\Code\Code::withTimestamp ( int  $tstamp)

Definition at line 124 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$tstamp.

124  : self
125  {
126  $code = clone $this;
127  $code->tstamp = $tstamp;
128  return $code;
129  }

◆ withUserId()

ILIAS\Survey\Code\Code::withUserId ( int  $user_id)

Definition at line 117 of file class.Code.php.

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$user_id.

117  : self
118  {
119  $code = clone $this;
120  $code->user_id = $user_id;
121  return $code;
122  }

◆ withUserKey()

ILIAS\Survey\Code\Code::withUserKey ( string  $user_key)

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

References ILIAS\Survey\Code\Code\$code, and ILIAS\Survey\Code\Code\$user_key.

110  : self
111  {
112  $code = clone $this;
113  $code->user_key = $user_key;
114  return $code;
115  }

Field Documentation

◆ $code

◆ $email

string ILIAS\Survey\Code\Code::$email = ""
protected

◆ $first_name

string ILIAS\Survey\Code\Code::$first_name = ""
protected

◆ $id

int ILIAS\Survey\Code\Code::$id = 0
protected

◆ $last_name

string ILIAS\Survey\Code\Code::$last_name = ""
protected

◆ $sent

int ILIAS\Survey\Code\Code::$sent = 0
protected

◆ $survey_id

int ILIAS\Survey\Code\Code::$survey_id = 0
protected

Definition at line 36 of file class.Code.php.

Referenced by ILIAS\Survey\Code\Code\getSurveyId().

◆ $tstamp

int ILIAS\Survey\Code\Code::$tstamp = 0
protected

◆ $user_id

int ILIAS\Survey\Code\Code::$user_id = 0
protected

◆ $user_key

string ILIAS\Survey\Code\Code::$user_key = null
protected

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