Class PageRankGrabber

Description

Google Page rank data grabber.

Based on Google toolbar data.

Working with data like that: "Rank_1:1:6". Without XML/HTML parsing.

  • sample: usage: $obj = new PageRankGrabber(); $rank = $obj->getRank('http://dir.org.ru');
  • author: exstabler // PHP version
  • author: snoopy // JS version
  • version: 1.1

Located in /pagerankPhp.php (line 33)


	
			
Method Summary
 void awesomeHash ( $value)
 void charCodeAt (int $value,  $position)
 string getContentCurl (string $url)
 integer getRank (string $url)
 string getRankUrlStingByPageUrl (string $page)
 void hexEncodeU32 ( $num)
 string toHex8 (int $num)
 void zerofillShift ( $a,  $b)
Methods
awesomeHash (line 104)

Service function: hashing

  • access: private
void awesomeHash ( $value)
  • $value
charCodeAt (line 125)

The charCodeAt() method returns the Unicode of the character at a specified position.

  • access: private
void charCodeAt (int $value,  $position)
  • int $value
  • $position
getContentCurl (line 54)

Returns content by URL with using cURL library.

  • return: Site content
  • access: public
string getContentCurl (string $url)
  • string $url
getRank (line 40)

Returns PageRank for specified page

  • return: PageRank value
  • access: public
integer getRank (string $url)
  • string $url
getRankUrlStingByPageUrl (line 71)

Returning URL where PR can be grabbed.

  • access: public
string getRankUrlStingByPageUrl (string $page)
  • string $page: - Page URL
hexEncodeU32 (line 94)

Service function: encoder

  • access: private
void hexEncodeU32 ( $num)
  • $num
toHex8 (line 86)

Transforms integer into hexademical

  • access: private
string toHex8 (int $num)
  • int $num
zerofillShift (line 136)

Service function: zerofil with shifing (unsigned shift right).

  • access: private
void zerofillShift ( $a,  $b)
  • $a
  • $b

Documentation generated on Thu, 18 Jan 2007 03:54:04 +0000 by phpDocumentor 1.3.1