Skip to content
Snippets Groups Projects
Commit 357413ab authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'update_renderer_class' into 'main'

update type declarations

See merge request !19
parents 69013a0c 4b6a0825
Branches
No related tags found
1 merge request!19update type declarations
...@@ -7,3 +7,4 @@ public_html/classes/lang.class.php ...@@ -7,3 +7,4 @@ public_html/classes/lang.class.php
public_html/classes/pageinclude.class.php public_html/classes/pageinclude.class.php
public_html/classes/render-adminlte_v2.4.class.php public_html/classes/render-adminlte_v2.4.class.php
public_html/config/00_page.tpl.php public_html/config/00_page.tpl.php
static/*
...@@ -25,9 +25,9 @@ class htmlelements ...@@ -25,9 +25,9 @@ class htmlelements
* set of auto generated icon prefixes * set of auto generated icon prefixes
* @var array * @var array
*/ */
var $_aIcons = array( var $_aIcons = [
// 'fa-'=>'fa ', // 'fa-'=>'fa ',
); ];
/** /**
* label of an html tag (pseudo attribute) * label of an html tag (pseudo attribute)
...@@ -39,7 +39,7 @@ class htmlelements ...@@ -39,7 +39,7 @@ class htmlelements
* hash of attributes and values of an html tag * hash of attributes and values of an html tag
* @var array * @var array
*/ */
var $_aAttributes = array(); var $_aAttributes = [];
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
...@@ -166,7 +166,7 @@ class htmlelements ...@@ -166,7 +166,7 @@ class htmlelements
* @param array $aAttributes attributes of the select tag * @param array $aAttributes attributes of the select tag
* @return string * @return string
*/ */
public function getFormInput($aAttributes) public function getFormInput(array $aAttributes): string
{ {
$sTpl = '<input %s/>'; $sTpl = '<input %s/>';
$this->_setAttributes($aAttributes); $this->_setAttributes($aAttributes);
...@@ -191,12 +191,12 @@ class htmlelements ...@@ -191,12 +191,12 @@ class htmlelements
* @param array $aOptions array for all option fields * @param array $aOptions array for all option fields
* @return string * @return string
*/ */
public function getFormSelect(array $aAttributes, array $aOptions = array()) public function getFormSelect(array $aAttributes, array $aOptions = []): string
{ {
// $sTpl = '<select %s>%s</select>'; // $sTpl = '<select %s>%s</select>';
if (!count($aOptions)) { if (!count($aOptions)) {
return false; return '';
} }
$sOptions = ''; $sOptions = '';
foreach ($aOptions as $aOptionAttributes) { foreach ($aOptions as $aOptionAttributes) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment