function generateOpenGraphTags( $nodeID )
    {
        $this->ogIni = eZINI::instance( 'ngopengraph.ini' );
        $this->facebookCompatible = $this->ogIni->variable( 'General', 'FacebookCompatible' );
        $this->debug = $this->ogIni->variable( 'General', 'Debug' ) == 'enabled';

        $availableClasses = $this->ogIni->variable( 'General', 'Classes' );

        if ( $nodeID instanceof eZContentObjectTreeNode )
        {
            $contentNode = $nodeID;
        }
        else
        {
            $contentNode = eZContentObjectTreeNode::fetch( $nodeID );
            if ( !$contentNode instanceof eZContentObjectTreeNode )
            {
                return array();
            }
        }

        $contentObject = $contentNode->object();

        if ( !$contentObject instanceof eZContentObject || !in_array( $contentObject->contentClassIdentifier(), $availableClasses ) )
        {
            return array();
        }

        $returnArray = $this->processGenericData( $contentNode );

        $returnArray = $this->processObject( $contentObject, $returnArray );

        if ( $this->checkRequirements( $returnArray ) )
        {
            return $returnArray;
        }
        else
        {
            if ( $this->debug )
            {
                eZDebug::writeDebug( 'No', 'Facebook Compatible?' );
            }

            return array();
        }
    }
function generateOpenGraphTags( $nodeID )
    {
        $this->ogIni = eZINI::instance( 'ngopengraph.ini' );
        $this->facebookCompatible = $this->ogIni->variable( 'General', 'FacebookCompatible' );
        $this->debug = $this->ogIni->variable( 'General', 'Debug' ) == 'enabled';

        $availableClasses = $this->ogIni->variable( 'General', 'Classes' );

        if ( $nodeID instanceof eZContentObjectTreeNode )
        {
            $contentNode = $nodeID;
        }
        else
        {
            $contentNode = eZContentObjectTreeNode::fetch( $nodeID );
            if ( !$contentNode instanceof eZContentObjectTreeNode )
            {
                return array();
            }
        }

        $contentObject = $contentNode->object();

        if ( !$contentObject instanceof eZContentObject || !in_array( $contentObject->contentClassIdentifier(), $availableClasses ) )
        {
            return array();
        }

        $returnArray = $this->processGenericData( $contentNode );

        $returnArray = $this->processObject( $contentObject, $returnArray );

        if ( $this->checkRequirements( $returnArray ) )
        {
            return $returnArray;
        }
        else
        {
            if ( $this->debug )
            {
                eZDebug::writeDebug( 'No', 'Facebook Compatible?' );
            }

            return array();
        }
    }
function generateOpenGraphTags ( $ nodeID ) { $ this -> ogIni = eZINI :: instance ( 'ngopengraph.ini' ) ; $ this -> facebookCompatible = $ this -> ogIni -> variable ( 'General' , 'FacebookCompatible' ) ; $ this -> debug = $ this -> ogIni -> variable ( 'General' , 'Debug' ) == 'enabled' ; $ availableClasses = $ this -> ogIni -> variable ( 'General' , 'Classes' ) ; if ( $ nodeID instanceof eZContentObjectTreeNode ) { $ contentNode = $ nodeID ; } else { $ contentNode = eZContentObjectTreeNode :: fetch ( $ nodeID ) ; if ( ! $ contentNode instanceof eZContentObjectTreeNode ) { return array ( ) ; } } $ contentObject = $ contentNode -> object ( ) ; if ( ! $ contentObject instanceof eZContentObject || ! in_array ( $ contentObject -> contentClassIdentifier ( ) , $ availableClasses ) ) { return array ( ) ; } $ returnArray = $ this -> processGenericData ( $ contentNode ) ; $ returnArray = $ this -> processObject ( $ contentObject , $ returnArray ) ; if ( $ this -> checkRequirements ( $ returnArray ) ) { return $ returnArray ; } else { if ( $ this -> debug ) { eZDebug :: writeDebug ( 'No' , 'Facebook Compatible?' ) ; } return array ( ) ; } }
Executes opengraph operator

@param int|eZContentObjectTreeNode $nodeID

@return array
Executes opengraph operator