Dokumenteninfo wird jetzt in DB geschrieben.
This commit is contained in:
BIN
com_eis/src/View/.DS_Store
vendored
Normal file
BIN
com_eis/src/View/.DS_Store
vendored
Normal file
Binary file not shown.
32
com_eis/src/View/Config/HtmlView.php
Normal file
32
com_eis/src/View/Config/HtmlView.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
namespace EIS\Component\EIS\Administrator\View\Config;
|
||||
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
|
||||
use Joomla\CMS\Factory;
|
||||
|
||||
class HtmlView extends BaseHtmlView
|
||||
{
|
||||
protected $form;
|
||||
protected $item;
|
||||
|
||||
public function display($tpl = null): void
|
||||
{
|
||||
$db = Factory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select('*')
|
||||
->from($db->quoteName('#__eis_settings'))
|
||||
->setLimit(1);
|
||||
|
||||
$db->setQuery($query);
|
||||
$this->item = $db->loadAssoc();
|
||||
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
public function getItem()
|
||||
{
|
||||
return $this->item;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user