Class BookmarkParser

Description

This class parses IE, Netscape and Opera bookmark files and returns arrays with the bookmark / folder information.

  • access: public
  • version: 0.61 - 2003/07/07
  • copyright: Lennart Groetzbach <lennartg@web.de> - distributed under the LGPL
  • author: Lennart Groetzbach <lennartg@web.de>

Located in Program_Root/BookmarkParser2.php (line 66)


	
			
Variable Summary
Method Summary
int parseInternetExplorer (String $url, int $folderID, String $urlFunction, String $folderFunction, [boolean $firstCall = true])
int parseNetscape (String $url, int $folderID, String $urlFunction, String $folderFunction)
int parseOpera (String $url, int $folderID, String $urlFunction, String $folderFunction)
Integer _callFunction (String $functionName, [boolean $abortAmbiguous = false], mixed 2)
Variables
mixed $error_message (line 74)

The generated error messages, line feed seperated

  • access: public
mixed $foldersParsed (line 82)

The number of folders parsed after a function call

  • access: public
mixed $urlsParsed (line 90)

The number of bookmarks parsed after a function call

  • access: public
Methods
parseInternetExplorer (line 310)

Parses an IE bookmarks folder.

Parses the IE folder and files.

  • return: -1 if error occurs
  • access: public
int parseInternetExplorer (String $url, int $folderID, String $urlFunction, String $folderFunction, [boolean $firstCall = true])
  • String $url: url to the bookmark file
  • int $folderID: id of the root folder
  • String $urlFunction: the function name to be called when an url is parsed
  • String $folderFunction: the function name to be called when a bookmark is parsed
  • boolean $firstCall:

    only true, upon the first call

parseNetscape (line 222)

Parses a Netscape bookmark file

Parses the file, default name is "bookmarks.html". Tested with Netscape 4.x and 6.x.

  • return: -1 if error occurs
  • access: public
int parseNetscape (String $url, int $folderID, String $urlFunction, String $folderFunction)
  • String $url: url to the bookmark file
  • int $folderID: id of the root folder
  • String $urlFunction: the function name to be called when an url is parsed
  • String $folderFunction:

    the function name to be called when a bookmark is parsed

parseOpera (line 109)

Parses an Opera bookmark file

Parses the file, default name for bookmark file is "Opera6.adr" Tested with Opera 6.

  • return: -1 if error occurs
  • access: public
int parseOpera (String $url, int $folderID, String $urlFunction, String $folderFunction)
  • String $url: url to the bookmark file
  • int $folderID: id of the root folder
  • String $urlFunction: the function name to be called when an url is parsed
  • String $folderFunction:

    the function name to be called when a bookmark is parsed

_callFunction (line 382)

Checks

  • return: -1 when an error occurs or the retrun value of the function
  • access: private
Integer _callFunction (String $functionName, [boolean $abortAmbiguous = false], mixed 2)
  • String $functionName
  • boolean $abortAmbiguous
  • mixed 2:

    the params for the function

Documention generated on Mon, 7 Jul 2003 22:57:20 +0200 by phpDocumentor 1.2.1