mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-13 23:08:42 +00:00
improve docblocks
This commit is contained in:
parent
342c11f1f4
commit
291d29f059
|
|
@ -14,14 +14,9 @@ declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
|
* @var \Modules\Organization\Models\Department[] $departments
|
||||||
*/
|
*/
|
||||||
|
$departments = $this->getData('list:elements') ?? [];
|
||||||
$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response);
|
|
||||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
|
||||||
|
|
||||||
$footerView->setPages(25);
|
|
||||||
$footerView->setPage(1);
|
|
||||||
$footerView->setResults(1);
|
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
|
|
@ -39,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr><td colspan="4">
|
<tr><td colspan="4">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : ++$c;
|
<?php $c = 0; foreach ($departments as $key => $value) : ++$c;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}organization/department/profile?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}organization/department/profile?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr 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>
|
||||||
|
|
|
||||||
|
|
@ -14,16 +14,9 @@ declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
|
* @var \Modules\Organization\Models\Position[] $positions
|
||||||
*/
|
*/
|
||||||
|
$positions = $this->getData('list:elements') ?? [];
|
||||||
$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response);
|
|
||||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
|
||||||
|
|
||||||
$footerView->setPages(25);
|
|
||||||
$footerView->setPage(1);
|
|
||||||
$footerView->setResults(1);
|
|
||||||
|
|
||||||
$listElements = $this->getData('list:elements') ?? [];
|
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
|
|
@ -41,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr><td colspan="3">
|
<tr><td colspan="3">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($listElements as $key => $value) : ++$count;
|
<?php $count = 0; foreach ($positions as $key => $value) : ++$count;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}organization/position/profile?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}organization/position/profile?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr 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>
|
||||||
|
|
|
||||||
|
|
@ -14,14 +14,9 @@ declare(strict_types=1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
|
* @var \Modules\Organization\Models\Unit[] $units
|
||||||
*/
|
*/
|
||||||
|
$units = $this->getData('list:elements') ?? [];
|
||||||
$footerView = new \phpOMS\Views\PaginationView($this->l11nManager, $this->request, $this->response);
|
|
||||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
|
||||||
|
|
||||||
$footerView->setPages(25);
|
|
||||||
$footerView->setPage(1);
|
|
||||||
$footerView->setResults(1);
|
|
||||||
|
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
|
|
@ -38,7 +33,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr><td colspan="3">
|
<tr><td colspan="3">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($this->getData('list:elements') as $key => $value) :
|
<?php foreach ($units as $key => $value) :
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}organization/unit/profile?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}organization/unit/profile?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr 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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user