Skip to content

Commit 24d926b

Browse files
authored
Merge pull request #229 from leancloud/prepare-release-doc
release 0.14.0
2 parents 2abbfd3 + a6dc7d9 commit 24d926b

File tree

7 files changed

+510
-424
lines changed

7 files changed

+510
-424
lines changed

Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
0.14.0 Released on 2020-12-15
3+
----
4+
5+
- Add `runRemote()` (invoking cloud function remotely).
6+
- Allow specifying the file key/path with `masterKey`.
7+
- Add license (Apache-2.0).
8+
29
0.13.0 Released on 2020-07-15
310
----
411

Hacking.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ and edit `Changelog.md` (git log subjects are for reference only, do not leave t
4747

4848
Commit changes and send a pull request at leancloud/php-sdk.
4949

50-
If everything is O.K., the maintainer will merge the pull request, push a new tag, and publish a new release at GitHub.
50+
If everything is O.K., the maintainer will merge the pull request, create a new tag, and publish a new release at GitHub.
51+
Then a new version will be published at Packagist automatically.
52+
It is recommended for the maintainer to create the tag when drafting a new release on GitHub web interface.
53+
If you prefer creating a tag locally, do not forget to pull from origin before creating a new tag.
5154
Then a new version will be published at Packagist automatically.
5255

5356
## Run Tests with Coverage

docs/class-LeanCloud.Client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ <h4>Returns</h4>
12821282
<td class="value">
12831283
<div>
12841284
<a href="#VERSION" class="anchor">#</a>
1285-
<code><span class="php-quote">'0.13.0'</span></code>
1285+
<code><span class="php-quote">'0.14.0'</span></code>
12861286
</div>
12871287
</td>
12881288
</tr>

docs/class-LeanCloud.File.html

Lines changed: 92 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ <h1>Class File</h1>
135135
<b>Namespace:</b> <a href="namespace-LeanCloud.html">LeanCloud</a><br>
136136

137137

138-
<b>Located at</b> <a href="source-class-LeanCloud.File.html#9-451" title="Go to source code">LeanCloud/File.php</a>
138+
<b>Located at</b> <a href="source-class-LeanCloud.File.html#9-459" title="Go to source code">LeanCloud/File.php</a>
139139
<br>
140140
</div>
141141

@@ -155,7 +155,7 @@ <h1>Class File</h1>
155155

156156
<td class="name"><div>
157157
<a class="anchor" href="#___construct">#</a>
158-
<code><a href="source-class-LeanCloud.File.html#43-67" title="Go to source code">__construct</a>( <span>string <var>$name</var></span>, <span>mixed <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$mimeType</var> = <span class="php-keyword1">null</span></span> )</code>
158+
<code><a href="source-class-LeanCloud.File.html#43-68" title="Go to source code">__construct</a>( <span>string <var>$name</var></span>, <span>mixed <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$mimeType</var> = <span class="php-keyword1">null</span></span> )</code>
159159

160160
<div class="description short">
161161
<p>Initialize file</p>
@@ -194,7 +194,7 @@ <h4>Parameters</h4>
194194

195195
<td class="name"><div>
196196
<a class="anchor" href="#_createWithUrl">#</a>
197-
<code><a href="source-class-LeanCloud.File.html#69-82" title="Go to source code">createWithUrl</a>( <span>string <var>$name</var></span>, <span>string <var>$url</var></span>, <span>string <var>$mimeType</var> = <span class="php-keyword1">null</span></span> )</code>
197+
<code><a href="source-class-LeanCloud.File.html#70-83" title="Go to source code">createWithUrl</a>( <span>string <var>$name</var></span>, <span>string <var>$url</var></span>, <span>string <var>$mimeType</var> = <span class="php-keyword1">null</span></span> )</code>
198198

199199
<div class="description short">
200200
<p>Create file with public external URL</p>
@@ -237,7 +237,7 @@ <h4>Returns</h4>
237237

238238
<td class="name"><div>
239239
<a class="anchor" href="#_createWithData">#</a>
240-
<code><a href="source-class-LeanCloud.File.html#84-95" title="Go to source code">createWithData</a>( <span>string <var>$name</var></span>, <span>string <var>$data</var></span>, <span>string <var>$mimeType</var> = <span class="php-keyword1">null</span></span> )</code>
240+
<code><a href="source-class-LeanCloud.File.html#85-96" title="Go to source code">createWithData</a>( <span>string <var>$name</var></span>, <span>string <var>$data</var></span>, <span>string <var>$mimeType</var> = <span class="php-keyword1">null</span></span> )</code>
241241

242242
<div class="description short">
243243
<p>Create file with raw data</p>
@@ -280,7 +280,7 @@ <h4>Returns</h4>
280280

281281
<td class="name"><div>
282282
<a class="anchor" href="#_createWithLocalFile">#</a>
283-
<code><a href="source-class-LeanCloud.File.html#97-115" title="Go to source code">createWithLocalFile</a>( <span>string <var>$filepath</var></span>, <span>string <var>$mimeType</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$name</var> = <span class="php-keyword1">null</span></span> )</code>
283+
<code><a href="source-class-LeanCloud.File.html#98-116" title="Go to source code">createWithLocalFile</a>( <span>string <var>$filepath</var></span>, <span>string <var>$mimeType</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$name</var> = <span class="php-keyword1">null</span></span> )</code>
284284

285285
<div class="description short">
286286
<p>Create file from disk</p>
@@ -327,7 +327,7 @@ <h4>Throws</h4>
327327

328328
<td class="name"><div>
329329
<a class="anchor" href="#_get">#</a>
330-
<code><a href="source-class-LeanCloud.File.html#117-128" title="Go to source code">get</a>( <span>string <var>$key</var></span> )</code>
330+
<code><a href="source-class-LeanCloud.File.html#118-129" title="Go to source code">get</a>( <span>string <var>$key</var></span> )</code>
331331

332332
<div class="description short">
333333
<p>Get file attribute</p>
@@ -366,7 +366,7 @@ <h4>Returns</h4>
366366

367367
<td class="name"><div>
368368
<a class="anchor" href="#_getName">#</a>
369-
<code><a href="source-class-LeanCloud.File.html#130-137" title="Go to source code">getName</a>( )</code>
369+
<code><a href="source-class-LeanCloud.File.html#131-138" title="Go to source code">getName</a>( )</code>
370370

371371
<div class="description short">
372372
<p>Get name of file</p>
@@ -385,6 +385,74 @@ <h4>Returns</h4>
385385

386386

387387

388+
</div>
389+
</div></td>
390+
</tr>
391+
<tr data-order="getKey" id="_getKey">
392+
393+
<td class="attributes"><code>
394+
public
395+
396+
string
397+
398+
</code>
399+
</td>
400+
401+
<td class="name"><div>
402+
<a class="anchor" href="#_getKey">#</a>
403+
<code><a href="source-class-LeanCloud.File.html#140-147" title="Go to source code">getKey</a>( )</code>
404+
405+
<div class="description short">
406+
<p>Get key of file</p>
407+
</div>
408+
409+
<div class="description detailed hidden">
410+
<p>Get key of file</p>
411+
412+
413+
414+
<h4>Returns</h4>
415+
<div class="list">
416+
string
417+
</div>
418+
419+
420+
421+
422+
</div>
423+
</div></td>
424+
</tr>
425+
<tr data-order="setKey" id="_setKey">
426+
427+
<td class="attributes"><code>
428+
public
429+
430+
<code><a href="class-LeanCloud.File.html">LeanCloud\File</a></code>
431+
432+
</code>
433+
</td>
434+
435+
<td class="name"><div>
436+
<a class="anchor" href="#_setKey">#</a>
437+
<code><a href="source-class-LeanCloud.File.html#148-156" title="Go to source code">setKey</a>( <span> <var>$val</var></span> )</code>
438+
439+
<div class="description short">
440+
<p>Set key of file</p>
441+
</div>
442+
443+
<div class="description detailed hidden">
444+
<p>Set key of file</p>
445+
446+
447+
448+
<h4>Returns</h4>
449+
<div class="list">
450+
<code><a href="class-LeanCloud.File.html">LeanCloud\File</a></code>
451+
</div>
452+
453+
454+
455+
388456
</div>
389457
</div></td>
390458
</tr>
@@ -400,7 +468,7 @@ <h4>Returns</h4>
400468

401469
<td class="name"><div>
402470
<a class="anchor" href="#_getObjectId">#</a>
403-
<code><a href="source-class-LeanCloud.File.html#139-146" title="Go to source code">getObjectId</a>( )</code>
471+
<code><a href="source-class-LeanCloud.File.html#158-165" title="Go to source code">getObjectId</a>( )</code>
404472

405473
<div class="description short">
406474
<p>Get objectId of file</p>
@@ -434,7 +502,7 @@ <h4>Returns</h4>
434502

435503
<td class="name"><div>
436504
<a class="anchor" href="#_getCreatedAt">#</a>
437-
<code><a href="source-class-LeanCloud.File.html#148-153" title="Go to source code">getCreatedAt</a>( )</code>
505+
<code><a href="source-class-LeanCloud.File.html#167-172" title="Go to source code">getCreatedAt</a>( )</code>
438506

439507
<div class="description short">
440508

@@ -468,7 +536,7 @@ <h4>Returns</h4>
468536

469537
<td class="name"><div>
470538
<a class="anchor" href="#_getUpdatedAt">#</a>
471-
<code><a href="source-class-LeanCloud.File.html#155-160" title="Go to source code">getUpdatedAt</a>( )</code>
539+
<code><a href="source-class-LeanCloud.File.html#174-179" title="Go to source code">getUpdatedAt</a>( )</code>
472540

473541
<div class="description short">
474542

@@ -502,7 +570,7 @@ <h4>Returns</h4>
502570

503571
<td class="name"><div>
504572
<a class="anchor" href="#_getMimeType">#</a>
505-
<code><a href="source-class-LeanCloud.File.html#162-169" title="Go to source code">getMimeType</a>( )</code>
573+
<code><a href="source-class-LeanCloud.File.html#181-188" title="Go to source code">getMimeType</a>( )</code>
506574

507575
<div class="description short">
508576
<p>Get file MIME type</p>
@@ -536,7 +604,7 @@ <h4>Returns</h4>
536604

537605
<td class="name"><div>
538606
<a class="anchor" href="#_getUrl">#</a>
539-
<code><a href="source-class-LeanCloud.File.html#171-178" title="Go to source code">getUrl</a>( )</code>
607+
<code><a href="source-class-LeanCloud.File.html#190-197" title="Go to source code">getUrl</a>( )</code>
540608

541609
<div class="description short">
542610
<p>Get file url</p>
@@ -570,7 +638,7 @@ <h4>Returns</h4>
570638

571639
<td class="name"><div>
572640
<a class="anchor" href="#_getThumbUrl">#</a>
573-
<code><a href="source-class-LeanCloud.File.html#180-210" title="Go to source code">getThumbUrl</a>( <span>float|integer <var>$width</var></span>, <span>float|integer <var>$height</var></span>, <span>float|integer <var>$quality</var> = <span class="php-num">100</span></span>, <span>boolean <var>$scaleToFit</var> = <span class="php-keyword1">true</span></span>, <span>string <var>$format</var> = <span class="php-quote">&quot;png&quot;</span></span> )</code>
641+
<code><a href="source-class-LeanCloud.File.html#199-229" title="Go to source code">getThumbUrl</a>( <span>float|integer <var>$width</var></span>, <span>float|integer <var>$height</var></span>, <span>float|integer <var>$quality</var> = <span class="php-num">100</span></span>, <span>boolean <var>$scaleToFit</var> = <span class="php-keyword1">true</span></span>, <span>string <var>$format</var> = <span class="php-quote">&quot;png&quot;</span></span> )</code>
574642

575643
<div class="description short">
576644
<p>Get thumbnail URL</p>
@@ -621,7 +689,7 @@ <h4>Returns</h4>
621689

622690
<td class="name"><div>
623691
<a class="anchor" href="#_getSize">#</a>
624-
<code><a href="source-class-LeanCloud.File.html#212-219" title="Go to source code">getSize</a>( )</code>
692+
<code><a href="source-class-LeanCloud.File.html#231-238" title="Go to source code">getSize</a>( )</code>
625693

626694
<div class="description short">
627695
<p>Get file size</p>
@@ -655,7 +723,7 @@ <h4>Returns</h4>
655723

656724
<td class="name"><div>
657725
<a class="anchor" href="#_getOwnerId">#</a>
658-
<code><a href="source-class-LeanCloud.File.html#221-228" title="Go to source code">getOwnerId</a>( )</code>
726+
<code><a href="source-class-LeanCloud.File.html#240-247" title="Go to source code">getOwnerId</a>( )</code>
659727

660728
<div class="description short">
661729
<p>Get id of uploaded user</p>
@@ -689,7 +757,7 @@ <h4>Returns</h4>
689757

690758
<td class="name"><div>
691759
<a class="anchor" href="#_setMeta">#</a>
692-
<code><a href="source-class-LeanCloud.File.html#230-240" title="Go to source code">setMeta</a>( <span>string <var>$key</var></span>, <span>miexed <var>$val</var></span> )</code>
760+
<code><a href="source-class-LeanCloud.File.html#249-259" title="Go to source code">setMeta</a>( <span>string <var>$key</var></span>, <span>miexed <var>$val</var></span> )</code>
693761

694762
<div class="description short">
695763
<p>Set meta data</p>
@@ -730,7 +798,7 @@ <h4>Returns</h4>
730798

731799
<td class="name"><div>
732800
<a class="anchor" href="#_getMeta">#</a>
733-
<code><a href="source-class-LeanCloud.File.html#242-259" title="Go to source code">getMeta</a>( <span>string <var>$key</var> = <span class="php-keyword1">null</span></span> )</code>
801+
<code><a href="source-class-LeanCloud.File.html#261-278" title="Go to source code">getMeta</a>( <span>string <var>$key</var> = <span class="php-keyword1">null</span></span> )</code>
734802

735803
<div class="description short">
736804
<p>Get meta data</p>
@@ -771,7 +839,7 @@ <h4>Returns</h4>
771839

772840
<td class="name"><div>
773841
<a class="anchor" href="#_mergeAfterSave">#</a>
774-
<code><a href="source-class-LeanCloud.File.html#308-324" title="Go to source code">mergeAfterSave</a>( <span>array <var>$data</var></span> )</code>
842+
<code><a href="source-class-LeanCloud.File.html#314-330" title="Go to source code">mergeAfterSave</a>( <span>array <var>$data</var></span> )</code>
775843

776844
<div class="description short">
777845
<p>Merge server response after save</p>
@@ -806,7 +874,7 @@ <h4>Parameters</h4>
806874

807875
<td class="name"><div>
808876
<a class="anchor" href="#_mergeAfterFetch">#</a>
809-
<code><a href="source-class-LeanCloud.File.html#326-338" title="Go to source code">mergeAfterFetch</a>( <span>array <var>$data</var></span> )</code>
877+
<code><a href="source-class-LeanCloud.File.html#332-344" title="Go to source code">mergeAfterFetch</a>( <span>array <var>$data</var></span> )</code>
810878

811879
<div class="description short">
812880
<p>Merge server response after fetch</p>
@@ -841,7 +909,7 @@ <h4>Parameters</h4>
841909

842910
<td class="name"><div>
843911
<a class="anchor" href="#_isDirty">#</a>
844-
<code><a href="source-class-LeanCloud.File.html#340-348" title="Go to source code">isDirty</a>( )</code>
912+
<code><a href="source-class-LeanCloud.File.html#346-354" title="Go to source code">isDirty</a>( )</code>
845913

846914
<div class="description short">
847915
<p>If there are unsaved changes.</p>
@@ -875,7 +943,7 @@ <h4>Returns</h4>
875943

876944
<td class="name"><div>
877945
<a class="anchor" href="#_save">#</a>
878-
<code><a href="source-class-LeanCloud.File.html#350-406" title="Go to source code">save</a>( )</code>
946+
<code><a href="source-class-LeanCloud.File.html#356-414" title="Go to source code">save</a>( )</code>
879947

880948
<div class="description short">
881949
<p>Save file on the cloud</p>
@@ -909,7 +977,7 @@ <h4>Throws</h4>
909977

910978
<td class="name"><div>
911979
<a class="anchor" href="#_fetch">#</a>
912-
<code><a href="source-class-LeanCloud.File.html#408-421" title="Go to source code">fetch</a>( <span> <var>$objectId</var></span> )</code>
980+
<code><a href="source-class-LeanCloud.File.html#416-429" title="Go to source code">fetch</a>( <span> <var>$objectId</var></span> )</code>
913981

914982
<div class="description short">
915983
<p>Fetch file object by id</p>
@@ -946,7 +1014,7 @@ <h4>Returns</h4>
9461014

9471015
<td class="name"><div>
9481016
<a class="anchor" href="#_destroy">#</a>
949-
<code><a href="source-class-LeanCloud.File.html#423-433" title="Go to source code">destroy</a>( )</code>
1017+
<code><a href="source-class-LeanCloud.File.html#431-441" title="Go to source code">destroy</a>( )</code>
9501018

9511019
<div class="description short">
9521020
<p>Delete file on cloud</p>
@@ -980,7 +1048,7 @@ <h4>Throws</h4>
9801048

9811049
<td class="name"><div>
9821050
<a class="anchor" href="#_encode">#</a>
983-
<code><a href="source-class-LeanCloud.File.html#435-450" title="Go to source code">encode</a>( )</code>
1051+
<code><a href="source-class-LeanCloud.File.html#443-458" title="Go to source code">encode</a>( )</code>
9841052

9851053
<div class="description short">
9861054
<p>Encode to JSON representation</p>

docs/source-class-LeanCloud.Client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h3>Exceptions</h3>
161161
</span><span id="24" class="l"> <span class="php-comment">/**
162162
</span></span><span id="25" class="l"><span class="php-comment"> * Client version
163163
</span></span><span id="26" class="l"><span class="php-comment"> */</span>
164-
</span><span id="27" class="l"> <span class="php-keyword1">const</span> VERSION = <span class="php-quote">'0.13.0'</span>;
164+
</span><span id="27" class="l"> <span class="php-keyword1">const</span> VERSION = <span class="php-quote">'0.14.0'</span>;
165165
</span><span id="28" class="l">
166166
</span><span id="29" class="l"> <span class="php-comment">/**
167167
</span></span><span id="30" class="l"><span class="php-comment"> * API Version string

docs/source-class-LeanCloud.File.html

Lines changed: 404 additions & 396 deletions
Large diffs are not rendered by default.

src/LeanCloud/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Client {
2424
/**
2525
* Client version
2626
*/
27-
const VERSION = '0.13.0';
27+
const VERSION = '0.14.0';
2828

2929
/**
3030
* API Version string

0 commit comments

Comments
 (0)