work/extend/sms/submail/lib/messagetemplatedelete.php
2019-01-17 11:05:47 +08:00

28 lines
701 B
PHP

<?PHP
class MESSAGETemplateDELETE{
protected $configs;
protected $template_id='';
function __construct($configs){
$this->configs=$configs;
}
public function SetTemplate($template_id){
$this->template_id=trim($template_id);
}
public function buildRequest(){
$request=array();
$request['template_id']=$this->template_id;
return $request;
}
public function deleteTemplate(){
$message=new message($this->configs);
return $message->deleteTemplate($this->buildRequest());
}
}