/**
  *  Gets the Google Pagerank
  *
  *  @param    string    $url    String, containing the query URL.
  *  @return   integer           Returns the Google PageRank.
  */
 public function getPageRank($url = false)
 {
     require_once SEOSTATSPATH . '3rdparty/GTB_PageRank.php';
     $url = false != $url ? $url : self::getUrl();
     $gtb = new GTB_PageRank($url);
     return $gtb->getPageRank();
 }
Exemple #2
0
 /**
  *  Gets the Google Pagerank
  *
  *  @param    string    $url    String, containing the query URL.
  *  @return   integer           Returns the Google PageRank.
  */
 public static function getPageRank($url = false)
 {
     // Composer autoloads classes out of the SEOstats namespace.
     // The custom autolader, however, does not. So we need to include it first.
     if (!class_exists('\\GTB_PageRank')) {
         require_once realpath(__DIR__ . '/3rdparty/GTB_PageRank.php');
     }
     $gtb = new \GTB_PageRank(parent::getUrl($url));
     $result = $gtb->getPageRank();
     return $result != "" ? $result : static::noDataDefaultValue();
 }
Exemple #3
0
 /**
  *  Gets the Google Pagerank
  *
  *  @param    string    $url    String, containing the query URL.
  *  @return   integer           Returns the Google PageRank.
  */
 public static function getPageRank($url = false)
 {
     require_once SEOSTATSPATH . 'Services/3rdparty/GTB_PageRank.php';
     $gtb = new \GTB_PageRank(parent::getUrl($url));
     return $gtb->getPageRank();
 }