AssetRepository
        
        extends AbstractRepository
    
    
            
            in package
            
        
    
            
            implements
                            AssetRepositoryInterface                    
    
    
Class AssetRepository.
Table of Contents
Interfaces
- AssetRepositoryInterface
 - Interface Asset.
 
Properties
- $disableSponsor : mixed
 - $skipPresenter : mixed
 
Methods
- buildQueryScopes() : mixed
 - cleanContent() : string|null
 - cleanTitle() : string|null
 - createMany() : bool
 - find() : Asset
 - findByName() : Asset|null
 - findAssetByName.
 - getDefaultAssetFile() : StorageFile|null
 - getModel() : Asset
 - getUrl() : string|null
 - getUserContractMorphTypeColumns() : array<string|int, string>
 - hasSponsorView() : bool
 - isNoSponsorView() : bool
 - likeOperator() : string
 - return the case-insensitive LIKE operator bases on the current database driver.
 - loadAssetSettings() : array<string|int, string>
 - loadAssetSettings.
 - model() : mixed
 - publishAssets() : void
 - publishAssets.
 - restoreDefaultAsset() : Asset
 - where() : $this
 - withUserMorphTypeActiveScope() : self
 - fileRepository() : FileRepositoryInterface
 - getAssetDirPath() : string
 - listFilesRecursive() : array<string|int, string>
 - Get an array of files in the asset paths.
 
Properties
$disableSponsor
    protected
        mixed
    $disableSponsor
    
    
    
    
$skipPresenter
    protected
        mixed
    $skipPresenter
     = true
    
    
    
Methods
buildQueryScopes()
    public
                    buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
    Parameters
- $query : mixed
 - $model : mixed
 - $criteria : mixed
 
cleanContent()
    public
                    cleanContent(string|null $string) : string|null
    Parameters
- $string : string|null
 
Return values
string|nullcleanTitle()
    public
                    cleanTitle(string|null $string) : string|null
    Parameters
- $string : string|null
 
Return values
string|nullcreateMany()
    public
                    createMany(array<string|int, mixed> $items) : bool
    Parameters
- $items : array<string|int, mixed>
 
Return values
boolfind()
    public
                    find(mixed $id, mixed $columns) : Asset
    Parameters
- $id : mixed
 - $columns : mixed
 
Return values
AssetfindByName()
findAssetByName.
    public
                    findByName(string $name) : Asset|null
    Parameters
- $name : string
 
Return values
Asset|nullgetDefaultAssetFile()
    public
                    getDefaultAssetFile(int $id) : StorageFile|null
    Parameters
- $id : int
 
Return values
StorageFile|nullgetModel()
    public
                    getModel() : Asset
    Return values
AssetgetUrl()
    public
                    getUrl(string $package, string $name) : string|null
    Parameters
- $package : string
 - 
                    
package id or package alias
 - $name : string
 
Return values
string|nullgetUserContractMorphTypeColumns()
    public
                    getUserContractMorphTypeColumns() : array<string|int, string>
    Return values
array<string|int, string>hasSponsorView()
    public
                    hasSponsorView(array<string|int, mixed> $attributes) : bool
    Parameters
- $attributes : array<string|int, mixed>
 
Return values
boolisNoSponsorView()
    public
                    isNoSponsorView(string|null $view) : bool
    Parameters
- $view : string|null
 
Return values
boollikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
    public
                    likeOperator() : string
    Return values
stringloadAssetSettings()
loadAssetSettings.
    public
                    loadAssetSettings() : array<string|int, string>
    Return values
array<string|int, string>model()
    public
                    model() : mixed
    publishAssets()
publishAssets.
    public
                    publishAssets(string $package) : void
    Parameters
- $package : string
 
restoreDefaultAsset()
    public
                    restoreDefaultAsset(int $id[, array<string|int, mixed> $attributes = [] ]) : Asset
    Parameters
- $id : int
 - $attributes : array<string|int, mixed> = []
 
Tags
Return values
Assetwhere()
    public
                    where(array<string|int, mixed> $params) : $this
    Parameters
- $params : array<string|int, mixed>
 
Tags
Return values
$thiswithUserMorphTypeActiveScope()
    public
                    withUserMorphTypeActiveScope() : self
    Return values
selffileRepository()
    protected
                    fileRepository() : FileRepositoryInterface
    Return values
FileRepositoryInterfacegetAssetDirPath()
    protected
                    getAssetDirPath(string $package) : string
    Parameters
- $package : string
 
Return values
stringlistFilesRecursive()
Get an array of files in the asset paths.
    private
                    listFilesRecursive(string $path) : array<string|int, string>
    Parameters
- $path : string