@@ -49,19 +49,27 @@ public function __construct($AppName,
4949 $ this ->root = $ root ;
5050 }
5151
52- /**
53- * @NoAdminRequired
54- * @NoCSRFRequired
52+ /**
53+ * @NoAdminRequired
54+ * @NoCSRFRequired
55+ * @param null $myMapId
56+ * @param null $respectNoMediaAndNoimage
57+ * @param null $hideImagesOnCustomMaps
58+ * @param null $hideImagesInMapsFolder
5559 * @return DataResponse
56- */
57- public function getPhotos ($ myMapId =null ): DataResponse {
60+ * @throws Exception
61+ * @throws NoUserException
62+ * @throws NotFoundException
63+ * @throws NotPermittedException
64+ */
65+ public function getPhotos ($ myMapId =null , $ respectNoMediaAndNoimage =null , $ hideImagesOnCustomMaps =null , $ hideImagesInMapsFolder =null ): DataResponse {
5866 $ userFolder = $ this ->root ->getUserFolder ($ this ->userId );
5967 if (is_null ($ myMapId ) || $ myMapId === "" ) {
60- $ result = $ this ->geophotoService ->getAll ($ this ->userId , $ userFolder , true , false , true );
68+ $ result = $ this ->geophotoService ->getAll ($ this ->userId , $ userFolder , $ respectNoMediaAndNoimage ?? true , $ hideImagesOnCustomMaps ?? false , $ hideImagesInMapsFolder ?? true );
6169 } else {
6270 $ folders = $ userFolder ->getById ($ myMapId );
6371 $ folder = array_shift ($ folders );
64- $ result = $ this ->geophotoService ->getAll ($ this ->userId , $ folder , true , false , false );
72+ $ result = $ this ->geophotoService ->getAll ($ this ->userId , $ folder , $ respectNoMediaAndNoimage ?? true , $ hideImagesOnCustomMaps ?? false , $ hideImagesInMapsFolder ?? false );
6573 }
6674 return new DataResponse ($ result );
6775 }
@@ -73,20 +81,23 @@ public function getPhotos($myMapId=null): DataResponse {
7381 * @param string|null $timezone
7482 * @param int $limit
7583 * @param int $offset
84+ * @param null $respectNoMediaAndNoimage
85+ * @param null $hideImagesOnCustomMaps
86+ * @param null $hideImagesInMapsFolder
7687 * @return DataResponse
7788 * @throws Exception
7889 * @throws NoUserException
7990 * @throws NotFoundException
8091 * @throws NotPermittedException
8192 */
82- public function getNonLocalizedPhotos (?int $ myMapId =null , ?string $ timezone =null , int $ limit =250 , int $ offset =0 ): DataResponse {
93+ public function getNonLocalizedPhotos (?int $ myMapId =null , ?string $ timezone =null , int $ limit =250 , int $ offset =0 , $ respectNoMediaAndNoimage = null , $ hideImagesOnCustomMaps = null , $ hideImagesInMapsFolder = null ): DataResponse {
8394 $ userFolder = $ this ->root ->getUserFolder ($ this ->userId );
8495 if (is_null ($ myMapId ) || $ myMapId === "" ) {
85- $ result = $ this ->geophotoService ->getNonLocalized ($ this ->userId , $ userFolder , true , false , true , $ timezone , $ limit , $ offset );
96+ $ result = $ this ->geophotoService ->getNonLocalized ($ this ->userId , $ userFolder , $ respectNoMediaAndNoimage ?? true , $ hideImagesOnCustomMaps ?? false , $ hideImagesInMapsFolder ?? true , $ timezone , $ limit , $ offset );
8697 } else {
8798 $ folders = $ userFolder ->getById ($ myMapId );
8899 $ folder = array_shift ($ folders );
89- $ result = $ this ->geophotoService ->getNonLocalized ($ this ->userId , $ folder , true , false , false , $ timezone , $ limit , $ offset );
100+ $ result = $ this ->geophotoService ->getNonLocalized ($ this ->userId , $ folder , $ respectNoMediaAndNoimage ?? true , $ hideImagesOnCustomMaps ?? false , $ hideImagesInMapsFolder ?? false , $ timezone , $ limit , $ offset );
90101 }
91102 return new DataResponse ($ result );
92103 }
0 commit comments