HTML_CSS::setGroupStyle

HTML_CSS::setGroupStyle() – Set or add a CSS definition for a CSS group

Synopsis

require_once 'HTML/CSS.php';

void|int|PEAR_Error HTML_CSS::setGroupStyle ( mixed $group , string $property , string $value , bool $duplicates = null )

Description

Define the new value of a property for a CSS group. The group should exist. If not, use HTML_CSS::createGroup() first

Parameter

mixed $group

CSS definition group identifier

string $property

Property defined

string $value

Value assigned

boolean $duplicates

(optional) Allow or disallow duplicates.

Return value

returns Returns an integer if duplicates are allowed.

Throws

throws HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_GROUP

Since

since version 0.3.0 (2003-11-03)

Note

This function can not be called statically.