function testGetChildren()
 {
     $conn = new SharePointClient();
     $conn->connect(self::URL, self::USER, self::PASS);
     $id = '{1A545C57-1EEB-4B56-9B2D-0425296D6D74}';
     $res = $conn->getChildren($id);
     print_r($res);
 }
 public function getRemoteRepository()
 {
     if (!$this->repo) {
         $this->repo = new SharePointClient();
     }
     if (!$this->repo->isConnected()) {
         // connect away
         $this->repo->connect($this->SharePointUrl, $this->SharePointUser, $this->SharePointPass);
     }
     return $this->repo;
 }