Apps/Model/Api/Comments/CommentAnswerAdd.php 1 location
|
@@ 94-105 (lines=12) @@
|
91 |
|
* Add comment answer to database and return active record object |
92 |
|
* @return CommentAnswer |
93 |
|
*/ |
94 |
|
public function buildRecord() |
95 |
|
{ |
96 |
|
$record = new CommentAnswer(); |
97 |
|
$record->comment_id = $this->replayTo; |
98 |
|
$record->user_id = $this->_userId; |
99 |
|
$record->guest_name = $this->guestName; |
100 |
|
$record->message = $this->message; |
101 |
|
$record->ip = $this->ip; |
102 |
|
$record->save(); |
103 |
|
|
104 |
|
return $record; |
105 |
|
} |
106 |
|
|
107 |
|
} |
Apps/Model/Api/Comments/CommentPostAdd.php 1 location
|
@@ 99-110 (lines=12) @@
|
96 |
|
* Insert new comment in table and return active record object |
97 |
|
* @return CommentPost |
98 |
|
*/ |
99 |
|
public function buildRecord() |
100 |
|
{ |
101 |
|
$record = new CommentPost(); |
102 |
|
$record->pathway = $this->pathway; |
103 |
|
$record->user_id = $this->_userId; |
104 |
|
$record->guest_name = $this->guestName; |
105 |
|
$record->message = $this->message; |
106 |
|
$record->lang = App::$Request->getLanguage(); |
107 |
|
$record->save(); |
108 |
|
|
109 |
|
return $record; |
110 |
|
} |
111 |
|
} |