コード例 #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();
     }
 }
コード例 #2
0
 /**
  *
  * @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
ファイル: notifications.php プロジェクト: jamesmcq/elis
 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}";
 }