private function setBasicData(FrontendTemplate $template, array $data)
    {
        foreach ($data as $k => $v) {
            if (0 === strpos($k, 'cookiebar_')) {
                $template->{substr($k, 10)} = $v;
            }
        }

        $template->raw = $data;
    }
private function setBasicData(FrontendTemplate $template, array $data)
    {
        foreach ($data as $k => $v) {
            if (0 === strpos($k, 'cookiebar_')) {
                $template->{substr($k, 10)} = $v;
            }
        }

        $template->raw = $data;
    }
private function setBasicData ( FrontendTemplate $ template , array $ data ) { foreach ( $ data as $ k => $ v ) { if ( 0 === strpos ( $ k , 'cookiebar_' ) ) { $ template -> { substr ( $ k , 10 ) } = $ v ; } } $ template -> raw = $ data ; }
Automatically set all variables with cookiebar_ prefix.

@param FrontendTemplate $template
@param array            $data
Automatically set all variables with cookiebar_ prefix .