src/Components/HtmlTable.php
/**
     * Creates the HTML code of <tbody>
     *
     * @return string
     */
Creates the HTML code of 
@return string
Creates the HTML code of @return string
private function createTableBody(){
        $tableBody = '<tbody>';
        foreach($this->tableRows as $row){
            $tableBody .= '<tr>';
            if(empty($this->tableHeaders)){
                foreach($row as $cell){
                    $tableBody .= '<td>' . $cell . '</td>';
                }
            }else{
                $i = 0;
                foreach($row as $cell){
                    $tableBody .= '<td data-label="' . $this->tableHeaders[$i] . '">' . $cell . '</td>';
                    $i++;
                }
            }
            $tableBody .= '</tr>';
        }
        $tableBody .= '</tbody>';
        return $tableBody;
    }
private function createTableBody ( ) { $ tableBody = '<tbody>' ; foreach ( $ this -> tableRows as $ row ) { $ tableBody .= '<tr>' ; if ( empty ( $ this -> tableHeaders ) ) { foreach ( $ row as $ cell ) { $ tableBody .= '<td>' . $ cell . '</td>' ; } } else { $ i = 0 ; foreach ( $ row as $ cell ) { $ tableBody .= '<td data-label="' . $ this -> tableHeaders [ $ i ] . '">' . $ cell . '</td>' ; $ i ++ ; } } $ tableBody .= '</tr>' ; } $ tableBody .= '</tbody>' ; return $ tableBody ; }
Creates the HTML code of <tbody>
 @return string
Creates the HTML code of <tbody > @return string