Class RestfulService
RestfulService class allows you to consume various RESTful APIs. Through this you could connect and aggregate data of various web services. For more info visit wiki documentation - http://doc.silverstripe.org/doku.php?id=restfulservice
- Object
-
ViewableData
implements
IteratorAggregate
-
RestfulService
Methods summary
public static
|
#
set_default_proxy( string $proxy, integer $port = 80, string $user = "", string $password = "", boolean $socks = false )
Sets default proxy settings for outbound RestfulService connections |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
|
public
|
#
request( mixed $subURL = '', mixed $method = "GET", mixed $data = null, mixed $headers = null, mixed $curlOptions = array() )
Makes a request to the RESTful server, and return a |
public
|
|
public
|
#
getAttributes( string $xml, string $collection = NULL, string $element = NULL )
Gets attributes as an array, of a particular type of element. Example : <photo id="2636" owner="123" secret="ab128" server="2"> returns id, owner,secret and sever attribute values of all such photo elements. |
public
|
#
getAttribute( string $xml, string $collection = NULL, string $element = NULL, string $attr )
Gets an attribute of a particular element. |
public
|
|
protected
|
|
public
|
|
public
|
#
searchValue( string $xml, string $node = NULL )
Searches for a node in document tree and returns it value. |
public
|
#
searchAttributes( string $xml, string $node = NULL )
Searches for a node in document tree and returns its attributes. |
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentMember(),
CurrentPage(),
Debug(),
Even(),
EvenOdd(),
First(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Last(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
TotalItems(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
defineMethods(),
escapeTypeForField(),
getField(),
getIterator(),
getSecurityID(),
getXMLValues(),
hasField(),
hasValue(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj(),
setField()
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
create(),
createMethod(),
create_from_string(),
exists(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
protected
mixed
|
$baseURL | |
protected
mixed
|
$queryString | |
protected
mixed
|
$errorTag | |
protected
mixed
|
$checkErrors | |
protected
mixed
|
$cache_expire | |
protected
mixed
|
$authUsername | |
protected
mixed
|
$authPassword | |
protected
array
|
$customHeaders | |
protected
mixed
|
$proxy | |
protected static
mixed
|
$default_proxy |
Properties inherited from ViewableData
$casting,
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems