PEAR_Info
[ class tree: PEAR_Info ] [ index: PEAR_Info ] [ all elements ]

Class: PEAR_Info

Source Location: /PEAR_Info-1.7.0RC2/Info.php

Class Overview


The PEAR_Info class generate phpinfo() style PEAR information.


Author(s):

Version:

  • Release: @package_version@

Variables

Methods


Child classes:

PEAR_Info3
The PEAR_Info class generate phpinfo() style PEAR information.

Inherited Variables

Inherited Methods


Class Details

[line 113]
The PEAR_Info class generate phpinfo() style PEAR information.


[ Top ]


Class Variables

$config =

[line 140]

instance of PEAR_config
  • Since: 1.0.1
  • Access: public

Type:   object


[ Top ]

$css =

[line 131]

Style sheet for the custom layout
  • Since: 1.7.0RC1
  • Access: public

Type:   string


[ Top ]

$info =

[line 122]

Html code for phpinfo() style PEAR information
  • Since: 1.0.1
  • Access: public

Type:   string


[ Top ]

$reg =

[line 149]

instance of PEAR_Registry
  • Since: 1.0.1
  • Access: public

Type:   object


[ Top ]



Method Detail

PEAR_Info (Constructor)   [line 162]

void PEAR_Info( [string $pear_dir = ''], [string $user_file = ''], [string $system_file = ''], [array $options = null])

PHP 4 style constructor (ZE1)
  • Since: 1.0.1
  • Access: public

Parameters:

string   $pear_dir   —  (optional) The PEAR base install directory
string   $user_file   —  (optional) file to read PEAR user-defined options from
string   $system_file   —  (optional) file to read PEAR system-wide defaults from
array   $options   —  (optional) configure PEAR information output

[ Top ]

display   [line 1079]

void display( )

Displays PEAR_Info output
  • Since: 1.7.0RC1
  • Access: public

[ Top ]

getStyleSheet   [line 319]

string getStyleSheet( [bool $content = true])

Returns the custom style sheet to use for layout
  • Since: 1.7.0RC1
  • Access: public

Parameters:

bool   $content   —  (optional) Either return css filename or string contents

[ Top ]

packageInstalled   [line 1134]

bool packageInstalled( string $name, [string $version = null], [string $channel = null], [string $user_file = ''], [string $system_file = ''])

Check if a package is installed
  • Since: 1.6.0
  • Access: public

Parameters:

string   $name   —  Package name
string   $version   —  (optional) The minimal version that should be installed
string   $channel   —  (optional) The package channel distribution
string   $user_file   —  (optional) file to read PEAR user-defined options from
string   $system_file   —  (optional) file to read PEAR system-wide defaults from

[ Top ]

pearImage   [line 1040]

void pearImage( )

outputs the PEAR logo
  • Since: 1.0.1
  • Access: public

[ Top ]

setProxy   [line 305]

bool setProxy( string $proxy)

Set PEAR http_proxy for remote calls
  • Since: 1.0.6
  • Access: public

Parameters:

string   $proxy   —  HTTP Proxy Server Address

[ Top ]

setStyleSheet   [line 337]

bool setStyleSheet( [string $css = null])

Set the custom style sheet to use your own styles
  • Return: True if custom styles, false if default styles applied
  • Since: 1.7.0RC1
  • Access: public

Parameters:

string   $css   —  (optional) File to read user-defined styles from

[ Top ]

show   [line 1067]

void show( )

Shows PEAR_Info output
  • Deprecated: use display() instead
  • Since: 1.0.1
  • Access: public

[ Top ]

toHtml   [line 1091]

string toHtml( )

Returns PEAR_Info output (html code)
  • Since: 1.7.0RC1
  • Access: public

Overridden in child classes as:

PEAR_Info3::toHtml()

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:06:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.