From: tjhunt Date: Tue, 21 Jul 2009 07:04:19 +0000 (+0000) Subject: html_table: MDL-19755 deprecate the attributes of html_table that lead to in-line... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4565dcff25dde905dc935285e5e7e8c95d6b4c5a;p=moodle.git html_table: MDL-19755 deprecate the attributes of html_table that lead to in-line styling in the HTML. --- diff --git a/lib/outputlib.php b/lib/outputlib.php index eb6c049771..e69df92d88 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -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,