Exemplo n.º 1
0
    /**
     * Creates a table-wide row to display content
     *
     * @param string $content    The content to display
     * @param array  $attributes The rows's attributes
     * @param bool   $asHeaders  Draw row as header
     *
     * @return string A single-column row spanning all table
     */
    private function full_row($content, $attributes = array(), $asHeaders = FALSE)
    {
        // Add a class for easy styling
        $attributes = TB::add_class($attributes, 'full-row');
        $tag = $asHeaders ? 'th' : 'td';
        return '<tr' . HTML::attributes($attributes) . '>
				<' . $tag . ' colspan="' . $this->numberColumns . '">' . $content . '</' . $tag . '>
			</tr>';
    }