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

Class: XML_FOAF

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

Class Overview

XML_FOAF_Common
   |
   --XML_FOAF

FOAF Creator


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 68]
FOAF Creator


[ Top ]


Class Variables

$children = array()

[line 84]

  • Var: Contains XML_Tree Child nodes for all FOAF elements

Type:   array


[ Top ]

$foaf =  null

[line 74]

  • Var: object containing the FOAF RDF/XML Tree

Type:   object XML_Tree


[ Top ]

$namespaces = array()

[line 79]

  • Var: Contains all namespaces in use

Type:   array


[ Top ]

$xml_tree =  null

[line 89]

  • Var: object for the FOAF

Type:   object XML_Tree


[ Top ]



Method Detail

addAimChatID   [line 447]

void addAimChatID( string $aim_chat_id)

Add a foaf:aimChatID element

Parameters:

string   $aim_chat_id   —  An AIM Username

[ Top ]

addChild   [line 1173]

boolean addChild( mixed $xml_tree)

Add an XML_Tree, XML_Tree_Node object or XML String to the FOAF
  • Access: public

Parameters:

mixed   $xml_tree   —  XML_Tree, XML_Tree_Node or XML String

[ Top ]

addCurrentProject   [line 980]

boolean addCurrentProject( string $uri)

Add a foaf:currentProject element

Parameters:

string   $uri   —  URI to a current projects homepage

[ Top ]

addDepiction   [line 184]

void addDepiction( string $uri)

Add a foaf:depiction element

Parameters:

string   $uri   —  URI For the Depicted image

[ Top ]

addFundedBy   [line 203]

void addFundedBy( string $uri)

Add a foaf:fundedBy element

Parameters:

string   $uri   —  URI for the funder

[ Top ]

addHomepage   [line 661]

void addHomepage( string $uri)

Add a foaf:homepage element

Parameters:

string   $uri   —  URI for the Homepage

[ Top ]

addIcqChatID   [line 464]

void addIcqChatID( string $icq_chat_id)

Add a foaf:icqChatID element

Parameters:

string   $icq_chat_id   —  An ICQ Number

[ Top ]

addImg   [line 836]

boolean addImg( string $uri)

Add a foaf:img element

Parameters:

string   $uri   —  URI for the img being depicted

[ Top ]

addInterest   [line 1060]

boolean addInterest( string $uri)

Add a foaf:interest element

Parameters:

string   $uri   —  URI with Info about the Interest

[ Top ]

addJabberID   [line 430]

void addJabberID( string $jabber_id)

Add a foaf:jabberID element

Parameters:

string   $jabber_id   —  A Jabber ID

[ Top ]

addKnows   [line 1158]

boolean addKnows( object $foaf_agent)

set a foaf:knows

Parameters:

object   $foaf_agent   —  XML_FOAF Object for the foaf:knows Agent

[ Top ]

addLogo   [line 222]

void addLogo( string $uri)

Add a foaf:logo element

Parameters:

string   $uri   —  URI for Logo Image

[ Top ]

addMade   [line 698]

void addMade( string $uri)

Add a foaf:made element

Parameters:

string   $uri   —  URI for the thing foaf:Agent made

[ Top ]

addMbox   [line 362]

void addMbox( string $mbox, [boolean $sha1 = false], [boolean $is_sha1_hash = false])

Add a foaf:mbox or foaf:mbox_sha1sum element

Parameters:

string   $mbox   —  Mailbox, either a mailto:addr, addr or an sha1 sum of mailto:addr
boolean   $sha1   —  Whether or not to use foaf:mbox_sha1sum
boolean   $is_sha1_hash   —  Whether or not given $mbox is already an sha1 sum

[ Top ]

addMboxSha1Sum   [line 397]

void addMboxSha1Sum( string $mbox, [boolean $is_sha1_sum = false])

Add a foaf:mbox_sha1sum element

Parameters:

