src/AKlump/LoftDataGrids/CSVExporter.php
protected function collapseCell($cell, $column)
    {
        //compress a complex cell
        if (is_array($cell)) {
            $cell = isset($cell['data']) ? $cell['data'] : '';
        }

        if (!$this->format->html) {
            $cell = strip_tags($cell);
        }

        // Escape chars that conflice with delimiters
        if (!empty($this->format->escape)) {
            $escapeables = array($this->format->left, $this->format->right);
            $escapeables = array_filter(array_unique($escapeables));
            foreach ($escapeables as $find) {
                $cell = str_replace($find, $this->format->escape . $find, $cell);
            }
        }

        return $this->format->left . $cell . $this->format->right;
    }
protected function collapseCell($cell, $column)
    {
        //compress a complex cell
        if (is_array($cell)) {
            $cell = isset($cell['data']) ? $cell['data'] : '';
        }

        if (!$this->format->html) {
            $cell = strip_tags($cell);
        }

        // Escape chars that conflice with delimiters
        if (!empty($this->format->escape)) {
            $escapeables = array($this->format->left, $this->format->right);
            $escapeables = array_filter(array_unique($escapeables));
            foreach ($escapeables as $find) {
                $cell = str_replace($find, $this->format->escape . $find, $cell);
            }
        }

        return $this->format->left . $cell . $this->format->right;
    }
protected function collapseCell ( $ cell , $ column ) { //compress a complex cell if ( is_array ( $ cell ) ) { $ cell = isset ( $ cell [ 'data' ] ) ? $ cell [ 'data' ] : '' ; } if ( ! $ this -> format -> html ) { $ cell = strip_tags ( $ cell ) ; } // Escape chars that conflice with delimiters if ( ! empty ( $ this -> format -> escape ) ) { $ escapeables = array ( $ this -> format -> left , $ this -> format -> right ) ; $ escapeables = array_filter ( array_unique ( $ escapeables ) ) ; foreach ( $ escapeables as $ find ) { $ cell = str_replace ( $ find , $ this -> format -> escape . $ find , $ cell ) ; } } return $ this -> format -> left . $ cell . $ this -> format -> right ; }
Collapse a single cell in a row.

@param  array $cell

@return string
Collapse a single cell in a row .