public static function getInstance($name, $config = array())
    {
        static $instance;

        if (!$instance) {
            $instance = new static();
        }

        $object = clone $instance;

        $config['name'] = $name;

        $object->append($config)
        ->append(array(
            'attribs' => array(
            'id' => null,
            ),
        ));

        return $object;
    }
public static function getInstance($name, $config = array())
    {
        static $instance;

        if (!$instance) {
            $instance = new static();
        }

        $object = clone $instance;

        $config['name'] = $name;

        $object->append($config)
        ->append(array(
            'attribs' => array(
            'id' => null,
            ),
        ));

        return $object;
    }
public static function getInstance ( $ name , $ config = array ( ) ) { static $ instance ; if ( ! $ instance ) { $ instance = new static ( ) ; } $ object = clone $ instance ; $ config [ 'name' ] = $ name ; $ object -> append ( $ config ) -> append ( array ( 'attribs' => array ( 'id' => null , ) , ) ) ; return $ object ; }
Instantiate a template object.

@param string $name   Template object name
@param array  $config Array of configuration

@return LibBaseTemplateObject
Instantiate a template object .