@@ -345,6 +345,20 @@ public function limitToFileSource(int $nodeId): void {
345345 $ this ->limitInt ('file_source ' , $ nodeId );
346346 }
347347
348+ public function limitToFileTarget (string $ target , string $ alias ): void {
349+ $ this ->orWhere (
350+ $ this ->exprLimit ('file_target ' , $ target ),
351+ $ this ->exprLimit ('file_target ' , $ target , $ alias ),
352+ );
353+ }
354+
355+ public function limitToFileTargetLike (string $ target , string $ alias ): void {
356+ $ this ->orWhere (
357+ $ this ->exprLike ('file_target ' , $ target ),
358+ $ this ->exprLike ('file_target ' , $ target , $ alias ),
359+ );
360+ }
361+
348362 /**
349363 * @param array $files
350364 */
@@ -1465,9 +1479,11 @@ public function leftJoinFileCache(string $aliasShare) {
14651479 * @param string $aliasShare
14661480 * @param string $aliasShareMemberships
14671481 *
1482+ * @return string the alias generated for the join
1483+ *
14681484 * @throws RequestBuilderException
14691485 */
1470- public function leftJoinShareChild (string $ aliasShare , string $ aliasShareMemberships = '' ) {
1486+ public function leftJoinShareChild (string $ aliasShare , string $ aliasShareMemberships = '' ): string {
14711487 $ expr = $ this ->expr ();
14721488
14731489 $ aliasShareChild = $ this ->generateAlias ($ aliasShare , self ::SHARE );
@@ -1491,6 +1507,7 @@ public function leftJoinShareChild(string $aliasShare, string $aliasShareMembers
14911507 );
14921508
14931509 // $this->selectAlias($aliasShareParent . '.permissions', 'parent_perms');
1510+ return $ aliasShareChild ;
14941511 }
14951512
14961513
0 commit comments