XML_FOAF
[ class tree: XML_FOAF ] [ index: XML_FOAF ] [ all elements ]

Class: XML_FOAF_Parser

Source Location: /XML_FOAF-0.4.0/XML/FOAF/Parser.php

Class Overview

XML_FOAF_Common
   |
   --XML_FOAF_Parser

FOAF Parser


Author(s):

Version:

  • Release: 0.4.0

Copyright:

  • 2003-2008 Davey Shafik and Synaptic Media.

Variables

Methods


Inherited Variables

Inherited Methods

Class: XML_FOAF_Common

XML_FOAF_Common::isAllowedForAgent()
Check if a property is allows for the current foaf:Agent

Class Details

[line 82]
FOAF Parser

Individual element parsers that start with _fetch will return multiple elements into the result Array, those that start with _get will return only a single element



[ Top ]


Class Variables

$agent_nodes = array()

[line 107]

  • Var: Nodes assumed to be primary foaf:Agents

Type:   array


[ Top ]

$foaf =

[line 97]

  • Var: of FOAF

Type:   object MemModel


[ Top ]

$foaf_data =

[line 92]

  • Var: FOAF data as Array

Type:   array


[ Top ]

$foaf_xml =  ''

[line 87]

  • Var: Original FOAF file

Type:   string


[ Top ]

$known_nodes = array()

[line 112]

  • Var: Nodes found in <foaf:knows>

Type:   array


[ Top ]

$rdf_parser =

[line 102]

  • Var: of the RAP RDF_Parser

Type:   object Instance


[ Top ]



Method Detail

__construct (Constructor)   [line 119]

XML_FOAF_Parser __construct( )

XML_FOAF_Parser Constructor
  • Todo: PEAR CS - should require_once be include_once?

[ Top ]

parseFromFile   [line 149]

void parseFromFile( string $file, [bool $use_include_path = false])

Parse a FOAF in the specified File
  • Access: public

Parameters:

string   $file   —  File Path for a FOAF file
bool   $use_include_path   —  Whether to look for the file in the php include_path

[ Top ]

parseFromMem   [line 163]

void parseFromMem( string $mem)

Parse a FOAF contained in the specified variable
  • Access: public

Parameters:

string   $mem   —  Variable holding a FOAF file's XML

[ Top ]

parseFromURI   [line 134]

void parseFromURI( string $uri)

Parse a FOAF at the specified URI
  • Access: public

Parameters:

string   $uri   —  URI for a FOAF file

[ Top ]

toArray   [line 1036]

array toArray( )

Return parsed FOAF data as an Array
  • Access: public

[ Top ]

toHTML   [line 1051]

string toHTML( mixed $foaf_data)

Return parsed FOAF data pretty HTML
  • Todo: Write code to return an HTML table
  • Todo: PEAR CS - should require_once be include_once?
  • Access: public

Parameters:

mixed   $foaf_data   —  the FOAF data

[ Top ]

toObject   [line 1021]

object toObject( )

Return parsed FOAF data as an Object
  • Todo: Make it work!
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:47:54 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.