Documentation

UploadComponent extends Injectable
in package
uses TraitUploadHelper

Table of Contents

Properties

$cache  : mixed
$temporary  : mixed

Methods

addCache()  : self
Set the value of cache
addMultiUseCache()  : mixed
if something validated which and maybe need to recheck pass to this, and check this with a simple condition
addReportIdIfNeed()  : mixed
addUserIfNeed()  : mixed
copyDatasFromTemporary()  : mixed
createApiOrderUploadFile()  : mixed
dateChecker()  : mixed
getAlreadyAdded()  : mixed
if a value already validated or used and not need to recheck
getCache()  : mixed
Get the value of cache
translateFields()  : mixed
uploadTemporary()  : mixed
upToDb()  : mixed
addVarIfNeed()  : mixed
dateHasTime()  : mixed
getCacheName()  : mixed
getDateFromString()  : mixed

Properties

Methods

addCache()

Set the value of cache

public addCache(mixed $name, mixed $value) : self
Parameters
$name : mixed
$value : mixed
Return values
self

addMultiUseCache()

if something validated which and maybe need to recheck pass to this, and check this with a simple condition

public addMultiUseCache(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

addReportIdIfNeed()

public static addReportIdIfNeed(mixed $content, mixed $reportId) : mixed
Parameters
$content : mixed
$reportId : mixed

addUserIfNeed()

public static addUserIfNeed(mixed $content, mixed $userId) : mixed
Parameters
$content : mixed
$userId : mixed

copyDatasFromTemporary()

public copyDatasFromTemporary(array<string|int, mixed> $header, int $apiBatchId, array<string|int, mixed> $tableColumns) : mixed
Parameters
$header : array<string|int, mixed>
$apiBatchId : int
$tableColumns : array<string|int, mixed>

dateChecker()

public dateChecker(mixed $key, mixed $row) : mixed
Parameters
$key : mixed
$row : mixed

getAlreadyAdded()

if a value already validated or used and not need to recheck

public getAlreadyAdded(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

getCache()

Get the value of cache

public getCache(mixed $name) : mixed
Parameters
$name : mixed

translateFields()

public translateFields(mixed &$content, mixed $transRules) : mixed
Parameters
$content : mixed
$transRules : mixed

upToDb()

public upToDb(mixed $queryArray) : mixed
Parameters
$queryArray : mixed

addVarIfNeed()

private static addVarIfNeed(mixed $array, mixed $key, mixed $value) : mixed
Parameters
$array : mixed
$key : mixed
$value : mixed

dateHasTime()

private dateHasTime(string $date) : mixed
Parameters
$date : string

getCacheName()

private getCacheName(string $modelName[, mixed $indexedTo = null ]) : mixed
Parameters
$modelName : string
$indexedTo : mixed = null

getDateFromString()

private getDateFromString(string $value) : mixed
Parameters
$value : string

        
On this page

Search results