My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
NetworkResource  
Represents a simple data resource that exists on the network.
Autogenerated
Updated Jan 13, 2010 by innovat...@gmail.com

note: this page is automatically generated from embedded documentation in the PHP source.

Overview

Fields inherited from Moriarty.SimpleGraph

Constructors

Methods

  • delete_from_network - Issue an HTTP DELETE to the resource's URI
  • get_comment - Obtain the value of the resource's comment property
  • get_from_network - Perform an HTTP GET on the resource's URI to obtain an RDF/XML document containing data associated with the resource
  • get_label - Obtain the value of the resource's label property
  • put_to_network - Construct an RDF/XML document containing data associated with the resource and send it using HTTP PUT to the resource's URI
  • set_comment - Set the value of the resource's comment property
  • set_label - Set the value of the resource's label property

Methods inherited from Moriarty.SimpleGraph

Constructor Detail

NetworkResource

public NetworkResource(mixed uri, mixed credentials, mixed request_factory)

Create a new instance of this class

Param:
string uri URI of the resource
Credentials credentials the credentials to use for authenticated requests (optional)

Method Detail

delete_from_network

public void delete_from_network()

Issue an HTTP DELETE to the resource's URI

Return:
HttpResponse

get_comment

public void get_comment()

Obtain the value of the resource's comment property

Return:
string

get_from_network

public void get_from_network()

Perform an HTTP GET on the resource's URI to obtain an RDF/XML document containing data associated with the resource

Return:
HttpResponse

get_label

public void get_label(mixed resource_uri, mixed capitalize, mixed use_qnames)

Obtain the value of the resource's label property

Return:
string

put_to_network

public void put_to_network()

Construct an RDF/XML document containing data associated with the resource and send it using HTTP PUT to the resource's URI

Return:
HttpResponse

set_comment

public void set_comment(mixed value)

Set the value of the resource's comment property

Param:
string comment the new comment

set_label

public void set_label(mixed label)

Set the value of the resource's label property

Param:
string label the new label

Generated by PHPDoctor 2RC2


Sign in to add a comment