Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add setBodyAttributes wrapper for setAttributes.Overwrites/deletes t

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Page/trunk@154532 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 9d594aea7d6b4bde72ea78cf35e57cfe84c5772a 1 parent 37a0836
Klaus Guenther authored

Showing 2 changed files with 52 additions and 6 deletions. Show diff stats Hide diff stats

  1. +14 1 Page.php
  2. +38 5 package.xml
15 Page.php
@@ -883,7 +883,8 @@ function getTitle()
883 883 } // end func getTitle
884 884
885 885 /**
886   - * Sets the content of the <body> tag. If content exists, it is overwritten.
  886 + * Sets the content of the <body> tag.
  887 + * If content exists, it is overwritten.
887 888 * If you wish to use a "safe" version, use {@link addBodyContent}
888 889 * Objects must have a toString method.
889 890 *
@@ -907,6 +908,18 @@ function unsetBody()
907 908 } // end unsetBody
908 909
909 910 /**
  911 + * Sets the attributes of the <body> tag.
  912 + * If attributes exist, they are overwritten.
  913 + *
  914 + * @param array $attributes <body> tag attributes.
  915 + * @access public
  916 + */
  917 + function setBodyAttributes($attributes)
  918 + {
  919 + $this->setAttributes($attributes);
  920 + } // end setBodyAttributes
  921 +
  922 + /**
910 923 * Defines if the document should be cached by the browser. Defaults to false.
911 924 *
912 925 * @param string $cache Options are currently 'true' or 'false'. Defaults to 'false'.
43 package.xml
@@ -31,8 +31,8 @@ The PEAR::HTML_Page package provides a simple interface for generating an XHTML
31 31 </maintainer>
32 32 </maintainers>
33 33 <release>
34   - <version>2.0.0RC2</version>
35   - <date>2003-11-03</date>
  34 + <version>2.0.0RC3</version>
  35 + <date>2003-03-24</date>
36 36 <state>beta</state>
37 37 <notes>
38 38 Note: This major release breaks BC!
@@ -53,10 +53,14 @@ Ideas for use:
53 53 * Use to validate the output of a class for XHTML compliance
54 54 * Quick prototyping using PEAR packages is now a breeze
55 55
  56 +New features:
  57 +* HTML 4.0 doctype support
  58 +* #814 (Feature request: prependBodyContent)
  59 +
56 60 Bugfixes:
57   -* Fixed typos
58   -* Fixed inline docs and examples
59   -* Removed error raising in constructor
  61 +* #800 (Output "Object" prior to HTML if doctype is unknown)
  62 +* #951 (unset META tag was not possible; now use unsetMetaData)
  63 +* Fixed meta tag, title order for pre-XHTML compatibility
60 64 </notes>
61 65 <filelist>
62 66 <dir name="/" baseinstalldir="HTML">
@@ -78,6 +82,35 @@ Bugfixes:
78 82 </release>
79 83 <changelog>
80 84 <release>
  85 + <version>2.0.0RC2</version>
  86 + <date>2003-11-03</date>
  87 + <state>beta</state>
  88 + <notes>
  89 +Note: This major release breaks BC!
  90 +
  91 +This release is completely XHTML compliant, and has some great features:
  92 +* Line ending style
  93 +* Full charset support
  94 +* Doctype definitions
  95 +* Namespace definitions
  96 +* Mime encoding declaration
  97 +* Global document language
  98 +* Full META tag support, including "http-equiv"
  99 +* Suport for stylesheet and script declarations in the head section
  100 +* Support for linked stylesheets and scripts (including CSS 2.0 media definitions)
  101 +* Can output directly to a file
  102 +
  103 +Ideas for use:
  104 +* Use to validate the output of a class for XHTML compliance
  105 +* Quick prototyping using PEAR packages is now a breeze
  106 +
  107 +Bugfixes:
  108 +* Fixed typos
  109 +* Fixed inline docs and examples
  110 +* Removed error raising in constructor
  111 + </notes>
  112 + </release>
  113 + <release>
81 114 <version>2.0.0RC1</version>
82 115 <date>2003-10-31</date>
83 116 <state>beta</state>

0 comments on commit 9d594ae

Please sign in to comment.
Something went wrong with that request. Please try again.