protected function setHeaderCommon($headerFeatures = [])
    {
        $sReturn = [];
        $this->initializeSprGlbAndSession();
        $sHK     = $this->tCmnSuperGlobals->get('specialHook');
        if (!is_null($sHK) && (in_array('noHeader', $sHK))) {
            return ''; // no Header
        }
        $fixedHeaderElements = [
            'start'    => '<!DOCTYPE html>',
            'lang'     => $this->setHeaderLanguage($headerFeatures),
            'head'     => '<head>',
            'charset'  => '<meta charset="utf-8" />',
            'viewport' => '<meta name="viewport" content="width=device-width height=device-height initial-scale=1" />',
        ];
        if ($headerFeatures !== []) {
            $aFeatures = [];
            foreach ($headerFeatures as $key => $value) {
                $aFeatures[] = $this->setHeaderFeatures($key, $value);
            }
            return implode('', $fixedHeaderElements) . implode('', $aFeatures) . '</head>' . '<body>';
        }
        $sReturn[] = implode('', $fixedHeaderElements) . '</head>' . '<body>'
            . '<p style="background-color:red;color:#FFF;">The parameter sent to '
            . __FUNCTION__ . ' must be a non-empty array</p>' . $this->setFooterCommon();
        throw new \Exception(implode('', $sReturn));
    }
protected function setHeaderCommon($headerFeatures = [])
    {
        $sReturn = [];
        $this->initializeSprGlbAndSession();
        $sHK     = $this->tCmnSuperGlobals->get('specialHook');
        if (!is_null($sHK) && (in_array('noHeader', $sHK))) {
            return ''; // no Header
        }
        $fixedHeaderElements = [
            'start'    => '<!DOCTYPE html>',
            'lang'     => $this->setHeaderLanguage($headerFeatures),
            'head'     => '<head>',
            'charset'  => '<meta charset="utf-8" />',
            'viewport' => '<meta name="viewport" content="width=device-width height=device-height initial-scale=1" />',
        ];
        if ($headerFeatures !== []) {
            $aFeatures = [];
            foreach ($headerFeatures as $key => $value) {
                $aFeatures[] = $this->setHeaderFeatures($key, $value);
            }
            return implode('', $fixedHeaderElements) . implode('', $aFeatures) . '</head>' . '<body>';
        }
        $sReturn[] = implode('', $fixedHeaderElements) . '</head>' . '<body>'
            . '<p style="background-color:red;color:#FFF;">The parameter sent to '
            . __FUNCTION__ . ' must be a non-empty array</p>' . $this->setFooterCommon();
        throw new \Exception(implode('', $sReturn));
    }
protected function setHeaderCommon ( $ headerFeatures = [ ] ) { $ sReturn = [ ] ; $ this -> initializeSprGlbAndSession ( ) ; $ sHK = $ this -> tCmnSuperGlobals -> get ( 'specialHook' ) ; if ( ! is_null ( $ sHK ) && ( in_array ( 'noHeader' , $ sHK ) ) ) { return '' ; // no Header } $ fixedHeaderElements = [ 'start' => '<!DOCTYPE html>' , 'lang' => $ this -> setHeaderLanguage ( $ headerFeatures ) , 'head' => '<head>' , 'charset' => '<meta charset="utf-8" />' , 'viewport' => '<meta name="viewport" content="width=device-width height=device-height initial-scale=1" />' , ] ; if ( $ headerFeatures !== [ ] ) { $ aFeatures = [ ] ; foreach ( $ headerFeatures as $ key => $ value ) { $ aFeatures [ ] = $ this -> setHeaderFeatures ( $ key , $ value ) ; } return implode ( '' , $ fixedHeaderElements ) . implode ( '' , $ aFeatures ) . '</head>' . '<body>' ; } $ sReturn [ ] = implode ( '' , $ fixedHeaderElements ) . '</head>' . '<body>' . '<p style="background-color:red;color:#FFF;">The parameter sent to ' . __FUNCTION__ . ' must be a non-empty array</p>' . $ this -> setFooterCommon ( ) ; throw new \ Exception ( implode ( '' , $ sReturn ) ) ; }
Outputs an HTML header

@param array $headerFeatures
@return string
Outputs an HTML header