mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-09 05:18:42 +00:00
Remove namespace from scalars
This commit is contained in:
parent
31d69ab491
commit
e24df84e24
|
|
@ -92,7 +92,7 @@ class Installer extends InstallerAbstract
|
||||||
*
|
*
|
||||||
* @param Pool $dbPool Database instance
|
* @param Pool $dbPool Database instance
|
||||||
* @param array $data Link info
|
* @param array $data Link info
|
||||||
* @param \int $parent Parent element (default is 0 for none)
|
* @param int $parent Parent element (default is 0 for none)
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Module path.
|
* Module path.
|
||||||
*
|
*
|
||||||
* @var \string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
const MODULE_PATH = __DIR__;
|
const MODULE_PATH = __DIR__;
|
||||||
|
|
@ -46,7 +46,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Module version.
|
* Module version.
|
||||||
*
|
*
|
||||||
* @var \string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
const MODULE_VERSION = '1.0.0';
|
const MODULE_VERSION = '1.0.0';
|
||||||
|
|
@ -54,7 +54,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* JavaScript files.
|
* JavaScript files.
|
||||||
*
|
*
|
||||||
* @var \string[]
|
* @var string[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static $js = [
|
public static $js = [
|
||||||
|
|
@ -64,7 +64,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* CSS files.
|
* CSS files.
|
||||||
*
|
*
|
||||||
* @var \string[]
|
* @var string[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static $css = [
|
public static $css = [
|
||||||
|
|
@ -101,7 +101,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Module name.
|
* Module name.
|
||||||
*
|
*
|
||||||
* @var \string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
const MODULE_NAME = 'Navigation';
|
const MODULE_NAME = 'Navigation';
|
||||||
|
|
@ -109,7 +109,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Localization files.
|
* Localization files.
|
||||||
*
|
*
|
||||||
* @var \string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $localization = [
|
protected static $localization = [
|
||||||
|
|
@ -118,7 +118,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Providing.
|
* Providing.
|
||||||
*
|
*
|
||||||
* @var \string[]
|
* @var string[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $providing = [
|
protected static $providing = [
|
||||||
|
|
@ -127,7 +127,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
/**
|
/**
|
||||||
* Dependencies.
|
* Dependencies.
|
||||||
*
|
*
|
||||||
* @var \string[]
|
* @var string[]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $dependencies = [
|
protected static $dependencies = [
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ class Navigation
|
||||||
/**
|
/**
|
||||||
* Load navigation based on request.
|
* Load navigation based on request.
|
||||||
*
|
*
|
||||||
* @param \string[] $request Request hashes
|
* @param string[] $request Request hashes
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class NavigationView extends View
|
||||||
/**
|
/**
|
||||||
* Language used for the navigation.
|
* Language used for the navigation.
|
||||||
*
|
*
|
||||||
* @var \string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $language = 'en';
|
protected $language = 'en';
|
||||||
|
|
@ -61,7 +61,7 @@ class NavigationView extends View
|
||||||
/**
|
/**
|
||||||
* Parent element used for navigation.
|
* Parent element used for navigation.
|
||||||
*
|
*
|
||||||
* @var \int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $parent = 0;
|
protected $parent = 0;
|
||||||
|
|
@ -77,12 +77,12 @@ class NavigationView extends View
|
||||||
/**
|
/**
|
||||||
* Get navigation Id.
|
* Get navigation Id.
|
||||||
*
|
*
|
||||||
* @return \int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function getNavId() : \int
|
public function getNavId() : int
|
||||||
{
|
{
|
||||||
return $this->navId;
|
return $this->navId;
|
||||||
}
|
}
|
||||||
|
|
@ -90,14 +90,14 @@ class NavigationView extends View
|
||||||
/**
|
/**
|
||||||
* Set navigation Id.
|
* Set navigation Id.
|
||||||
*
|
*
|
||||||
* @param \int $navId Navigation id used for display
|
* @param int $navId Navigation id used for display
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function setNavId(\int $navId)
|
public function setNavId(int $navId)
|
||||||
{
|
{
|
||||||
$this->navId = $navId;
|
$this->navId = $navId;
|
||||||
}
|
}
|
||||||
|
|
@ -127,49 +127,49 @@ class NavigationView extends View
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return \string
|
* @return string
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function getLanguage() : \string
|
public function getLanguage() : string
|
||||||
{
|
{
|
||||||
return $this->language;
|
return $this->language;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \string $language
|
* @param string $language
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function setLanguage(\string $language)
|
public function setLanguage(string $language)
|
||||||
{
|
{
|
||||||
$this->language = $language;
|
$this->language = $language;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return \int
|
* @return int
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function getParent() : \int
|
public function getParent() : int
|
||||||
{
|
{
|
||||||
return $this->parent;
|
return $this->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param \int $parent
|
* @param int $parent
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function setParent(\int $parent)
|
public function setParent(int $parent)
|
||||||
{
|
{
|
||||||
$this->parent = $parent;
|
$this->parent = $parent;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user