mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-24 22:08:41 +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 \Modules\Organization\Models\Department[] $departments
|
||||
*/
|
||||
|
||||
$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);
|
||||
$departments = $this->getData('list:elements') ?? [];
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
|
|
@ -39,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tfoot>
|
||||
<tr><td colspan="4">
|
||||
<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()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<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 \Modules\Organization\Models\Position[] $positions
|
||||
*/
|
||||
|
||||
$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') ?? [];
|
||||
$positions = $this->getData('list:elements') ?? [];
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
|
|
@ -41,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tfoot>
|
||||
<tr><td colspan="3">
|
||||
<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()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<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 \Modules\Organization\Models\Unit[] $units
|
||||
*/
|
||||
|
||||
$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);
|
||||
$units = $this->getData('list:elements') ?? [];
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
|
|
@ -38,7 +33,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tfoot>
|
||||
<tr><td colspan="3">
|
||||
<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()); ?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td data-label="<?= $this->getHtml('ID', '0', '0'); ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user