string   $mbox   —  Mailbox, either a mailto:addr, addr or an sha1 sum of mailto:addr
boolean   $is_sha1_sum   —  Whether or not given $mbox is already an sha1 sum

[ Top ]

addMember   [line 1085]

boolean addMember( object $foaf_agent)

Add a foaf:member element

Parameters:

object   $foaf_agent   —  XML_FOAF object (with a foaf:agent set)

[ Top ]

addMsnChatID   [line 498]

void addMsnChatID( string $msn_chat_id)

Add a foaf:msnChatID element

Parameters:

string   $msn_chat_id   —  A MSN Chat username

[ Top ]

addMyersBriggs   [line 861]

boolean addMyersBriggs( string $myers_briggs)

Add a foaf:myersBriggs elements

Parameters:

string   $myers_briggs   —  Myers Briggs Personality classification

[ Top ]

addNick   [line 303]

void addNick( string $nick)

Add a foaf:nick element

Parameters:

string   $nick   —  foaf:Agents Nickname

[ Top ]

addOnlineAccount   [line 530]

void addOnlineAccount( string $account_name, [string $account_service_homepage = null], [string $account_type = null])

Add a foaf:OnlineAccount element

Parameters:

string   $account_name   —  Account Name
string   $account_service_homepage   —  URI to Account Service Homepage
string   $account_type   —  Account type (e.g http://xmlns.com/foaf/0.1/OnlineChatAccount)

[ Top ]

addOnlineChatAccount   [line 568]

void addOnlineChatAccount( string $account_name, string $account_service_homepage)

Add a foaf:OnlineChatAccount element

Parameters:

string   $account_name   —  Account Name
string   $account_service_homepage   —  URI Tto Account Service Homepage

[ Top ]

addOnlineEcommerceAccount   [line 637]

void addOnlineEcommerceAccount( string $account_name, string $account_service_homepage)

Add a foaf:OnlineEcommerceAccount element

Parameters:

string   $account_name   —  Account Name
string   $account_service_homepage   —  URI to Account Service Homepage

[ Top ]

addOnlineGamingAccount   [line 602]

void addOnlineGamingAccount( string $account_name, string $account_service_homepage)

Add a foaf:OnlineGamingAccount element

Parameters:

string   $account_name   —  Account Name
string   $account_service_homepage   —  URI to Account Service Homepage

[ Top ]

addPage   [line 243]

void addPage( string $document_uri, [string $title = null], [string $description = null])

Add a foaf:page element

Parameters:

string   $document_uri   —  URI for the Document being reference
string   $title   —  Title for the Document
string   $description   —  Description for the Document

[ Top ]

addPastProject   [line 1004]

boolean addPastProject( string $uri)

Add a foaf:pastProject element

Parameters:

string   $uri   —  URI to a past projects homepage

[ Top ]

addPhone   [line 336]

void addPhone( string $phone)

Add a foaf:phone element

Parameters:

string   $phone   —  foaf:Agents Phone Number

[ Top ]

addPublications   [line 956]

boolean addPublications( string $uri)

Add a foaf:publications elements

Parameters:

string   $uri   —  URI to the publications

[ Top ]

addSchoolHomepage   [line 932]

boolean addSchoolHomepage( string $uri)

Add a foaf:schoolHomepage element

Parameters:

string   $uri   —  URI for School Homepage

[ Top ]

addSeeAlso   [line 1139]

boolean addSeeAlso( string $uri)

set rdfs:seeAlso

Parameters:

string   $uri   —  URI for the resource

[ Top ]

addTheme   [line 268]

void addTheme( string $uri)

Add a foaf:theme element

Parameters:

string   $uri   —  URI for the Theme

[ Top ]

addWeblog   [line 680]

void addWeblog( string $uri)

Add a foaf:weblog element

Parameters:

string   $uri   —  URI for the weblog

[ Top ]

addWorkInfoHomepage   [line 908]

boolean addWorkInfoHomepage( string $uri)

Add a foaf:workInfoHomepage element

Parameters:

string   $uri   —  URI for Work Information Homepage

[ Top ]

addWorkplaceHomepage   [line 884]

boolean addWorkplaceHomepage( string $uri)

Add a foaf:workplaceHome element

Parameters:

string   $uri   —  URI for the Workplace Homepage

[ Top ]

addXmlns   [line 1249]

boolean addXmlns( string $qualifier, string $uri)

Set an XML Namespace
  • Access: public

Parameters:

string   $qualifier   —  XML Namespace qualifier
string   $uri   —  XML Namespace URI

[ Top ]

addYahooChatID   [line 481]

void addYahooChatID( string $yahoo_chat_id)

Add a foaf:yahooChatID element

Parameters:

string   $yahoo_chat_id   —  A Yahoo! Messenger ID

[ Top ]

dump   [line 1202]

boolean dump( [boolean $without_rdf = false])

Echo the FOAF RDF/XML tree
  • Access: public

Parameters:

boolean   $without_rdf   —  Ouput RDF/XML inside <rdf:RDF> root elements

[ Top ]

get   [line 1235]

string get( [boolean $without_rdf = false])

Alias for toXML
  • Access: public

Parameters:

boolean   $without_rdf   —  Return RDF/XML inside <rdf:RDF> root element

[ Top ]

newAgent   [line 134]

void newAgent( [string $agent_type = 'Person'])

Create new FOAF Agent

Parameters:

string   $agent_type   —  Agent type, this can be Person, Organization, Group, Agent.

[ Top ]

setBasedNear   [line 1033]

boolean setBasedNear( float $geo_lat, float $geo_long)

set foaf:basedNear

Parameters:

float   $geo_lat   —  Latitute for the geo:Point
float   $geo_long   —  Longitude for the geo:Point

[ Top ]

setFamilyName   [line 793]

boolean setFamilyName( string $family_name)

set foaf:familyName

Parameters:

string   $family_name   —  foaf:Agents Family name

[ Top ]

setFirstName   [line 749]

boolean setFirstName( string $first_name)

set foaf:firstName

Parameters:

string   $first_name   —  foaf:Agents First Name

[ Top ]

setGeekcode   [line 726]

boolean setGeekcode( string $geek_code)

set foaf:geekcode

Parameters:

string   $geek_code   —  foaf:Agents Geek Code

[ Top ]

setGender   [line 413]

void setGender( string $gender)

set foaf:gender

Parameters:

string   $gender   —  foaf:Agents Gender (typically 'male' or 'female')

[ Top ]

setGivenName   [line 319]

void setGivenName( string $given_name)

set foaf:givenname

Parameters:

string   $given_name   —  foaf:Agents Given Name

[ Top ]

setMembershipClass   [line 1108]

boolean setMembershipClass( mixed $membership_class)

Set foaf:membershipClass

Parameters:

mixed   $membership_class   —  XML String or XML_Tree/XML_Tree_Node object

[ Top ]

setName   [line 168]

void setName( string $name)

Set the foaf:name of the Agent

Parameters:

string   $name   —  Name for the Agent.

[ Top ]

setPlan   [line 815]

boolean setPlan( string $plan)

set foaf:plan

Parameters:

string   $plan   —  .plan file contents

[ Top ]

setSurname   [line 771]

boolean setSurname( string $surname)

set foaf:surname

Parameters:

string   $surname   —  foaf:Agents Surname

[ Top ]

setTitle   [line 287]

void setTitle( string $title)

set foaf:title

Parameters:

string   $title   —  foaf:Agents title

[ Top ]

toXML   [line 1216]

string toXML( [boolean $without_rdf = false])

Return the FOAF RDF/XML tree
  • Access: public

Parameters:

boolean   $without_rdf   —  Return RDF/XML inside <rdf:RDF> root element

[ Top ]


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