autoloads/opengraphoperator.php
function processGenericData( $contentNode )
    {
        $returnArray = array();

        $siteName = trim( eZINI::instance()->variable( 'SiteSettings', 'SiteName' ) );
        if ( !empty( $siteName ) )
        {
            $returnArray['og:site_name'] = $siteName;
        }

        $urlAlias = $contentNode->urlAlias();
        eZURI::transformURI( $urlAlias, false, 'full' );
        $returnArray['og:url'] = $urlAlias;

        if ( $this->facebookCompatible == 'true' )
        {
            $appID = trim( $this->ogIni->variable( 'GenericData', 'app_id' ) );
            if ( !empty( $appID ) )
            {
                $returnArray['fb:app_id'] = $appID;
            }

            $defaultAdmin = trim( $this->ogIni->variable( 'GenericData', 'default_admin' ) );
            $data = '';
            if ( !empty( $defaultAdmin ) )
            {
                $data = $defaultAdmin;

                $admins = $this->ogIni->variable( 'GenericData', 'admins' );

                if ( !empty( $admins ) )
                {
                    $admins = trim( implode( ',', $admins ) );
                    $data = $data . ',' . $admins;
                }
            }

            if ( !empty( $data ) )
            {
                $returnArray['fb:admins'] = $data;
            }
        }

        return $returnArray;
    }
function processGenericData( $contentNode )
    {
        $returnArray = array();

        $siteName = trim( eZINI::instance()->variable( 'SiteSettings', 'SiteName' ) );
        if ( !empty( $siteName ) )
        {
            $returnArray['og:site_name'] = $siteName;
        }

        $urlAlias = $contentNode->urlAlias();
        eZURI::transformURI( $urlAlias, false, 'full' );
        $returnArray['og:url'] = $urlAlias;

        if ( $this->facebookCompatible == 'true' )
        {
            $appID = trim( $this->ogIni->variable( 'GenericData', 'app_id' ) );
            if ( !empty( $appID ) )
            {
                $returnArray['fb:app_id'] = $appID;
            }

            $defaultAdmin = trim( $this->ogIni->variable( 'GenericData', 'default_admin' ) );
            $data = '';
            if ( !empty( $defaultAdmin ) )
            {
                $data = $defaultAdmin;

                $admins = $this->ogIni->variable( 'GenericData', 'admins' );

                if ( !empty( $admins ) )
                {
                    $admins = trim( implode( ',', $admins ) );
                    $data = $data . ',' . $admins;
                }
            }

            if ( !empty( $data ) )
            {
                $returnArray['fb:admins'] = $data;
            }
        }

        return $returnArray;
    }
function processGenericData ( $ contentNode ) { $ returnArray = array ( ) ; $ siteName = trim ( eZINI :: instance ( ) -> variable ( 'SiteSettings' , 'SiteName' ) ) ; if ( ! empty ( $ siteName ) ) { $ returnArray [ 'og:site_name' ] = $ siteName ; } $ urlAlias = $ contentNode -> urlAlias ( ) ; eZURI :: transformURI ( $ urlAlias , false , 'full' ) ; $ returnArray [ 'og:url' ] = $ urlAlias ; if ( $ this -> facebookCompatible == 'true' ) { $ appID = trim ( $ this -> ogIni -> variable ( 'GenericData' , 'app_id' ) ) ; if ( ! empty ( $ appID ) ) { $ returnArray [ 'fb:app_id' ] = $ appID ; } $ defaultAdmin = trim ( $ this -> ogIni -> variable ( 'GenericData' , 'default_admin' ) ) ; $ data = '' ; if ( ! empty ( $ defaultAdmin ) ) { $ data = $ defaultAdmin ; $ admins = $ this -> ogIni -> variable ( 'GenericData' , 'admins' ) ; if ( ! empty ( $ admins ) ) { $ admins = trim ( implode ( ',' , $ admins ) ) ; $ data = $ data . ',' . $ admins ; } } if ( ! empty ( $ data ) ) { $ returnArray [ 'fb:admins' ] = $ data ; } } return $ returnArray ; }
Processes literal Open Graph metadata

@param eZContentObjectTreeNode $contentNode

@return array
Processes literal Open Graph metadata