Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e7f0fe6
add phpSPO lib
blizzz Dec 8, 2016
943d990
initial Backend and Storage class
blizzz Dec 2, 2016
0729e05
WIP changes
blizzz Dec 12, 2016
04472b1
DI and init methods, we go for basic auth until we here anything else
blizzz Dec 20, 2016
2a28248
work on stat
blizzz Dec 21, 2016
2c181b4
work on stat and tests
blizzz Dec 21, 2016
b0d8a7a
complete stat(), implement filetype()
blizzz Dec 23, 2016
a44f37b
implement fileExists() and unlink()
blizzz Dec 23, 2016
d895e71
update php-spo
blizzz Mar 9, 2017
9be6573
first testing and fixes
blizzz Mar 11, 2017
2991f39
polish stat()
blizzz Mar 13, 2017
61298bf
rework file_type() and file_exists()
blizzz Mar 14, 2017
89d48f8
Split SharePoint Backend in two classes
blizzz Mar 15, 2017
ab1a54f
implement opendir()
blizzz Mar 17, 2017
c1952c0
fix interpreting mtime from SP
blizzz Mar 22, 2017
1f25415
performance tuning part 1: add cache, saves 80% time
blizzz Mar 22, 2017
e072312
properly add php-spo
blizzz Mar 23, 2017
5228c95
perf tuning pt 2. recognize files and folders when blindly fetching them
blizzz Mar 23, 2017
2d50097
Perf optimization part 3: further lookup reduction
blizzz Mar 24, 2017
0e9681a
implement mkdir
blizzz Mar 25, 2017
aeffd16
cache file and folder instances fetched by fetchFolderContents
blizzz Mar 27, 2017
620b459
implement rmdir()
blizzz Mar 28, 2017
e2c03bb
implement read part of fopen
blizzz Mar 31, 2017
56a2d83
implemented fopen
blizzz Apr 5, 2017
9b79ddb
fixed and improved delete and rename methods
blizzz Apr 19, 2017
1ac9a49
remove resetClientContext() the troublemaker will be fixed in the lib
blizzz Apr 20, 2017
72225ab
some cleanup
blizzz Apr 21, 2017
007ca14
get CRUD permissions
blizzz Apr 21, 2017
ab29f87
add missing PHP Doc
blizzz Apr 24, 2017
b217488
adjust and extend unit tests
blizzz Apr 24, 2017
f022d44
Update phpSPO and apply https://github.com/vgrem/phpSPO/pull/63
blizzz Apr 24, 2017
90d3656
syntax fixes in upstream lib for php < 7.1
blizzz Apr 26, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions apps/files_external/3rdparty/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@ icewind/smb/tests
icewind/smb/install_libsmbclient.sh
icewind/smb/.travis.yml
icewind/streams/tests

vgrem/php-spo/examples
vgrem/php-spo/tests
vgrem/php-spo/vendor
vgrem/php-spo/.git
vgrem/php-spo/.travis.yml
vgrem/php-spo/phpunit_o365.xml
4 changes: 2 additions & 2 deletions apps/files_external/3rdparty/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"require": {
"icewind/smb": "2.0.0",
"icewind/streams": "0.5.2"
"icewind/streams": "0.5.2",
"vgrem/php-spo": "dev-master"
}
}

50 changes: 48 additions & 2 deletions apps/files_external/3rdparty/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions apps/files_external/3rdparty/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,13 @@ private function findFileWithExtension($class, $ext)

$first = $class[0];
if (isset($this->prefixLengthsPsr4[$first])) {
foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
if (0 === strpos($class, $prefix)) {
foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath.'\\';
if (isset($this->prefixDirsPsr4[$search])) {
foreach ($this->prefixDirsPsr4[$search] as $dir) {
$length = $this->prefixLengthsPsr4[$first][$search];
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
return $file;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/files_external/3rdparty/composer/LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Copyright (c) 2016 Nils Adermann, Jordi Boggiano
Copyright (c) Nils Adermann, Jordi Boggiano

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
317 changes: 295 additions & 22 deletions apps/files_external/3rdparty/composer/autoload_classmap.php

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions apps/files_external/3rdparty/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
$baseDir = $vendorDir;

return array(
'Office365\\PHP\\Client\\' => array($vendorDir . '/vgrem/php-spo/src'),
'Icewind\\Streams\\Tests\\' => array($vendorDir . '/icewind/streams/tests'),
'Icewind\\Streams\\' => array($vendorDir . '/icewind/streams/src'),
'Icewind\\SMB\\Test\\' => array($vendorDir . '/icewind/smb/tests'),
Expand Down
325 changes: 303 additions & 22 deletions apps/files_external/3rdparty/composer/autoload_static.php

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions apps/files_external/3rdparty/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,51 @@
}
],
"description": "A set of generic stream wrappers"
},
{
"name": "vgrem/php-spo",
"version": "dev-master",
"version_normalized": "9999999-dev",
"source": {
"type": "git",
"url": "https://github.com/vgrem/phpSPO.git",
"reference": "9a866bae3552d01b8a8e33ddd8faf8adc66e2423"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vgrem/phpSPO/zipball/9a866bae3552d01b8a8e33ddd8faf8adc66e2423",
"reference": "9a866bae3552d01b8a8e33ddd8faf8adc66e2423",
"shasum": ""
},
"require": {
"ext-curl": "*",
"php": ">=5.4"
},
"time": "2017-04-19T08:17:21+00:00",
"type": "library",
"installation-source": "source",
"autoload": {
"psr-4": {
"Office365\\PHP\\Client\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0+"
],
"authors": [
{
"name": "Vadim Gremyachev",
"email": "vvgrem@gmail.com"
}
],
"description": "The library provides a Office 365 REST client for PHP. It allows to performs CRUD operations against Office 365 resources via an REST/OData based API",
"keywords": [
"Office365",
"api",
"curl",
"rest",
"sharepoint"
]
}
]
63 changes: 63 additions & 0 deletions apps/files_external/3rdparty/vgrem/php-spo/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
Loading