|
Lines 140-145
class ArticleDAO extends DAO {
|
Link Here
|
|---|
|
| 140 |
*/ |
140 |
*/ |
| 141 |
function _articleFromRow(&$article, &$row) { |
141 |
function _articleFromRow(&$article, &$row) { |
| 142 |
$article->setId($row['article_id']); |
142 |
$article->setId($row['article_id']); |
|
|
143 |
$article->setLocale($row['locale']); |
| 143 |
$article->setUserId($row['user_id']); |
144 |
$article->setUserId($row['user_id']); |
| 144 |
$article->setJournalId($row['journal_id']); |
145 |
$article->setJournalId($row['journal_id']); |
| 145 |
$article->setSectionId($row['section_id']); |
146 |
$article->setSectionId($row['section_id']); |
|
Lines 179-189
class ArticleDAO extends DAO {
|
Link Here
|
|---|
|
| 179 |
$article->stampModified(); |
180 |
$article->stampModified(); |
| 180 |
$this->update( |
181 |
$this->update( |
| 181 |
sprintf('INSERT INTO articles |
182 |
sprintf('INSERT INTO articles |
| 182 |
(user_id, journal_id, section_id, language, comments_to_ed, citations, date_submitted, date_status_modified, last_modified, status, submission_progress, current_round, submission_file_id, revised_file_id, review_file_id, editor_file_id, pages, fast_tracked, hide_author, comments_status) |
183 |
(locale, user_id, journal_id, section_id, language, comments_to_ed, citations, date_submitted, date_status_modified, last_modified, status, submission_progress, current_round, submission_file_id, revised_file_id, review_file_id, editor_file_id, pages, fast_tracked, hide_author, comments_status) |
| 183 |
VALUES |
184 |
VALUES |
| 184 |
(?, ?, ?, ?, ?, ?, %s, %s, %s, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', |
185 |
(?, ?, ?, ?, ?, ?, ?, %s, %s, %s, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', |
| 185 |
$this->datetimeToDB($article->getDateSubmitted()), $this->datetimeToDB($article->getDateStatusModified()), $this->datetimeToDB($article->getLastModified())), |
186 |
$this->datetimeToDB($article->getDateSubmitted()), $this->datetimeToDB($article->getDateStatusModified()), $this->datetimeToDB($article->getLastModified())), |
| 186 |
array( |
187 |
array( |
|
|
188 |
$article->getLocale(), |
| 187 |
$article->getUserId(), |
189 |
$article->getUserId(), |
| 188 |
$article->getJournalId(), |
190 |
$article->getJournalId(), |
| 189 |
$article->getSectionId(), |
191 |
$article->getSectionId(), |