mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-05 02:58:41 +00:00
cleanup and tests added for ci/cd
This commit is contained in:
parent
91ece832e8
commit
8e256d8761
|
|
@ -122,7 +122,16 @@ final class BackendController extends Controller
|
|||
return $view;
|
||||
}
|
||||
|
||||
private function createOrgTree($components) : array
|
||||
/**
|
||||
* Create organization tree
|
||||
*
|
||||
* @param array $components Componants to form tree for
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function createOrgTree(array $components) : array
|
||||
{
|
||||
$tree = [];
|
||||
foreach ($components as $component) {
|
||||
|
|
|
|||
|
|
@ -41,11 +41,27 @@ class DepartmentTagSelectorPopupView extends View
|
|||
$this->setTemplate('/Modules/Organization/Theme/Backend/Components/DepartmentTagSelector/department-selector-popup');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the selector id
|
||||
*
|
||||
* @param string $id Selector id
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setId(string $id) : void
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get selector id
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : string
|
||||
{
|
||||
return $this->id;
|
||||
|
|
|
|||
|
|
@ -45,11 +45,25 @@ class DepartmentTagSelectorView extends View
|
|||
$this->addData('department-selector-popup', $view);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the selector id
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : string
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is required?
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function isRequired() : bool
|
||||
{
|
||||
return $this->isRequired;
|
||||
|
|
|
|||
|
|
@ -41,11 +41,27 @@ class PositionTagSelectorPopupView extends View
|
|||
$this->setTemplate('/Modules/Organization/Theme/Backend/Components/PositionTagSelector/position-selector-popup');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set selctor id.
|
||||
*
|
||||
* @param string $id Id
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setId(string $id) : void
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get selector id.
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : string
|
||||
{
|
||||
return $this->id;
|
||||
|
|
|
|||
|
|
@ -45,11 +45,25 @@ class PositionTagSelectorView extends View
|
|||
$this->addData('position-selector-popup', $view);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get selector id
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : string
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is required?
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function isRequired() : bool
|
||||
{
|
||||
return $this->isRequired;
|
||||
|
|
|
|||
|
|
@ -41,11 +41,27 @@ class UnitTagSelectorPopupView extends View
|
|||
$this->setTemplate('/Modules/Organization/Theme/Backend/Components/UnitTagSelector/unit-selector-popup');
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the selector id
|
||||
*
|
||||
* @param string $id Selector id
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setId(string $id) : void
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get selector id
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : string
|
||||
{
|
||||
return $this->id;
|
||||
|
|
|
|||
|
|
@ -45,11 +45,25 @@ class UnitTagSelectorView extends View
|
|||
$this->addData('unit-selector-popup', $view);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get selector id
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : string
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is required?
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function isRequired() : bool
|
||||
{
|
||||
return $this->isRequired;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user