mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-02-14 12:08:40 +00:00
make type hints easier to read
This commit is contained in:
parent
f46ef3c32f
commit
b8401685bb
|
|
@ -12,11 +12,16 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
* @var \phpOMS\Module\ModuleInfo[] $modules
|
* @var \phpOMS\Module\ModuleInfo[] $modules
|
||||||
*/
|
*/
|
||||||
$modules = $this->getData('modules');
|
$modules = $this->getData('modules');
|
||||||
|
|
||||||
|
$previous = empty($modules) ? '{/prefix}help/module/list' : '{/prefix}help/module/list?{?}&id=' . \reset($modules)->getId() . '&ptype=-';
|
||||||
|
$next = empty($modules) ? '{/prefix}help/module/list' : '{/prefix}help/module/list?{?}&id=' . \end($modules)->getId() . '&ptype=+';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
@ -36,7 +41,7 @@ $modules = $this->getData('modules');
|
||||||
}
|
}
|
||||||
|
|
||||||
++$count;
|
++$count;
|
||||||
$url = \phpOMS\Uri\UriFactory::build(
|
$url = UriFactory::build(
|
||||||
'{/lang}/backend/help/module/single?id={$module}',
|
'{/lang}/backend/help/module/single?id={$module}',
|
||||||
['$module' => $module->getInternalName()]
|
['$module' => $module->getInternalName()]
|
||||||
);
|
);
|
||||||
|
|
@ -48,7 +53,10 @@ $modules = $this->getData('modules');
|
||||||
<tr><td class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
<div class="portlet-foot"></div>
|
<div class="portlet-foot">
|
||||||
|
<a class="button" href="<?= UriFactory::build($previous); ?>"><?= $this->getHtml('Previous', '0', '0'); ?></a>
|
||||||
|
<a class="button" href="<?= UriFactory::build($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user