PEAR logo

HTML_CSS : The Definitive Guide

Name

HTML_CSS::setAtRuleStyle — Define a conditional/informative At-Rule

Synopsis

require_once 'HTML/CSS.php';
void|PEAR_Error HTML_CSS::setAtRuleStyle ( $atKeyword,  
  $arguments,  
  $selectors,  
  $property,  
  $value,  
  $duplicates = NULL );  
string   $atKeyword ;
string   $arguments ;
string   $selectors ;
string   $property ;
string   $value ;
bool   $duplicates = NULL ;

Description

Set arguments and declaration style block for at-rules that follow : "@media, @page, @font-face"

Parameter

string $atKeyword

at-rule keyword

string $arguments

argument list (optional for @font-face)

string $selectors

selectors of declaration style block (optional for @media, @page, @font-face)

string $property

property of a single declaration style block

string $value

value of a single declaration style block

boolean $duplicates

(optional) Allow or disallow duplicates

Throws

throws HTML_CSS_ERROR_INVALID_INPUT

See

see HTML_CSS::getAtRuleStyle

Since

since version 1.5.0 (2008-01-15)

Note

This function can not be called statically.

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