PEAR logo

HTML_CSS : The Definitive Guide

Name

HTML_CSS::setStyle — Sets or adds a CSS definition

Synopsis

      require_once '/CSS.php';
     
void|PEAR_Error HTML_CSS::setStyle( $element,  
  $property,  
  $value,  
  $duplicates = NULL);  
string   $element;
string   $property;
string   $value;
bool   $duplicates = NULL;

Description

This package is not documented yet.

Parameter

string $element

Element (or class) to be defined

string $property

Property defined

string $value

Value assigned

boolean $duplicates

(optional) Allow or disallow duplicates.

See

see HTML_CSS::getStyle

Throws

throws HTML_CSS_ERROR_INVALID_INPUT

Note

since 0.2.0

This function can not be called statically.

HTML_CSS : The Definitive Guide v 1.0.0 : June 24, 2006