html_table: MDL-19755 deprecate the attributes of html_table that lead to in-line styling in the HTML.

This commit is contained in:
tjhunt 2009-07-21 07:04:19 +00:00
parent 95d28870a2
commit 4565dcff25

View File

@ -2902,20 +2902,24 @@ class html_table extends moodle_html_component {
public $data;
/**
* @var string width of the table, percentage of the page prefered. Defaults to 80% of the page width.
* @deprecated since Moodle 2.0. Styling should be in the CSS.
*/
public $width = '80%';
public $width = null;
/**
* @var string alignment the whole table. Can be 'right', 'left' or 'center' (default).
* @deprecated since Moodle 2.0. Styling should be in the CSS.
*/
public $tablealign = 'center';
public $tablealign = null;
/**
* @var int padding on each cell, in pixels
* @deprecated since Moodle 2.0. Styling should be in the CSS.
*/
public $cellpadding = 5;
public $cellpadding = null;
/**
* @var int spacing between cells, in pixels
* @deprecated since Moodle 2.0. Styling should be in the CSS.
*/
public $cellspacing = 1;
public $cellspacing = null;
/**
* @var array classes to add to particular rows, space-separated string.
* Classes 'r0' or 'r1' are added automatically for every odd or even row,