Skip to content

Commit 0f4f36b

Browse files
committed
SharePoint model updated to 16.0.22112.12004 version, PHPUnit switched to 9 version
1 parent dc6c82d commit 0f4f36b

541 files changed

Lines changed: 773 additions & 567 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"ext-libxml": "*"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^5"
29+
"phpunit/phpunit": "^9"
3030
},
3131
"autoload-dev": {
3232
"psr-4": {

examples/SharePoint/ConnectWithAppOnly.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
require_once __DIR__ . '/../vendor/autoload.php';
4-
$settings = include(__DIR__ . '/../../Settings.php');
4+
$settings = include(__DIR__ . './../../tests/Settings.php');
55

66
use Office365\Runtime\Auth\ClientCredential;
77
use Office365\SharePoint\ClientContext;
@@ -10,9 +10,7 @@
1010
$credentials = new ClientCredential($settings['ClientId'], $settings['ClientSecret']);
1111
$ctx = (new ClientContext($settings['Url']))->withCredentials($credentials);
1212

13-
$whoami = $ctx->getWeb()->getCurrentUser();
14-
$ctx->load($whoami);
15-
$ctx->executeQuery();
13+
$whoami = $ctx->getWeb()->getCurrentUser()->get()->executeQuery();
1614
print $whoami->getLoginName();
1715
}
1816
catch (Exception $e) {

examples/SharePoint/CustomRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
require_once __DIR__ . '/../vendor/autoload.php';
4-
$settings = include(__DIR__ . '/../../Settings.php');
4+
$settings = include(__DIR__ . './../../tests/Settings.php');
55

66
use Office365\Runtime\Auth\ClientCredential;
77
use Office365\Runtime\Http\RequestOptions;

generator/GenerateModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ function syncSharePointMetadataFile($fileName){
152152
} catch (Exception $ex) {
153153
$message = $ex->getMessage();
154154
print_r("An error occurred while generating model: $message \r\n");
155-
}
155+
}

generator/Settings.SharePoint.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"metadataPath": "./metadata/SharePoint.xml",
3-
"outputPath": "../src/SharePoint",
4-
"templatePath": "./templates/sharepoint/",
2+
"metadataPath": ".\/metadata\/SharePoint.xml",
3+
"outputPath": "..\/src\/SharePoint",
4+
"templatePath": ".\/templates\/sharepoint\/",
55
"includeDocAnnotations": true,
66
"docsRoot": "https:\/\/docs.microsoft.com\/en-us\/openspecs\/sharepoint_protocols\/ms-csomspt\/",
77
"rootNamespace": "Office365\\SharePoint",
88
"entityRootNamespace": "SP",
9-
"version": "16.0.21729.12001",
10-
"timestamp": "2021-10-09T12:03:32+03:00",
9+
"version": "16.0.22112.12004",
10+
"timestamp": "2022-01-31T19:42:52+02:00",
1111
"placeholder": "This file was generated by phpSPO model generator",
1212
"typeMappings": {
1313
"SP.List": "SP.SPList",

generator/metadata/SharePoint.xml

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/OneDrive/DriveItems/DriveItem.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@
99

1010
use Office365\GeoCoordinates;
1111
use Office365\OneDrive\BaseItem;
12-
use Office365\OneDrive\Deleted;
1312
use Office365\OneDrive\ItemAnalytics;
1413
use Office365\OneDrive\ListItems\ListItem;
15-
use Office365\OneDrive\Package;
1614
use Office365\OneDrive\PermissionCollection;
17-
use Office365\OneDrive\PublicationFacet;
18-
use Office365\OneDrive\RemoteItem;
1915
use Office365\OneDrive\Root;
2016
use Office365\OneDrive\SearchResult;
21-
use Office365\OneDrive\Shared;
2217
use Office365\OneDrive\SharepointIds;
18+
use Office365\OneDrive\Shares\Shared;
2319
use Office365\OneDrive\Workbooks\Workbook;
2420
use Office365\Runtime\Actions\DeleteEntityQuery;
2521
use Office365\Runtime\Http\HttpMethod;

src/SharePoint/APIHubConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2019-11-17T17:00:44+00:00 16.0.19506.12022
4+
* Generated 2019-11-17T17:00:44+00:00 16.0.19506.12022
55
*/
66
namespace Office365\SharePoint;
77

src/SharePoint/AccessRequests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2019-11-17T17:00:44+00:00 16.0.19506.12022
4+
* Generated 2019-11-17T17:00:44+00:00 16.0.19506.12022
55
*/
66
namespace Office365\SharePoint;
77

src/SharePoint/Alert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2020-05-26T22:00:28+00:00 16.0.20113.12008
4+
* Generated 2020-05-26T22:00:28+00:00 16.0.20113.12008
55
*/
66
namespace Office365\SharePoint;
77

0 commit comments

Comments
 (0)