• Main Page
  • Modules
  • Classes
  • Files
  • File List

classes/note/Note.inc.php

00001 <?php
00002 
00015 /* Notification associative types. */
00016 define('NOTE_TYPE_EDITOR_TO_REVIEWER', 0x1000001);
00017 define('NOTE_TYPE_SUBMISSION_ACCEPTED', 0x1000002);
00018 define('NOTE_TYPE_SUBMISSION_DECLINED', 0x1000003);
00019 define('NOTE_TYPE_COPYEDITING_FILE',   0x1000004);
00020 
00021 import('lib.pkp.classes.note.PKPNote');
00022 
00023 class Note extends PKPNote {
00027    function Note() {
00028       parent::PKPNote();
00029    }
00030 
00034    function markViewed($userId) {
00035       $viewsDao =& DAORegistry::getDAO('ViewsDAO');
00036       $viewsDao->recordView(ASSOC_TYPE_NOTE, $this->getId(), $userId);
00037    }
00038 }
00039 
00040 ?>

Generated on Mon Sep 17 2012 13:58:55 for Open Monograph Press by  doxygen 1.7.1