cvs: pear /PEAR_Info Info.php
| From: | Laurent Laville | Date: | Fri, 06 Jul 2007 11:53:19 +0000 |
| Subject: | cvs: pear /PEAR_Info Info.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-47884@lists.php.net to get a copy of this message | ||
farell Fri Jul 6 11:53:19 2007 UTC
Modified files:
/pear/PEAR_Info Info.php
Log:
phpdoc tags changes related to upcoming PEAR page manual updates
http://cvs.php.net/viewvc.cgi/pear/PEAR_Info/Info.php?r1=1.42&r2=1.43&diff_format=u
Index: pear/PEAR_Info/Info.php
diff -u pear/PEAR_Info/Info.php:1.42 pear/PEAR_Info/Info.php:1.43
--- pear/PEAR_Info/Info.php:1.42 Thu Jul 5 14:31:00 2007
+++ pear/PEAR_Info/Info.php Fri Jul 6 11:53:19 2007
@@ -15,7 +15,7 @@
* @author Davey Shafik <davey@pixelated-dreams.com>
* @author Laurent Laville <pear@laurent-laville.org>
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Info.php,v 1.42 2007/07/05 14:31:00 farell Exp $
+ * @version CVS: $Id: Info.php,v 1.43 2007/07/06 11:53:19 farell Exp $
* @since File available since Release 1.0.1
* @link http://pear.php.net/package/PEAR_Info
*/
@@ -318,9 +318,9 @@
}
/**
- * Set PEAR http_proxy for remote calls
+ * Sets PEAR HTTP Proxy Server Address
*
- * @param string $proxy HTTP Proxy Server Address
+ * @param string $proxy PEAR HTTP Proxy Server Address
* @static
* @return bool
* @access public
@@ -333,7 +333,13 @@
}
/**
- * Returns the custom style sheet to use for layout
+ * Returns the custom style sheet to use for presentation
+ *
+ * Default behavior is to return css string contents.
+ * Sets $content parameter to false will return css filename reference
+ * (defined by setStyleSheet function).
+ * Easy for a <link rel="stylesheet" type="text/css" href=""
/>
+ * html tag integration (see example pear_info3.php).
*
* @param bool $content (optional) Either return css filename or string contents
* @return string
@@ -351,7 +357,10 @@
}
/**
- * Set the custom style sheet to use your own styles
+ * Sets the custom style sheet to use your own styles
+ *
+ * Sets the custom style sheet (colors, sizes) to applied to PEAR_Info output.
+ * If you don't give any parameter, you'll then apply again the default style.
*
* @param string $css (optional) File to read user-defined styles from
* @return bool True if custom styles, false if default styles applied
@@ -1083,9 +1092,12 @@
/**
* Shows PEAR_Info output
*
+ * Displays PEAR_Info output depending of style applied (style sheet).
+ *
* @return void
* @access public
* @since 1.0.1
+ * @see setStyleSheet()
* @deprecated use display() instead
*/
function show()
@@ -1096,9 +1108,12 @@
/**
* Displays PEAR_Info output
*
+ * Displays PEAR_Info output depending of style applied (style sheet).
+ *
* @return void
* @access public
* @since 1.7.0RC1
+ * @see setStyleSheet()
*/
function display()
{
@@ -1108,9 +1123,12 @@
/**
* Returns PEAR_Info output (html code)
*
+ * Returns html code. This code is XHTML 1.1 compliant since version 1.7.0
+ *
* @return string
* @access public
* @since 1.7.0RC1
+ * @see setStyleSheet(), getStyleSheet()
*/
function toHtml()
{