autoloads/opengraphoperator.php
function checkRequirements( $returnArray )
    {
        $arrayKeys = array_keys( $returnArray );

        if ( !in_array( 'og:title', $arrayKeys ) || !in_array( 'og:type', $arrayKeys ) ||
            !in_array( 'og:image', $arrayKeys ) || !in_array( 'og:url', $arrayKeys ) )
        {
            if ( $this->debug )
            {
                eZDebug::writeError( $arrayKeys, 'Missing an OG required field: title, image, type, or url' );
            }

            return false;
        }

        if ( $this->facebookCompatible == 'true' )
        {
            if ( !in_array( 'og:site_name', $arrayKeys ) || ( !in_array( 'fb:app_id', $arrayKeys ) && !in_array( 'fb:admins', $arrayKeys ) ) )
            {
                if ( $this->debug )
                {
                    eZDebug::writeError( $arrayKeys, 'Missing a FB required field (in ngopengraph.ini): app_id, DefaultAdmin, or site name (site.ini)' );
                }

                return false;
            }
        }

        return true;
    }
function checkRequirements( $returnArray )
    {
        $arrayKeys = array_keys( $returnArray );

        if ( !in_array( 'og:title', $arrayKeys ) || !in_array( 'og:type', $arrayKeys ) ||
            !in_array( 'og:image', $arrayKeys ) || !in_array( 'og:url', $arrayKeys ) )
        {
            if ( $this->debug )
            {
                eZDebug::writeError( $arrayKeys, 'Missing an OG required field: title, image, type, or url' );
            }

            return false;
        }

        if ( $this->facebookCompatible == 'true' )
        {
            if ( !in_array( 'og:site_name', $arrayKeys ) || ( !in_array( 'fb:app_id', $arrayKeys ) && !in_array( 'fb:admins', $arrayKeys ) ) )
            {
                if ( $this->debug )
                {
                    eZDebug::writeError( $arrayKeys, 'Missing a FB required field (in ngopengraph.ini): app_id, DefaultAdmin, or site name (site.ini)' );
                }

                return false;
            }
        }

        return true;
    }
function checkRequirements ( $ returnArray ) { $ arrayKeys = array_keys ( $ returnArray ) ; if ( ! in_array ( 'og:title' , $ arrayKeys ) || ! in_array ( 'og:type' , $ arrayKeys ) || ! in_array ( 'og:image' , $ arrayKeys ) || ! in_array ( 'og:url' , $ arrayKeys ) ) { if ( $ this -> debug ) { eZDebug :: writeError ( $ arrayKeys , 'Missing an OG required field: title, image, type, or url' ) ; } return false ; } if ( $ this -> facebookCompatible == 'true' ) { if ( ! in_array ( 'og:site_name' , $ arrayKeys ) || ( ! in_array ( 'fb:app_id' , $ arrayKeys ) && ! in_array ( 'fb:admins' , $ arrayKeys ) ) ) { if ( $ this -> debug ) { eZDebug :: writeError ( $ arrayKeys , 'Missing a FB required field (in ngopengraph.ini): app_id, DefaultAdmin, or site name (site.ini)' ) ; } return false ; } } return true ; }
Checks if all required Open Graph metadata are present

@param array $returnArray

@return bool
Checks if all required Open Graph metadata are present