mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-17 22:18:40 +00:00
Draft audit diff
This commit is contained in:
parent
7c7558ba27
commit
b5f72879f5
|
|
@ -69,8 +69,8 @@ final class BackendController extends Controller
|
||||||
$view->setTemplate('/Modules/Auditor/Theme/Backend/audit-single');
|
$view->setTemplate('/Modules/Auditor/Theme/Backend/audit-single');
|
||||||
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1006201001, $request, $response));
|
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1006201001, $request, $response));
|
||||||
|
|
||||||
$list = AuditMapper::get(50);
|
$audit = AuditMapper::get((int) $request->getData('id'));
|
||||||
$view->setData('audits', $list);
|
$view->setData('audit', $audit);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
27
Models/NullAudit.php
Normal file
27
Models/NullAudit.php
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.2
|
||||||
|
*
|
||||||
|
* @package Modules\Auditor
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://website.orange-management.de
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Modules\Auditor\Models;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Null class.
|
||||||
|
*
|
||||||
|
* @package Modules\Auditor
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link http://website.orange-management.de
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
class NullAudit extends Audit
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
@ -15,3 +15,4 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo $this->getData('nav')->render();
|
echo $this->getData('nav')->render();
|
||||||
|
?>
|
||||||
|
|
|
||||||
|
|
@ -15,3 +15,5 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo $this->getData('nav')->render();
|
echo $this->getData('nav')->render();
|
||||||
|
var_dump(\phpOMS\Utils\StringUtils::diffline($this->getData('audit')->getOld() ?? '', $this->getData('audit')->getNew() ?? ''));
|
||||||
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user