mailtransportconfighandler.class.php

来自「ProjectPier 源码 很好的项目管理程序」· PHP 代码 · 共 32 行

PHP
32
字号
<?php  /**  * Select mail transport (mail or SMPT currently)  *  * @version 1.0  * @http://www.projectpier.org/  */  class MailTransportConfigHandler extends ConfigHandler {      /**    * Render form control    *    * @param string $control_name    * @return string    */    function render($control_name) {      $options = array();            $option_attributes = $this->getValue() == 'mail()' ? array('selected' => 'selected') : null;      $options[] = option_tag(lang('mail transport mail()'), 'mail()', $option_attributes);            $option_attributes = $this->getValue() == 'smtp' ? array('selected' => 'selected') : null;      $options[] = option_tag(lang('mail transport smtp'), 'smtp', $option_attributes);            return select_box($control_name, $options);    } // render    } // MailTransportConfigHandler?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?