ILIAS  release_8 Revision v8.23
ForumDto Class Reference
+ Collaboration diagram for ForumDto:

Public Member Functions

 getTopPk ()
 
 setTopPk (int $top_pk)
 
 getTopFrmFk ()
 
 setTopFrmFk (int $top_frm_fk)
 
 getTopName ()
 
 setTopName (string $top_name)
 
 getTopDescription ()
 
 setTopDescription (string $top_description)
 
 getTopNumPosts ()
 
 setTopNumPosts (int $top_num_posts)
 
 getTopNumThreads ()
 
 setTopNumThreads (int $top_num_threads)
 
 getTopLastPost ()
 
 setTopLastPost (?string $top_last_post)
 
 getTopMods ()
 
 setTopMods (int $top_mods)
 
 getTopDate ()
 
 setTopDate (?string $top_date)
 
 getVisits ()
 
 setVisits (int $visits)
 
 getTopUpdate ()
 
 setTopUpdate (?string $top_update)
 
 getUpdateUser ()
 
 setUpdateUser (int $update_user)
 
 getTopUsrId ()
 
 setTopUsrId (int $top_usr_id)
 

Static Public Member Functions

static getInstanceFromArray (array $record)
 
static getEmptyInstance ()
 

Private Attributes

int $top_pk
 
int $top_frm_fk
 
string $top_name
 
string $top_description
 
int $top_num_posts
 
int $top_num_threads
 
string $top_last_post = null
 
int $top_mods
 
string $top_date = null
 
int $visits
 
string $top_update = null
 
int $update_user
 
int $top_usr_id
 

Detailed Description

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

Member Function Documentation

◆ getEmptyInstance()

static ForumDto::getEmptyInstance ( )
static

Definition at line 188 of file class.ForumDto.php.

Referenced by ilForum\getOneTopic().

188  : self
189  {
190  return new self();
191  }
+ Here is the caller graph for this function:

◆ getInstanceFromArray()

static ForumDto::getInstanceFromArray ( array  $record)
static

Definition at line 167 of file class.ForumDto.php.

Referenced by ilForum\getOneTopic().

167  : self
168  {
169  $instance = new self();
170 
171  $instance->setTopPk((int) $record['top_pk']);
172  $instance->setTopFrmFk((int) $record['top_frm_fk']);
173  $instance->setTopName((string) $record['top_name']);
174  $instance->setTopDescription((string) $record['top_description']);
175  $instance->setTopNumPosts((int) $record['top_num_posts']);
176  $instance->setTopNumThreads((int) $record['top_num_threads']);
177  $instance->setTopLastPost($record['top_last_post']);
178  $instance->setTopMods((int) $record['top_mods']);
179  $instance->setTopDate($record['top_date']);
180  $instance->setVisits((int) $record['visits']);
181  $instance->setTopUpdate($record['top_update']);
182  $instance->setUpdateUser((int) $record['update_user']);
183  $instance->setTopUsrId((int) $record['top_usr_id']);
184 
185  return $instance;
186  }
+ Here is the caller graph for this function:

◆ getTopDate()

ForumDto::getTopDate ( )

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

References $top_date.

117  : ?string
118  {
119  return $this->top_date;
120  }
string $top_date

◆ getTopDescription()

ForumDto::getTopDescription ( )

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

References $top_description.

67  : string
68  {
70  }
string $top_description

◆ getTopFrmFk()

ForumDto::getTopFrmFk ( )

Definition at line 47 of file class.ForumDto.php.

References $top_frm_fk.

47  : int
48  {
49  return $this->top_frm_fk;
50  }

◆ getTopLastPost()

ForumDto::getTopLastPost ( )

Definition at line 97 of file class.ForumDto.php.

References $top_last_post.

97  : ?string
98  {
99  return $this->top_last_post;
100  }
string $top_last_post

◆ getTopMods()

ForumDto::getTopMods ( )

Definition at line 107 of file class.ForumDto.php.

References $top_mods.

107  : int
108  {
109  return $this->top_mods;
110  }

◆ getTopName()

ForumDto::getTopName ( )

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

References $top_name.

57  : string
58  {
59  return $this->top_name;
60  }
string $top_name

◆ getTopNumPosts()

ForumDto::getTopNumPosts ( )

Definition at line 77 of file class.ForumDto.php.

References $top_num_posts.

77  : int
78  {
79  return $this->top_num_posts;
80  }
int $top_num_posts

◆ getTopNumThreads()

ForumDto::getTopNumThreads ( )

Definition at line 87 of file class.ForumDto.php.

References $top_num_threads.

87  : int
88  {
90  }
int $top_num_threads

◆ getTopPk()

ForumDto::getTopPk ( )

Definition at line 37 of file class.ForumDto.php.

References $top_pk.

37  : int
38  {
39  return $this->top_pk;
40  }

◆ getTopUpdate()

ForumDto::getTopUpdate ( )

Definition at line 137 of file class.ForumDto.php.

References $top_update.

137  : ?string
138  {
139  return $this->top_update;
140  }
string $top_update

◆ getTopUsrId()

ForumDto::getTopUsrId ( )

Definition at line 157 of file class.ForumDto.php.

References $top_usr_id.

157  : int
158  {
159  return $this->top_usr_id;
160  }

◆ getUpdateUser()

