You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
877 B
54 lines
877 B
<?php
|
|
|
|
class NoticeTask
|
|
{
|
|
/**
|
|
* 邮件发送者
|
|
*/
|
|
private $noticeList = "";
|
|
/**
|
|
* 邮件接收者
|
|
*/
|
|
private $noticeTitle = "";
|
|
/**
|
|
* 邮件主题
|
|
*/
|
|
private $noticeUrl = "";
|
|
|
|
public function __construct($param)
|
|
{
|
|
// TCP port to connect to
|
|
$this->noticeList = $param["noticeList"];
|
|
$this->noticeTitle = $param["noticeTitle"];
|
|
$this->noticeUrl = $param["noticeUrl"];
|
|
}
|
|
|
|
public function doTask()
|
|
{
|
|
|
|
return 0;
|
|
// return $mailString;
|
|
}
|
|
|
|
/**
|
|
* 设置任务的属性
|
|
* @param $objProperty
|
|
*/
|
|
public function setTaskProperty($objProperty)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* 任务执行之前
|
|
*/
|
|
public function beforeDoTask()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* 任务执行之后
|
|
*/
|
|
public function afterDoTask()
|
|
{
|
|
}
|
|
}
|
|
|