UserVatDetect
extends CacheModel
in package
Table of Contents
Constants
- EVENT_TYPES = [self::STORAGE_DETECTED, self::MULTIPLE_STORAGES, self::THRESHOLD_LIMIT_EXCEED, self::USER_DELETED]
- MULTIPLE_STORAGES = 'multiple_storages'
- STORAGE_DETECTED = 'storage_detected'
- THRESHOLD_LIMIT_EXCEED = 'threshold_limit_exceed'
- USER_DELETED = 'user_deleted'
Properties
- $country_id : int
- $create_time : mixed
- $end_date : DateTime
- $event : string
- $id : int
- $start_date : DateTime
- $tax_id : string
- $update_time : mixed
- $user_id : int
- $vatid : string
Methods
- afterFetch() : mixed
- afterSave() : mixed
- assignJobMergedData() : mixed
- beforeFetch() : mixed
- beforeSave() : mixed
- exists() : bool
- fetchAsArray() : mixed
- fetchAsAssocArray() : mixed
- fetchAsMultiAssocArray() : mixed
- find() : false|array<string|int, static>
- findFirst() : static|false
- fixParameters() : mixed
- fromArray() : mixed
- fromUserVatModel() : void
- getCountryId() : int
- getCreateTime() : mixed
- getEndDate() : DateTime|null
- getEvent() : string
- getId() : int
- getStartDate() : DateTime|null
- getTaxId() : string|null
- getThe() : mixed
- getUpdateTime() : mixed
- getUserId() : int
- getVatid() : string|null
- initialize() : mixed
- mapper() : mixed
- set() : mixed
- setCountryId() : void
- setCreateTime() : $this
- If $createTime is null, default value now.
- setEndDate() : mixed
- setEvent() : void
- setId() : mixed
- setStartDate() : void
- setTaxId() : mixed
- setUpdateTime() : $this
- If $updateTime is null, default value now.
- setUserId() : void
- setVatid() : mixed
- writeAttributeIfNeeded() : mixed
- _createKey() : mixed
- endDateConvertFromString() : mixed
- endDateConvertToString() : mixed
- startDateConvertFromString() : mixed
- startDateConvertToString() : mixed
Constants
EVENT_TYPES
public
mixed
EVENT_TYPES
= [self::STORAGE_DETECTED, self::MULTIPLE_STORAGES, self::THRESHOLD_LIMIT_EXCEED, self::USER_DELETED]
MULTIPLE_STORAGES
public
mixed
MULTIPLE_STORAGES
= 'multiple_storages'
STORAGE_DETECTED
public
mixed
STORAGE_DETECTED
= 'storage_detected'
THRESHOLD_LIMIT_EXCEED
public
mixed
THRESHOLD_LIMIT_EXCEED
= 'threshold_limit_exceed'
USER_DELETED
public
mixed
USER_DELETED
= 'user_deleted'
Properties
$country_id
protected
int
$country_id
$create_time
protected
mixed
$create_time
$end_date
protected
DateTime
$end_date
$event
protected
string
$event
$id
protected
int
$id
$start_date
protected
DateTime
$start_date
$tax_id
protected
string
$tax_id
$update_time
protected
mixed
$update_time
$user_id
protected
int
$user_id
$vatid
protected
string
$vatid
Methods
afterFetch()
public
afterFetch() : mixed
afterSave()
public
afterSave() : mixed
assignJobMergedData()
public
assignJobMergedData() : mixed
beforeFetch()
public
beforeFetch() : mixed
beforeSave()
public
beforeSave() : mixed
exists()
public
exists() : bool
Return values
boolfetchAsArray()
public
static fetchAsArray([mixed $parameter = null ]) : mixed
Parameters
- $parameter : mixed = null
fetchAsAssocArray()
public
static fetchAsAssocArray([mixed $parameter = null ][, mixed $key = 'id' ][, mixed $cols = null ]) : mixed
Parameters
- $parameter : mixed = null
- $key : mixed = 'id'
- $cols : mixed = null
fetchAsMultiAssocArray()
public
static fetchAsMultiAssocArray([mixed $parameter = null ][, mixed $keyname = ['id'] ][, mixed $cols = null ]) : mixed
Parameters
- $parameter : mixed = null
- $keyname : mixed = ['id']
- $cols : mixed = null
find()
public
static find([array<string|int, mixed>|null|int $parameters = null ]) : false|array<string|int, static>
Parameters
- $parameters : array<string|int, mixed>|null|int = null
Return values
false|array<string|int, static>findFirst()
public
static findFirst([array<string|int, mixed>|null|int $parameters = null ]) : static|false
Parameters
- $parameters : array<string|int, mixed>|null|int = null
Return values
static|falsefixParameters()
public
static fixParameters([mixed $parameters = null ]) : mixed
Parameters
- $parameters : mixed = null
fromArray()
public
static fromArray(mixed $array) : mixed
Parameters
- $array : mixed
fromUserVatModel()
public
fromUserVatModel(UserVat $userVat[, mixed $isDelete = false ]) : void
Parameters
- $userVat : UserVat
- $isDelete : mixed = false
getCountryId()
public
getCountryId() : int
Return values
intgetCreateTime()
public
getCreateTime() : mixed
getEndDate()
public
getEndDate() : DateTime|null
Return values
DateTime|nullgetEvent()
public
getEvent() : string
Return values
stringgetId()
public
getId() : int
Return values
intgetStartDate()
public
getStartDate() : DateTime|null
Return values
DateTime|nullgetTaxId()
public
getTaxId() : string|null
Return values
string|nullgetThe()
public
static getThe(mixed $paramater) : mixed
Parameters
- $paramater : mixed
getUpdateTime()
public
getUpdateTime() : mixed
getUserId()
public
getUserId() : int
Return values
intgetVatid()
public
getVatid() : string|null
Return values
string|nullinitialize()
public
initialize() : mixed
mapper()
public
static mapper(array<string|int, mixed> $map, array<string|int, mixed> $original[, bool $reverse = true ]) : mixed
Parameters
- $map : array<string|int, mixed>
- $original : array<string|int, mixed>
- $reverse : bool = true
set()
public
set(mixed $property, mixed $value) : mixed
Parameters
- $property : mixed
- $value : mixed
setCountryId()
public
setCountryId(int $countryId) : void
Parameters
- $countryId : int
setCreateTime()
If $createTime is null, default value now.
public
setCreateTime([mixed $createTime = null ]) : $this
Parameters
- $createTime : mixed = null
Return values
$thissetEndDate()
public
setEndDate(DateTime $endDate) : mixed
Parameters
- $endDate : DateTime
setEvent()
public
setEvent(string $event) : void
Parameters
- $event : string
setId()
public
setId(int $id) : mixed
Parameters
- $id : int
setStartDate()
public
setStartDate(DateTime $startDate) : void
Parameters
- $startDate : DateTime
setTaxId()
public
setTaxId(string $taxId) : mixed
Parameters
- $taxId : string
setUpdateTime()
If $updateTime is null, default value now.
public
setUpdateTime([mixed $updateTime = null ]) : $this
Parameters
- $updateTime : mixed = null
Return values
$thissetUserId()
public
setUserId(int $userId) : void
Parameters
- $userId : int
setVatid()
public
setVatid(string $vatid) : mixed
Parameters
- $vatid : string
writeAttributeIfNeeded()
public
writeAttributeIfNeeded(mixed $attribute, mixed $value) : mixed
Parameters
- $attribute : mixed
- $value : mixed
_createKey()
protected
static _createKey(mixed $parameters) : mixed
Parameters
- $parameters : mixed
endDateConvertFromString()
private
endDateConvertFromString() : mixed
endDateConvertToString()
private
endDateConvertToString() : mixed
startDateConvertFromString()
private
startDateConvertFromString() : mixed
startDateConvertToString()
private
startDateConvertToString() : mixed