PEAR logo

HTML_CSS : The Definitive Guide

Name

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( $group,  
  $property,  
  $value,  
  $duplicates = NULL);  
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.

See

see HTML_CSS::getGroupStyle

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.

HTML_CSS : The Definitive Guide v 1.5.0 : January 15, 2008