怎么配置Magento2 system.xml dateTime时间

技术怎么配置Magento2 system.xml dateTime时间这篇文章主要讲解了“怎么配置Magento2 system.xml dateTime时间”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小

这篇文章主要讲解了"怎么配置Magento2 system.xml dateTime时间",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"怎么配置Magento2 system.xml dateTime时间"吧!

配置:

怎么配置Magento2 system.xml  dateTime时间

效果:

怎么配置Magento2 system.xml  dateTime时间

DateTime文件内容:

?服务器端编程语言(专业超文本预处理器的缩写)

命名空间寡头\售前\块\管理html \系统\配置;

类日期时间扩展\ Magento \ Config \ Block \ System \ Config \ Form \ Field

{

受保护的$时区;

公共函数_ _构造(

\ Magento \后端\块\模板\上下文$上下文,

\ Magento \ Framework \ Stdlib \ Datetime \ time zone interface $时区,

array $data=[]

) {

$ this-时区=$时区;

parent : _ _ construct($ context,$ data);

}

公共函数呈现(\ Magento \ Framework \数据\表单\元素\抽象元素$元素)

{

$ element-SetDateformat($ this-时区-GetDateformat());

$ element-setTimeFormat($ this-时区-getTimeFormat());

$ element-setShowsTime(true);

返回父: render($ element);

}

}

感谢各位的阅读,以上就是"怎么配置Magento2 system.xml dateTime时间"的内容了,经过本文的学习后,相信大家对怎么配置Magento2 system.xml dateTime时间这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是,小编将为大家推送更多相关知识点的文章,欢迎关注!

内容来源网络,如有侵权,联系删除,本文地址:https://www.230890.com/zhan/85711.html

(0)

相关推荐