| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace ModulesGarden\Servers\ProxmoxCloudVps\Core\FileReader\Reader;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\ServiceLocator;
- /**
- * Description of Json
- *
- * @author Rafał Ossowski <rafal.os@modulesgarden.com>
- */
- class Html extends AbstractType
- {
- protected function loadFile()
- {
- $return = '';
- try
- {
- if (file_exists($this->path . DS . $this->file))
- {
- $return = file_get_contents($this->path . DS . $this->file);
- foreach ($this->renderData as $key => $value)
- {
- $return = str_replace("#$key#", $value, $return);
- }
- }
- }
- catch (\Exception $e)
- {
- ServiceLocator::call('errorManager')->addError(self::class, $e->getMessage(), $e->getTrace());
- }
- $this->data = $return;
- }
- }
|