PEAR logo

PHP_CompatInfo : The Definitive Guide

Name

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 ( &$parser,  
  $type = 'array' ,  
  $conf = array() );  
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.

PHP_CompatInfo : The Definitive Guide v 1.8.0 : August 1, 2008