PEAR_Frontend::singleton

PEAR_Frontend::singleton() – Retrieve the frontend object

Synopsis

require_once '/Frontend.php';

PEAR_Frontend_CLI|PEAR_Frontend_Web|PEAR_Frontend_Gtk& PEAR_Frontend::singleton ( mixed $type = null )

Description

Get a single unique copy of the current PEAR frontend object.

Parameter

string|NULL $type

if being called for the first time, the user can specify the kind of frontend to return. Otherwise, this parameter is ignored, and the existing single frontend is returned.

Throws

throws no exceptions thrown

Note

This function can be called statically.

setFrontendClass (Previous) PEAR_Installer (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.