ForumDto::getUpdateUser ( )

Definition at line 147 of file class.ForumDto.php.

References $update_user.

147  : int
148  {
149  return $this->update_user;
150  }
int $update_user

◆ getVisits()

ForumDto::getVisits ( )

Definition at line 127 of file class.ForumDto.php.

References $visits.

127  : int
128  {
129  return $this->visits;
130  }

◆ setTopDate()

ForumDto::setTopDate ( ?string  $top_date)

Definition at line 122 of file class.ForumDto.php.

References $top_date.

122  : void
123  {
124  $this->top_date = $top_date;
125  }
string $top_date

◆ setTopDescription()

ForumDto::setTopDescription ( string  $top_description)

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

72  : void
73  {
74  $this->top_description = nl2br($top_description);
75  }
string $top_description

◆ setTopFrmFk()

ForumDto::setTopFrmFk ( int  $top_frm_fk)

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

References $top_frm_fk.

52  : void
53  {
54  $this->top_frm_fk = $top_frm_fk;
55  }

◆ setTopLastPost()

ForumDto::setTopLastPost ( ?string  $top_last_post)

Definition at line 102 of file class.ForumDto.php.

References $top_last_post.

102  : void
103  {
104  $this->top_last_post = $top_last_post;
105  }
string $top_last_post

◆ setTopMods()

ForumDto::setTopMods ( int  $top_mods)

Definition at line 112 of file class.ForumDto.php.

References $top_mods.

112  : void
113  {
114  $this->top_mods = $top_mods;
115  }

◆ setTopName()

ForumDto::setTopName ( string  $top_name)

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

62  : void
63  {
64  $this->top_name = trim($top_name);
65  }
string $top_name

◆ setTopNumPosts()

ForumDto::setTopNumPosts ( int  $top_num_posts)

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

References $top_num_posts.

82  : void
83  {
84  $this->top_num_posts = $top_num_posts;
85  }
int $top_num_posts

◆ setTopNumThreads()

ForumDto::setTopNumThreads ( int  $top_num_threads)

Definition at line 92 of file class.ForumDto.php.

References $top_num_threads.

92  : void
93  {
94  $this->top_num_threads = $top_num_threads;
95  }
int $top_num_threads

◆ setTopPk()

ForumDto::setTopPk ( int  $top_pk)

Definition at line 42 of file class.ForumDto.php.

References $top_pk.

42  : void
43  {
44  $this->top_pk = $top_pk;
45  }

◆ setTopUpdate()

ForumDto::setTopUpdate ( ?string  $top_update)

Definition at line 142 of file class.ForumDto.php.

References $top_update.

142  : void
143  {
144  $this->top_update = $top_update;
145  }
string $top_update

◆ setTopUsrId()

ForumDto::setTopUsrId ( int  $top_usr_id)

Definition at line 162 of file class.ForumDto.php.

References $top_usr_id.

162  : void
163  {
164  $this->top_usr_id = $top_usr_id;
165  }

◆ setUpdateUser()

ForumDto::setUpdateUser ( int  $update_user)

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

References $update_user.

152  : void
153  {
154  $this->update_user = $update_user;
155  }
int $update_user

◆ setVisits()

ForumDto::setVisits ( int  $visits)

Definition at line 132 of file class.ForumDto.php.

References $visits.

132  : void
133  {
134  $this->visits = $visits;
135  }

Field Documentation

◆ $top_date

string ForumDto::$top_date = null
private

Definition at line 31 of file class.ForumDto.php.

Referenced by getTopDate(), and setTopDate().

◆ $top_description

string ForumDto::$top_description
private

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

Referenced by getTopDescription().

◆ $top_frm_fk

int ForumDto::$top_frm_fk
private

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

Referenced by getTopFrmFk(), and setTopFrmFk().

◆ $top_last_post

string ForumDto::$top_last_post = null
private

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

Referenced by getTopLastPost(), and setTopLastPost().

◆ $top_mods

int ForumDto::$top_mods
private

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

Referenced by getTopMods(), and setTopMods().

◆ $top_name

string ForumDto::$top_name
private

Definition at line 25 of file class.ForumDto.php.

Referenced by getTopName().

◆ $top_num_posts

int ForumDto::$top_num_posts
private

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

Referenced by getTopNumPosts(), and setTopNumPosts().

◆ $top_num_threads

int ForumDto::$top_num_threads
private

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

Referenced by getTopNumThreads(), and setTopNumThreads().

◆ $top_pk

int ForumDto::$top_pk
private

Definition at line 23 of file class.ForumDto.php.

Referenced by getTopPk(), and setTopPk().

◆ $top_update

string ForumDto::$top_update = null
private

Definition at line 33 of file class.ForumDto.php.

Referenced by getTopUpdate(), and setTopUpdate().

◆ $top_usr_id

int ForumDto::$top_usr_id
private

Definition at line 35 of file class.ForumDto.php.

Referenced by getTopUsrId(), and setTopUsrId().

◆ $update_user

int ForumDto::$update_user
private

Definition at line 34 of file class.ForumDto.php.

Referenced by getUpdateUser(), and setUpdateUser().

◆ $visits

int ForumDto::$visits
private

Definition at line 32 of file class.ForumDto.php.

Referenced by getVisits(), and setVisits().


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