mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-02-13 00:38:41 +00:00
autofixes
This commit is contained in:
parent
5f04305326
commit
412c14e08d
|
|
@ -27,6 +27,8 @@ use phpOMS\Stdlib\Base\Enum;
|
||||||
abstract class PermissionState extends Enum
|
abstract class PermissionState extends Enum
|
||||||
{
|
{
|
||||||
public const CATEGORY = 1;
|
public const CATEGORY = 1;
|
||||||
|
|
||||||
public const WIKI = 2;
|
public const WIKI = 2;
|
||||||
|
|
||||||
public const APP = 3;
|
public const APP = 3;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,20 +23,20 @@ echo $this->getData('nav')->render();
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="portlet">
|
<div class="portlet">
|
||||||
<div class="portlet-head"><?= $this->getHtml('Categories') ?><i class="fa fa-download floatRight download btn"></i></div>
|
<div class="portlet-head"><?= $this->getHtml('Categories'); ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
<table class="default">
|
<table class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||||
<td class="wf-100"><?= $this->getHtml('Name') ?>
|
<td class="wf-100"><?= $this->getHtml('Name'); ?>
|
||||||
<td><?= $this->getHtml('Parent') ?>
|
<td><?= $this->getHtml('Parent'); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($categories as $key => $value) :
|
<?php foreach ($categories as $key => $value) :
|
||||||
$url = UriFactory::build('{/prefix}admin/account/settings?{?}&id=' . $value->getId()); ?>
|
$url = UriFactory::build('{/prefix}admin/account/settings?{?}&id=' . $value->getId()); ?>
|
||||||
<tr tabindex="0" data-href="<?= $url; ?>">
|
<tr tabindex="0" data-href="<?= $url; ?>">
|
||||||
<td data-label="<?= $this->getHtml('ID', '0', '0') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
<td data-label="<?= $this->getHtml('Name'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Parent') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getParent() !== null ? $value->getParent()->getName() : ''); ?></a>
|
<td data-label="<?= $this->getHtml('Parent'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getParent() !== null ? $value->getParent()->getName() : ''); ?></a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if (empty($categories)) : ?>
|
<?php if (empty($categories)) : ?>
|
||||||
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="3" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ namespace Modules\Knowledgebase\tests\Admin;
|
||||||
class AdminTest extends \PHPUnit\Framework\TestCase
|
class AdminTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected const MODULE_NAME = 'Knowledgebase';
|
protected const MODULE_NAME = 'Knowledgebase';
|
||||||
|
|
||||||
protected const URI_LOAD = 'http://127.0.0.1/en/backend/wiki';
|
protected const URI_LOAD = 'http://127.0.0.1/en/backend/wiki';
|
||||||
|
|
||||||
use \Modules\tests\ModuleTestTrait;
|
use \Modules\tests\ModuleTestTrait;
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ class WikiCategoryTest extends \PHPUnit\Framework\TestCase
|
||||||
$this->category = new WikiCategory();
|
$this->category = new WikiCategory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox The model has the expected default values after initialization
|
* @testdox The model has the expected default values after initialization
|
||||||
* @covers Modules\Knowledgebase\Models\WikiApp
|
* @covers Modules\Knowledgebase\Models\WikiApp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user