Skip to content
Snippets Groups Projects

update type declarations

Merged Hahn Axel (hahn) requested to merge update_renderer_class into main
2 files
+ 7
6
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -25,9 +25,9 @@ class htmlelements
* set of auto generated icon prefixes
* @var array
*/
var $_aIcons = array(
var $_aIcons = [
// 'fa-'=>'fa ',
);
];
/**
* label of an html tag (pseudo attribute)
@@ -39,7 +39,7 @@ class htmlelements
* hash of attributes and values of an html tag
* @var array
*/
var $_aAttributes = array();
var $_aAttributes = [];
// ----------------------------------------------------------------------
@@ -166,7 +166,7 @@ class htmlelements
* @param array $aAttributes attributes of the select tag
* @return string
*/
public function getFormInput($aAttributes)
public function getFormInput(array $aAttributes): string
{
$sTpl = '<input %s/>';
$this->_setAttributes($aAttributes);
@@ -191,12 +191,12 @@ class htmlelements
* @param array $aOptions array for all option fields
* @return string
*/
public function getFormSelect(array $aAttributes, array $aOptions = array())
public function getFormSelect(array $aAttributes, array $aOptions = []): string
{
// $sTpl = '<select %s>%s</select>';
if (!count($aOptions)) {
return false;
return '';
}
$sOptions = '';
foreach ($aOptions as $aOptionAttributes) {
Loading