Source for file Factory.class.php
Documentation is available at Factory.class.php
* Gumbo Library Framework
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* Debug Report Factory Class
* @copyright Copyright (c) 2007, iBayou, Michael Luster
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
* @author Michael Luster <mluster79@yahoo.com>
* @link http://sourceforge.net/projects/phpgumbo
* @desc Debug Report Factory Class
gumbo_load ("Interface_Factory");
* Returns an instantiated object
* @param string $name name of the class or key string
* @param mixed $args additional arguments
* @throws Gumbo_Exception
* @uses Gumbo_Load, Gumbo_Debug
public function factory ($name=
null, $args=
null) {
throw
new Gumbo_Exception ("Invalid Argument 'name:str' => {$name}:" .
getType ($name));
$class_name =
"Gumbo_Debug_Report_" .
ucwords ($name);
throw
new Gumbo_Exception_Class ("Class|Interface Not Found: {$class_name}");
$obj =
new $class_name ();
$e->setFunction (__METHOD__
);