PEAR_Info::setProxy (Previous) (Next) PEAR_Info::show

View this page in Last updated: Sun, 28 Sep 2008
English | French | German | Japanese | Plain HTML

PEAR_Info::setStyleSheet()

PEAR_Info::setStyleSheet() -- Sets the custom style sheet to use your own styles

Beschreibung

Sets the custom style sheet (colors, sizes) to applied to PEAR_Info output. If you don't give any parameter, you'll then apply again the default style.

Parameter

string $css

(optional) File to read user-defined styles from

Fehler-Meldungen

throws no exceptions thrown

Seit

since version 1.7.0RC1 (2007-07-01)

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Tipp: If you don't want to have any style applied, then build an empty style sheet (css file) and give it as function parameter (See example below).

Rückgabewert

boolean - TRUE if custom styles, FALSE if default styles applied.

Beispiel


<?php
// require the PEAR_Info file
require_once 'PEAR/Info.php';

// Create PEAR_Info object
$info = new PEAR_Info();

// set your own styles, rather than use the default stylesheet
$info->setStyleSheet(dirname(__FILE__) . DIRECTORY_SEPARATOR 'blueskin.css');

// don't use any style (empty.css is an empty file)
//$info->setStyleSheet(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'empty.css');

// Display PEAR_Info output
$info->display();
?>

PEAR_Info::setProxy (Previous) (Next) PEAR_Info::show

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.