MetaFox

API Documentation

Namespaces

MetaFox

Interfaces, Classes, Traits and Enums

InitActivityPointTables
CreateBackgroundStatusTables
InitCommentTables
InitCoreTables
Class InitCoreTables.
InitFriendRequestTables
CreateHashtagTables
InitLikeTables
CreateMembershipTables
InitNotificationTables
Photo
Report
CreateSavedTables
InitSearchTables
StaticPageTables
InitStickerTables
StorageTables

Table of Contents

localCacheStore()  : Repository
In order to categorize cache high load data to local do not push all cache to network base cache system because it's phrase issue of 1Gb/s network traffic.
__p()  : string
Translate the given message.
user()  : User
upload()  : UploadFile
UploadFile helper.
deleteFile()  : bool
deleteImageWithSize()  : void
convertImagePath()  : string
getFileUrl()  : string
isImageUrl()  : bool
validateDir()  : void
app_active()  : bool
url_utility()  : UrlUtilityInterface
asset_module()  : string
asset_url()  : string
faker_image_path()  : string
getDayOfLeapYearNumber()  : int
fox_array_dot()  : array<string|int, mixed>
Flatten a multi-dimensional associative array with dots.
is_running_unit_test()  : bool
Check is in CI or unitest mode
fox_get_contents()  : string|false
database_driver()  : string
policy_authorize()  : void
gate_authorize()  : void
policy_check()  : bool
calculatorExpiredDay()  : int
file_type()  : MetaFoxFileTypeInterface

Functions

localCacheStore()

In order to categorize cache high load data to local do not push all cache to network base cache system because it's phrase issue of 1Gb/s network traffic.

localCacheStore() : Repository

keep in internal by default using apcu via apc wrapper as local cache data.

Return values
Repository

__p()

Translate the given message.

__p(string $key[, array<string, mixed> $replace = [] ][, string|null $locale = null ]) : string
Parameters
$key : string
$replace : array<string, mixed> = []
$locale : string|null = null
Return values
string

upload()

UploadFile helper.

upload() : UploadFile
Return values
UploadFile

deleteFile()

deleteFile(string $path, int $serverId) : bool
Parameters
$path : string
$serverId : int
Return values
bool

deleteImageWithSize()

deleteImageWithSize(string $path, int $serverId, array<string|int, string|int> $sizes, bool $isSquare) : void
Parameters
$path : string
$serverId : int
$sizes : array<string|int, string|int>
$isSquare : bool
Return values
void

convertImagePath()

convertImagePath(string $imagePath) : string
Parameters
$imagePath : string
Return values
string

getFileUrl()

getFileUrl(string $path, int $serverId) : string
Parameters
$path : string
$serverId : int
Return values
string

isImageUrl()

isImageUrl(string $url) : bool
Parameters
$url : string
Return values
bool

validateDir()

validateDir(string $path[, int $mode = 0755 ][, bool $recursive = true ][, bool $force = false ]) : void
Parameters
$path : string
$mode : int = 0755
$recursive : bool = true
$force : bool = false
Return values
void

app_active()

app_active(string $appName) : bool
Parameters
$appName : string
Return values
bool

asset_module()

asset_module(string $appName, string $path) : string
Parameters
$appName : string
$path : string
Return values
string

asset_url()

asset_url(string $appName, string $path) : string
Parameters
$appName : string
$path : string
Return values
string

faker_image_path()

faker_image_path(string $resourceName) : string
Parameters
$resourceName : string
Return values
string

getDayOfLeapYearNumber()

getDayOfLeapYearNumber(Carbon $date) : int
Parameters
$date : Carbon
Return values
int

fox_array_dot()

Flatten a multi-dimensional associative array with dots.

fox_array_dot(array<string|int, mixed> $array[, string $prepend = '' ]) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
$prepend : string = ''
Return values
array<string|int, mixed>

is_running_unit_test()

Check is in CI or unitest mode

is_running_unit_test() : bool
Return values
bool

fox_get_contents()

fox_get_contents(string $path) : string|false
Parameters
$path : string
Return values
string|false

database_driver()

database_driver() : string
Return values
string

policy_authorize()

policy_authorize(string $policyClass, string $policyMethod, mixed ...$params) : void
Parameters
$policyClass : string
$policyMethod : string
$params : mixed
Tags
throws
AuthorizationException
Return values
void

gate_authorize()

gate_authorize(User $context, string $policyMethod, mixed $model, mixed ...$params) : void
Parameters
$context : User
$policyMethod : string
$model : mixed
$params : mixed
Tags
throws
AuthorizationException
Return values
void

policy_check()

policy_check(string $policyClass, string $policyMethod, mixed ...$params) : bool
Parameters
$policyClass : string
$policyMethod : string
$params : mixed
Return values
bool

calculatorExpiredDay()

calculatorExpiredDay(string $date) : int
Parameters
$date : string
Return values
int

Search results