SharePointGetViewCollection

This class provides the functions of GetViewCollection method of Sharepoint web services.

Base
SharePointHandlerBase

Properties
Name Summary
SiteURL target site url
ListName target list name


Methods
SharePointGetViewCollection.GenerateCommand($xml)
SharePointGetViewCollection.GetViewGUIDFromViewName($viewname)
SharePointGetViewCollection.Initialize($siteurl, $listname)
SharePointGetViewCollection.Interpret($xmlstr)

ex)
# define URL
$url = "http://myserver/";
$listname = "mylist";
# create retriever
$retriever = new SharePointGetViewCollection;
# initialize retriever
$retriever = $retriever.Initialize($url, $listname);
# get the lists
$ret = $retriever.Get();
# check the lists
$ret;

ex) using other credentials
$url = "http://myserver/";
$listname = "mylist";
# use SetCredential method
$ret = (new SharePointGetViewCollection).Initialize($url, $listname).SetCredential().Get();
# check the list
$ret;

Last edited Mar 2, 2013 at 1:42 PM by Tom__S, version 2

Comments

No comments yet.