📄 templatedemailcommunication.phpm
字号:
<?class TemplatedEmailCommunication extends EmailCommunication { private $path_to_template_file; private $objSmarty; public function __construct($strPathToTemplateFile) { $this->objSmarty = new Smarty; $this->path_to_template_file = $strPathToTemplateFile; parent::__construct(); } public function setParameter($strParameter, $strValue) { $this->objSmarty->assign($strParameter, $strValue); } public function parse() { $this->setMessageBody($this->objSmarty->fetch($this->path_to_template_file)); } }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -