11<?php
22
33/**
4- * This file was generated by phpSPO model generator 2021-03-12T16:05:00 +00:00 16.0.21103 .12002
4+ * This file was generated by phpSPO model generator 2021-08-22T15:28:03 +00:00 16.0.21611 .12002
55 */
66namespace Office365 \SharePoint ;
77
2828 */
2929class File extends SecurableObject
3030{
31-
32- public function moveToEx ($ destUrl , $ overwrite ){
33- $ this ->ensureProperty ("ServerRelativeUrl " , function () use ($ destUrl ,$ overwrite ){
34- MoveCopyUtil::moveFile ($ this ->getContext (),
35- $ this ->getServerRelativeUrl (),
36- $ destUrl ,
37- $ overwrite ,
38- new MoveCopyOptions ());
31+ public function moveToEx ($ destUrl , $ overwrite )
32+ {
33+ $ this ->ensureProperty ("ServerRelativeUrl " , function () use ($ destUrl , $ overwrite ) {
34+ MoveCopyUtil::moveFile ($ this ->getContext (), $ this ->getServerRelativeUrl (), $ destUrl , $ overwrite , new MoveCopyOptions ());
3935 });
4036 }
41-
4237 /**
4338 * Resolves File from absolute Url
4439 * @param string $absUrl
@@ -77,7 +72,6 @@ private function constructDownloadQuery($url, $handle)
7772 });
7873 return $ qry ;
7974 }
80-
8175 /**
8276 * Checks out the file from a document library based on the check-out type.
8377 * @return $this
@@ -234,8 +228,7 @@ public static function saveBinary(ClientRuntimeContext $ctx, $serverRelativeUrl,
234228 */
235229 public function getLimitedWebPartManager ($ scope )
236230 {
237- return new LimitedWebPartManager ($ this ->getContext (),
238- new ResourcePathServiceOperation ("getLimitedWebPartManager " , array ($ scope ), $ this ->getResourcePath ()));
231+ return new LimitedWebPartManager ($ this ->getContext (), new ResourcePathServiceOperation ("getLimitedWebPartManager " , array ($ scope ), $ this ->getResourcePath ()));
239232 }
240233 /**
241234 * Returns IRM settings for given file.
@@ -244,18 +237,15 @@ public function getLimitedWebPartManager($scope)
244237 */
245238 public function getInformationRightsManagementSettings ()
246239 {
247- return $ this ->getProperty ("InformationRightsManagementSettings " ,
248- new InformationRightsManagementSettings ($ this ->getContext (),
249- new ResourcePath ("InformationRightsManagementSettings " , $ this ->getResourcePath ())));
240+ return $ this ->getProperty ("InformationRightsManagementSettings " , new InformationRightsManagementSettings ($ this ->getContext (), new ResourcePath ("InformationRightsManagementSettings " , $ this ->getResourcePath ())));
250241 }
251242 /**
252243 * Gets a value that returns a collection of file version objects that represent the versions of the file.
253244 * @return FileVersionCollection
254245 */
255246 public function getVersions ()
256247 {
257- return $ this ->getProperty ("Versions " ,
258- new FileVersionCollection ($ this ->getContext (), new ResourcePath ("Versions " , $ this ->getResourcePath ())));
248+ return $ this ->getProperty ("Versions " , new FileVersionCollection ($ this ->getContext (), new ResourcePath ("Versions " , $ this ->getResourcePath ())));
259249 }
260250 /**
261251 * Gets a value that indicates how the file is checked out of a document library
@@ -271,8 +261,7 @@ public function getCheckOutType()
271261 */
272262 public function getListItemAllFields ()
273263 {
274- return $ this ->getProperty ("ListItemAllFields " ,
275- new ListItem ($ this ->getContext (), new ResourcePath ("ListItemAllFields " , $ this ->getResourcePath ())));
264+ return $ this ->getProperty ("ListItemAllFields " , new ListItem ($ this ->getContext (), new ResourcePath ("ListItemAllFields " , $ this ->getResourcePath ())));
276265 }
277266 /**
278267 * Starts a new chunk upload session and uploads the first fragment
@@ -337,7 +326,6 @@ public function getCheckInComment()
337326 {
338327 return $ this ->getProperty ("CheckInComment " );
339328 }
340-
341329 /**
342330 * Specifies
343331 * the comment used when a document is checked into a document library.Its length
@@ -867,8 +855,7 @@ public function setWebId($value)
867855 */
868856 public function getAuthor ()
869857 {
870- return $ this ->getProperty ("Author " ,
871- new User ($ this ->getContext (), new ResourcePath ("Author " , $ this ->getResourcePath ())));
858+ return $ this ->getProperty ("Author " , new User ($ this ->getContext (), new ResourcePath ("Author " , $ this ->getResourcePath ())));
872859 }
873860 /**
874861 * Specifies
@@ -877,8 +864,7 @@ public function getAuthor()
877864 */
878865 public function getCheckedOutByUser ()
879866 {
880- return $ this ->getProperty ("CheckedOutByUser " ,
881- new User ($ this ->getContext (), new ResourcePath ("CheckedOutByUser " , $ this ->getResourcePath ())));
867+ return $ this ->getProperty ("CheckedOutByUser " , new User ($ this ->getContext (), new ResourcePath ("CheckedOutByUser " , $ this ->getResourcePath ())));
882868 }
883869 /**
884870 * Specifies
@@ -888,8 +874,7 @@ public function getCheckedOutByUser()
888874 */
889875 public function getLockedByUser ()
890876 {
891- return $ this ->getProperty ("LockedByUser " ,
892- new User ($ this ->getContext (), new ResourcePath ("LockedByUser " , $ this ->getResourcePath ())));
877+ return $ this ->getProperty ("LockedByUser " , new User ($ this ->getContext (), new ResourcePath ("LockedByUser " , $ this ->getResourcePath ())));
893878 }
894879 /**
895880 * Specifies
@@ -899,17 +884,14 @@ public function getLockedByUser()
899884 */
900885 public function getModifiedBy ()
901886 {
902- return $ this ->getProperty ("ModifiedBy " ,
903- new User ($ this ->getContext (), new ResourcePath ("ModifiedBy " , $ this ->getResourcePath ())));
887+ return $ this ->getProperty ("ModifiedBy " , new User ($ this ->getContext (), new ResourcePath ("ModifiedBy " , $ this ->getResourcePath ())));
904888 }
905889 /**
906890 * @return EffectiveInformationRightsManagementSettings
907891 */
908892 public function getEffectiveInformationRightsManagementSettings ()
909893 {
910- return $ this ->getProperty ("EffectiveInformationRightsManagementSettings " ,
911- new EffectiveInformationRightsManagementSettings ($ this ->getContext (),
912- new ResourcePath ("EffectiveInformationRightsManagementSettings " , $ this ->getResourcePath ())));
894+ return $ this ->getProperty ("EffectiveInformationRightsManagementSettings " , new EffectiveInformationRightsManagementSettings ($ this ->getContext (), new ResourcePath ("EffectiveInformationRightsManagementSettings " , $ this ->getResourcePath ())));
913895 }
914896 /**
915897 * @return Web|null
@@ -992,4 +974,32 @@ public function setServerRedirectedUrl($value)
992974 {
993975 $ this ->setProperty ("ServerRedirectedUrl " , $ value , true );
994976 }
977+ /**
978+ * @return ListItemComplianceInfo
979+ */
980+ public function getComplianceInfo ()
981+ {
982+ return $ this ->getProperty ("ComplianceInfo " );
983+ }
984+ /**
985+ * @var ListItemComplianceInfo
986+ */
987+ public function setComplianceInfo ($ value )
988+ {
989+ return $ this ->setProperty ("ComplianceInfo " , $ value , true );
990+ }
991+ /**
992+ * @return string
993+ */
994+ public function getExpirationDate ()
995+ {
996+ return $ this ->getProperty ("ExpirationDate " );
997+ }
998+ /**
999+ * @var string
1000+ */
1001+ public function setExpirationDate ($ value )
1002+ {
1003+ return $ this ->setProperty ("ExpirationDate " , $ value , true );
1004+ }
9951005}
0 commit comments