public static function getGrids(GetGridsEvent $event)
    {
        $model = $event->getModel();
        $grids = $event->getGrids();

        if ($model->type == 'semantic_html5') {
            $query  = 'SELECT * FROM tl_columnset WHERE published=1 ORDER BY title';
            $result = \Database::getInstance()->query($query);

            while ($result->next()) {
                $key = sprintf($GLOBALS['TL_LANG']['tl_content']['bootstrap_columns'], $result->columns);

                $grids[$key][$result->id] = $result->title;
            }
        }
    }
public static function getGrids(GetGridsEvent $event)
    {
        $model = $event->getModel();
        $grids = $event->getGrids();

        if ($model->type == 'semantic_html5') {
            $query  = 'SELECT * FROM tl_columnset WHERE published=1 ORDER BY title';
            $result = \Database::getInstance()->query($query);

            while ($result->next()) {
                $key = sprintf($GLOBALS['TL_LANG']['tl_content']['bootstrap_columns'], $result->columns);

                $grids[$key][$result->id] = $result->title;
            }
        }
    }
public static function getGrids ( GetGridsEvent $ event ) { $ model = $ event -> getModel ( ) ; $ grids = $ event -> getGrids ( ) ; if ( $ model -> type == 'semantic_html5' ) { $ query = 'SELECT * FROM tl_columnset WHERE published=1 ORDER BY title' ; $ result = \ Database :: getInstance ( ) -> query ( $ query ) ; while ( $ result -> next ( ) ) { $ key = sprintf ( $ GLOBALS [ 'TL_LANG' ] [ 'tl_content' ] [ 'bootstrap_columns' ] , $ result -> columns ) ; $ grids [ $ key ] [ $ result -> id ] = $ result -> title ; } } }
Get grids from the database.

@param GetGridsEvent $event The subscribed event.

@return void

@SuppressWarnings(PHPMD.Superglobals)
Get grids from the database .