]> git.mjollnir.org Git - moodle.git/commitdiff
html_table: MDL-19755 deprecate the attributes of html_table that lead to in-line...
authortjhunt <tjhunt>
Tue, 21 Jul 2009 07:04:19 +0000 (07:04 +0000)
committertjhunt <tjhunt>
Tue, 21 Jul 2009 07:04:19 +0000 (07:04 +0000)
lib/outputlib.php

index eb6c04977188ea203250358feff6f63eb5c1cf78..e69df92d88993f076653333f1e8da5b2c31e63d9 100644 (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,