classes/ngopengraphbase.php
static function getInstance( eZContentObjectAttribute $objectAttribute )
    {
        $datatypeString = $objectAttribute->attribute( 'data_type_string' );
        $dataTypeHandlers = self::$ogIni->variable( 'OpenGraph', 'DataTypeHandlers' );

        if ( array_key_exists( $datatypeString, $dataTypeHandlers ) )
        {
            if ( class_exists( $dataTypeHandlers[$datatypeString] ) )
            {
                return new $dataTypeHandlers[$datatypeString]( $objectAttribute );
            }
        }

        return new ngOpenGraphBase( $objectAttribute );
    }
static function getInstance( eZContentObjectAttribute $objectAttribute )
    {
        $datatypeString = $objectAttribute->attribute( 'data_type_string' );
        $dataTypeHandlers = self::$ogIni->variable( 'OpenGraph', 'DataTypeHandlers' );

        if ( array_key_exists( $datatypeString, $dataTypeHandlers ) )
        {
            if ( class_exists( $dataTypeHandlers[$datatypeString] ) )
            {
                return new $dataTypeHandlers[$datatypeString]( $objectAttribute );
            }
        }

        return new ngOpenGraphBase( $objectAttribute );
    }
static function getInstance ( eZContentObjectAttribute $ objectAttribute ) { $ datatypeString = $ objectAttribute -> attribute ( 'data_type_string' ) ; $ dataTypeHandlers = self :: $ ogIni -> variable ( 'OpenGraph' , 'DataTypeHandlers' ) ; if ( array_key_exists ( $ datatypeString , $ dataTypeHandlers ) ) { if ( class_exists ( $ dataTypeHandlers [ $ datatypeString ] ) ) { return new $ dataTypeHandlers [ $ datatypeString ] ( $ objectAttribute ) ; } } return new ngOpenGraphBase ( $ objectAttribute ) ; }
Gets the instance of Open Graph attribute handler for the attribute

@param eZContentObjectAttribute $objectAttribute

@return ngOpenGraphBase
Gets the instance of Open Graph attribute handler for the attribute