cvs: pear /HTML_CSS CSS.php
| From: | Laurent Laville | Date: | Thu, 22 Jun 2006 17:11:54 +0000 |
| Subject: | cvs: pear /HTML_CSS CSS.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40871@lists.php.net to get a copy of this message | ||
farell Thu Jun 22 17:11:54 2006 UTC
Modified files:
/pear/HTML_CSS CSS.php
Log:
unified API arguments for all group functions
http://cvs.php.net/viewvc.cgi/pear/HTML_CSS/CSS.php?r1=1.47&r2=1.48&diff_format=u
Index: pear/HTML_CSS/CSS.php
diff -u pear/HTML_CSS/CSS.php:1.47 pear/HTML_CSS/CSS.php:1.48
--- pear/HTML_CSS/CSS.php:1.47 Sun Jun 18 15:58:05 2006
+++ pear/HTML_CSS/CSS.php Thu Jun 22 17:11:54 2006
@@ -16,7 +16,7 @@
* @author Laurent Laville <pear@laurent-laville.org>
* @copyright 2003-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: CSS.php,v 1.47 2006/06/18 15:58:05 farell Exp $
+ * @version CVS: $Id: CSS.php,v 1.48 2006/06/22 17:11:54 farell Exp $
* @link http://pear.php.net/package/HTML_CSS
*/
@@ -486,7 +486,7 @@
* Creates a new CSS definition group. Returns an integer identifying the group.
*
* @param string $selectors Selector(s) to be defined, comma delimited.
- * @param mixed $identifier (optional) Group identifier. If not passed,
+ * @param mixed $group (optional) Group identifier. If not passed,
* will return an automatically assigned integer.
*
* @return mixed|PEAR_Error
@@ -495,7 +495,7 @@
* @throws HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_INVALID_GROUP
* @see unsetGroup()
*/
- function createGroup($selectors, $identifier = null)
+ function createGroup($selectors, $group = null)
{
if (!is_string($selectors)) {
return $this->raiseError(HTML_CSS_ERROR_INVALID_INPUT, 'exception',
@@ -505,15 +505,14 @@
'paramnum' => 1));
}
- if (!isset($identifier)) {
+ if (!isset($group)) {
$this->_groupCount++;
$group = $this->_groupCount;
} else {
- if (isset($this->_groups['@-'.$identifier])){
+ if (isset($this->_groups['@-'.$group])){
return $this->raiseError(HTML_CSS_ERROR_INVALID_GROUP, 'error',
- array('identifier' => $identifier));
+ array('identifier' => $group));
}
- $group = $identifier;
}
$groupIdent = '@-'.$group;