@@ -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 "> "png"</ 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 "> "png"</ 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 >
0 commit comments