public function getCellView($cell_data, array $row_data = [])
    {
        if ($this->tooltip_field && $row_data) {
            $this->requireTooltipJavascript();
            $tooltip = $this->replaceTemplateVars($row_data, $this->tooltip_field);

            if ($tooltip) {
                return '<td' . $this->getAttributesView(0, $row_data) . ' tooltip="' . nl2br(htmlspecialchars($tooltip, ENT_QUOTES)) . '" onmouseover="cmsTooltip.show(this,' . $this->tooltip_field_colspan . ')" onmouseout="cmsTooltip.hide(this)">' . $cell_data . '</td>';
            }
        }

        // Order for drag-and-drop
        if ($this instanceof ColumnOrder && isset($row_data['order']) && $this->isDragable()) {
            $this->addDataAttribute('order', $row_data['order']);
        }

        // Cut long strings
        if ($this->cut_long_strings && $cell_data === strip_tags((string)$cell_data)) {
            $cell_data = Converter::cutLongStrings((string)$cell_data, $this->cut_long_strings_limit);
        }

        return '<td' . $this->getAttributesView(false, $row_data) . '>' . $cell_data . '</td>';
    }
public function getCellView($cell_data, array $row_data = [])
    {
        if ($this->tooltip_field && $row_data) {
            $this->requireTooltipJavascript();
            $tooltip = $this->replaceTemplateVars($row_data, $this->tooltip_field);

            if ($tooltip) {
                return '<td' . $this->getAttributesView(0, $row_data) . ' tooltip="' . nl2br(htmlspecialchars($tooltip, ENT_QUOTES)) . '" onmouseover="cmsTooltip.show(this,' . $this->tooltip_field_colspan . ')" onmouseout="cmsTooltip.hide(this)">' . $cell_data . '</td>';
            }
        }

        // Order for drag-and-drop
        if ($this instanceof ColumnOrder && isset($row_data['order']) && $this->isDragable()) {
            $this->addDataAttribute('order', $row_data['order']);
        }

        // Cut long strings
        if ($this->cut_long_strings && $cell_data === strip_tags((string)$cell_data)) {
            $cell_data = Converter::cutLongStrings((string)$cell_data, $this->cut_long_strings_limit);
        }

        return '<td' . $this->getAttributesView(false, $row_data) . '>' . $cell_data . '</td>';
    }
public function getCellView ( $ cell_data , array $ row_data = [ ] ) { if ( $ this -> tooltip_field && $ row_data ) { $ this -> requireTooltipJavascript ( ) ; $ tooltip = $ this -> replaceTemplateVars ( $ row_data , $ this -> tooltip_field ) ; if ( $ tooltip ) { return '<td' . $ this -> getAttributesView ( 0 , $ row_data ) . ' tooltip="' . nl2br ( htmlspecialchars ( $ tooltip , ENT_QUOTES ) ) . '" onmouseover="cmsTooltip.show(this,' . $ this -> tooltip_field_colspan . ')" onmouseout="cmsTooltip.hide(this)">' . $ cell_data . '</td>' ; } } // Order for drag-and-drop if ( $ this instanceof ColumnOrder && isset ( $ row_data [ 'order' ] ) && $ this -> isDragable ( ) ) { $ this -> addDataAttribute ( 'order' , $ row_data [ 'order' ] ) ; } // Cut long strings if ( $ this -> cut_long_strings && $ cell_data === strip_tags ( ( string ) $ cell_data ) ) { $ cell_data = Converter :: cutLongStrings ( ( string ) $ cell_data , $ this -> cut_long_strings_limit ) ; } return '<td' . $ this -> getAttributesView ( false , $ row_data ) . '>' . $ cell_data . '</td>' ; }
Return html td

@param string $cell_data
@param array $row_data

@return string
Return html td