PEAR logo

HTML_CSS : The Definitive Guide

Name

constructor HTML_CSS::HTML_CSS — Class constructor

Synopsis

    require_once 'HTML/CSS.php';
   
void constructor HTML_CSS::HTML_CSS( $attributes = array(),  
  $errorPrefs = array());  
array   $attributes = array();
array   $errorPrefs = array();

Description

Class constructors : Zend Engine 1 uses HTML_CSS, while Zend Engine 2 uses __construct

Parameter

array $attributes

(optional) Pass options to the constructor. Valid options are :

  • xhtml (sets xhtml compliance),

  • tab (sets indent string),

  • filename (name of file to be parsed),

  • cache (determines whether the nocache headers are sent),

  • oneline (whether to output each definition on one line),

  • groupsfirst (determines whether to output groups before elements)

  • allowduplicates (allow to have duplicate rules in selector)

array $errorPrefs

(optional) has to configure error handler

Throws

throws no exceptions thrown

Since

since version 0.2.0 (2003-07-31)

Note

This function can not be called statically.

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