예제 #1
0
 public function __construct(dialogue $dialogue = null, conversation $conversation = null, $messageid = null)
 {
     parent::__construct($dialogue, $conversation);
     if ($messageid) {
         if (!is_int($messageid)) {
             throw new \coding_exception('$messageid must be an interger');
         }
         $this->_messageid = $messageid;
         $this->load();
     }
 }
 /**
  *
  * @global type $DB
  * @param dialogue $dialogue
  * @param type $conversationid
  */
 public function __construct(dialogue $dialogue, $conversationid = null)
 {
     global $DB;
     parent::__construct($dialogue, $this);
     $this->_conversationindex = 1;
     if ($conversationid) {
         if (!is_int($conversationid)) {
             throw new \coding_exception('$conversationid must be an interger');
         }
         $this->_conversationid = $conversationid;
         $this->load();
     }
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     //todo: determine if the modulename property is still needed
     $this->modulename = 'curriculum';
     $this->component = 'local_elisprogram';
     $this->defname = "notify_pm";
     $site = get_site();
     $this->defsubject = "Message Event from {$site->fullname}";
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->modulename = 'curriculum';
     $this->component = 'notifications';
     $this->defname = "message";
     $site = get_site();
     $this->defsubject = "Message Event from {$site->fullname}";
 }