public function generateColumns($dataContainer)
    {
        if (!$dataContainer->activeRecord || $dataContainer->activeRecord->type !== 'bs_tab_start') {
            return;
        }

        /** @var ContentModel|Result $current */
        $current      = $dataContainer->activeRecord;
        $stopElement  = $this->getStopElement($current);
        $count        = $this->countRequiredSeparators($dataContainer->activeRecord->bs_tabs, $current);
        $nextElements = $this->getNextElements($stopElement);

        if ($count > 0) {
            $sorting = (int) $stopElement->sorting;
            $sorting = $this->createSeparators((int) $count, $current, $sorting);

            array_unshift($nextElements, $stopElement);
            $this->updateSortings($nextElements, $sorting);
        }
    }
public function generateColumns($dataContainer)
    {
        if (!$dataContainer->activeRecord || $dataContainer->activeRecord->type !== 'bs_tab_start') {
            return;
        }

        /** @var ContentModel|Result $current */
        $current      = $dataContainer->activeRecord;
        $stopElement  = $this->getStopElement($current);
        $count        = $this->countRequiredSeparators($dataContainer->activeRecord->bs_tabs, $current);
        $nextElements = $this->getNextElements($stopElement);

        if ($count > 0) {
            $sorting = (int) $stopElement->sorting;
            $sorting = $this->createSeparators((int) $count, $current, $sorting);

            array_unshift($nextElements, $stopElement);
            $this->updateSortings($nextElements, $sorting);
        }
    }
public function generateColumns ( $ dataContainer ) { if ( ! $ dataContainer -> activeRecord || $ dataContainer -> activeRecord -> type !== 'bs_tab_start' ) { return ; } /** @var ContentModel|Result $current */ $ current = $ dataContainer -> activeRecord ; $ stopElement = $ this -> getStopElement ( $ current ) ; $ count = $ this -> countRequiredSeparators ( $ dataContainer -> activeRecord -> bs_tabs , $ current ) ; $ nextElements = $ this -> getNextElements ( $ stopElement ) ; if ( $ count > 0 ) { $ sorting = ( int ) $ stopElement -> sorting ; $ sorting = $ this -> createSeparators ( ( int ) $ count , $ current , $ sorting ) ; array_unshift ( $ nextElements , $ stopElement ) ; $ this -> updateSortings ( $ nextElements , $ sorting ) ; } }
Generate the columns.

@param DataContainer $dataContainer Data container driver.

@return void
Generate the columns .