\FAA\Obj\GenericBill

Summary

Methods
Properties
Constants
__construct()
PriceGroups()
SearchFields()
GetPath()
RootPath()
GetFileById()
Delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(null|integer  $id = null,null|string  $language = null)

Bill constructor.

Parameters

null|integer $id

The bill id

null|string $language

The local language or null

PriceGroups()

PriceGroups(): array|null

Get price groups of this entity

Returns

array|null

SearchFields()

SearchFields(): array

Return search indexer fields Convert instance to search indexer values

Returns

array —

The search indexer fields

GetPath()

GetPath(): string

expose the storage path provide an interface to extract the current path of this object

Returns

string —

the object storage path

RootPath()

RootPath(): string

expose root path provide an interface to the date storage path of this asset

Returns

string —

the absolute path to the storage folder

GetFileById()

GetFileById(string  $name,string  $attr = 'files'): array|null

Fallback to get old file path

Parameters

string $name
string $attr

Returns

array|null

Delete()

Delete(boolean  $skip = false): \FAA\Obj\Result

Delete this instance of bill

Parameters

boolean $skip

Returns

\FAA\Obj\Result