From 4565dcff25dde905dc935285e5e7e8c95d6b4c5a Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 21 Jul 2009 07:04:19 +0000 Subject: [PATCH] html_table: MDL-19755 deprecate the attributes of html_table that lead to in-line styling in the HTML. --- lib/outputlib.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/outputlib.php b/lib/outputlib.php index eb6c0497718..e69df92d889 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,