src/models/OwnerAlbum.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 96-103 (lines=8) @@ | 
                                                            
                                    | 93 |  |      * | 
                                                            
                                    | 94 |  |      * @return Album[] | 
                                                            
                                    | 95 |  |      */ | 
                                                            
                                    | 96 |  |     public static function getAlbums(string $owner, int $ownerId, string $ownerAttribute = null) | 
                                                            
                                    | 97 |  |     { | 
                                                            
                                    | 98 |  |         return static::getAlbumsQuery([ | 
                                                            
                                    | 99 |  |             'owner' => $owner, | 
                                                            
                                    | 100 |  |             'ownerId' => $ownerId, | 
                                                            
                                    | 101 |  |             'ownerAttribute' => $ownerAttribute, | 
                                                            
                                    | 102 |  |         ])->all(); | 
                                                            
                                    | 103 |  |     } | 
                                                            
                                    | 104 |  |  | 
                                                            
                                    | 105 |  |     /** | 
                                                            
                                    | 106 |  |      * Get all albums Query by owner. | 
                                                                        
                 
                                                            
                    
src/models/OwnerMediafile.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 96-103 (lines=8) @@ | 
                                                            
                                    | 93 |  |      * | 
                                                            
                                    | 94 |  |      * @return Mediafile[] | 
                                                            
                                    | 95 |  |      */ | 
                                                            
                                    | 96 |  |     public static function getMediaFiles(string $owner, int $ownerId, string $ownerAttribute = null) | 
                                                            
                                    | 97 |  |     { | 
                                                            
                                    | 98 |  |         return static::getMediaFilesQuery([ | 
                                                            
                                    | 99 |  |             'owner' => $owner, | 
                                                            
                                    | 100 |  |             'ownerId' => $ownerId, | 
                                                            
                                    | 101 |  |             'ownerAttribute' => $ownerAttribute, | 
                                                            
                                    | 102 |  |         ])->all(); | 
                                                            
                                    | 103 |  |     } | 
                                                            
                                    | 104 |  |  | 
                                                            
                                    | 105 |  |     /** | 
                                                            
                                    | 106 |  |      * Get all mediafiles Query by owner. |