Permalink
Browse files

inline doc fixes, error handling fix

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Page/trunk@139446 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
Klaus Guenther
Klaus Guenther committed Sep 2, 2003
1 parent b8a1570 commit 910f41a85ba4ff30edb9960084f04ebdf1e17e1d
Showing with 14 additions and 14 deletions.
  1. +14 −14 Page.php
View
@@ -751,7 +751,7 @@ function addStyleDeclaration($content, $type = 'text/css')
* Returns the current API version
*
* @access public
- * @returns double
+ * @return double
*/
function apiVersion()
{
@@ -762,7 +762,7 @@ function apiVersion()
* Disables prepending the XML prolog for XHTML documents
*
* @access public
- * @returns void
+ * @return void
*/
function disableXmlProlog()
{
@@ -773,7 +773,7 @@ function disableXmlProlog()
* Enables prepending the XML prolog for XHTML documents (default)
*
* @access public
- * @returns void
+ * @return void
*/
function enableXmlProlog()
{
@@ -784,7 +784,7 @@ function enableXmlProlog()
* Returns the document charset encoding.
*
* @access public
- * @returns string
+ * @return string
*/
function getCharset()
{
@@ -821,7 +821,7 @@ function getLang ()
/**
* Return the title of the page.
*
- * @returns string
+ * @return string
* @access public
*/
function getTitle()
@@ -880,8 +880,8 @@ function setCache($cache = 'false')
* Defines if the document should be cached by the browser. Defaults to false.
*
* @param string $cache Options are currently 'true' or 'false'. Defaults to 'false'.
- * @access public
- * @returns void
+ * @access public
+ * @return void
*/
function setCharset($type = 'utf-8')
{
@@ -895,8 +895,8 @@ function setCharset($type = 'utf-8')
* when the class is initiated {@link HTML_Page}.
*
* @param string $type String containing a document type. Defaults to "XHTML 1.0 Transitional"
- * @access public
- * @returns void
+ * @access public
+ * @return void
*/
function setDoctype($type = "XHTML 1.0 Transitional")
{
@@ -936,7 +936,7 @@ function setMetaData($name, $content, $http_equiv = false)
* Sets an http-equiv Content-Type meta tag
*
* @access public
- * @returns void
+ * @return void
*/
function setMetaContentType()
{
@@ -972,7 +972,7 @@ function setMetaRefresh($time, $url = 'self', $https = false)
*
* @param string $type
* @access public
- * @returns void
+ * @return void
*/
function setMimeEncoding($type = 'text/html')
{
@@ -984,7 +984,7 @@ function setMimeEncoding($type = 'text/html')
*
* @param string $namespace Optional. W3C namespaces are used by default.
* @access public
- * @returns void
+ * @return void
*/
function setNamespace($namespace = '')
{
@@ -1000,7 +1000,7 @@ function setNamespace($namespace = '')
*
* @param string $title
* @access public
- * @returns void
+ * @return void
*/
function setTitle($title)
{
@@ -1072,7 +1072,7 @@ function toFile($filename)
fclose($file);
}
if (!file_exists($filename)){
- PEAR::raiseError("HTML_Page::toFile() error: Failed to write to $filename");
+ PEAR::raiseError("HTML_Page::toFile() error: Failed to write to $filename",0,PEAR_ERROR_TRIGGER);
}
} // end func toFile

0 comments on commit 910f41a

Please sign in to comment.