MetaFox

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

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|null

cleanTitle()

public cleanTitle(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

createMany()

public createMany(array<string|int, mixed> $items) : bool
Parameters
$items : array<string|int, mixed>
Return values
bool

findByName()

findAssetByName.

public findByName(string $name) : Asset|null
Parameters
$name : string
Return values
Asset|null

getUrl()

public getUrl(string $package, string $name) : string|null
Parameters
$package : string

package id or package alias

$name : string
Return values
string|null

getUserContractMorphTypeColumns()

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
bool

isNoSponsorView()

public isNoSponsorView(string|null $view) : bool
Parameters
$view : string|null
Return values
bool

likeOperator()

return the case-insensitive LIKE operator bases on the current database driver.

public likeOperator() : string
Return values
string

loadAssetSettings()

loadAssetSettings.

public loadAssetSettings() : array<string|int, string>
Return values
array<string|int, string>

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
inheritDoc
Return values
Asset

where()

public where(array<string|int, mixed> $params) : $this
Parameters
$params : array<string|int, mixed>
Tags
throws
RepositoryException
Return values
$this

withUserMorphTypeActiveScope()

public withUserMorphTypeActiveScope() : self
Return values
self

getAssetDirPath()

protected getAssetDirPath(string $package) : string
Parameters
$package : string
Return values
string

listFilesRecursive()

Get an array of files in the asset paths.

private listFilesRecursive(string $path) : array<string|int, string>
Parameters
$path : string
Return values
array<string|int, string>

        
On this page

Search results