Server IP : 192.64.118.117 / Your IP : 3.136.20.207 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/local/lsws/add-ons/webcachemgr/src/View/Model/ |
Upload File : |
<?php /* * ****************************************** * LiteSpeed Web Server Cache Manager * @author: LiteSpeed Technologies, Inc. (https://www.litespeedtech.com) * @copyright: (c) 2018-2019 * ******************************************* */ namespace Lsc\Wp\View\Model; use \Lsc\Wp\Context\Context; class MissingTplViewModel { const FLD_MSG = 'msg'; /** * @var string[] */ private $tplData = array(); /** * * @param string $msg */ public function __construct( $msg ) { $this->init($msg); } private function init( $msg ) { $this->tplData[self::FLD_MSG] = $msg; } /** * * @param string $field * @return null|string */ public function getTplData( $field ) { if ( !isset($this->tplData[$field]) ) { return null; } return $this->tplData[$field]; } public function getTpl() { return Context::getOption()->getSharedTplDir() . '/MissingTpl.tpl'; } }