PHP_CompatInfo_Renderer::factory

PHP_CompatInfo_Renderer::factory() – Create required instance of the Output 'driver'

Synopsis

require_once 'PHP/CompatInfo/Renderer.php';

object PHP_CompatInfo_Renderer & PHP_CompatInfo_Renderer::factory ( object &$parser , string $type = 'array' , array $conf = array() )

Description

Creates a concrete instance of the renderer depending of $type

Parameter

object &$parser

A concrete instance of the parser

string $type

(optional) Type of instance required, case insensitive

array $conf

(optional) A hash containing any additional configuration information that a subclass might need.

Return value

returns A concrete PHP_CompatInfo_Renderer instance, or null on error.

Throws

throws no exceptions thrown

Since

since version 1.8.0b2 (2008-06-03)

Note

This function can not be called statically.

Base Renderer Class constructor (Previous) Update the current view (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.