kernel/classes/ezcollaborationviewhandler.php
static function instance( $viewMode, $type = self::TYPE_STANDARD )
    {
        if ( $type == self::TYPE_STANDARD )
            $instance =& $GLOBALS["eZCollaborationView"][$viewMode];
        else if ( $type == self::TYPE_GROUP )
            $instance =& $GLOBALS["eZCollaborationGroupView"][$viewMode];
        else
        {
            return null;
        }
        if ( !isset( $instance ) )
        {
            $instance = new eZCollaborationViewHandler( $viewMode, $type );
        }
        return $instance;
    }
static function instance( $viewMode, $type = self::TYPE_STANDARD )
    {
        if ( $type == self::TYPE_STANDARD )
            $instance =& $GLOBALS["eZCollaborationView"][$viewMode];
        else if ( $type == self::TYPE_GROUP )
            $instance =& $GLOBALS["eZCollaborationGroupView"][$viewMode];
        else
        {
            return null;
        }
        if ( !isset( $instance ) )
        {
            $instance = new eZCollaborationViewHandler( $viewMode, $type );
        }
        return $instance;
    }
static function instance ( $ viewMode , $ type = self :: TYPE_STANDARD ) { if ( $ type == self :: TYPE_STANDARD ) $ instance = & $ GLOBALS [ "eZCollaborationView" ] [ $ viewMode ] ; else if ( $ type == self :: TYPE_GROUP ) $ instance = & $ GLOBALS [ "eZCollaborationGroupView" ] [ $ viewMode ] ; else { return null ; } if ( ! isset ( $ instance ) ) { $ instance = new eZCollaborationViewHandler ( $ viewMode , $ type ) ; } return $ instance ; }
Returns a shared instance of the eZCollaborationViewHandler class
pr the two input params.


@param string $viewMode
@param int $type Is self::TYPE_STANDARD by default
@return eZCollaborationViewHandler
Returns a shared instance of the eZCollaborationViewHandler class pr the two input params .