Settings_Inventory_Record_Model
extends Base
in package
Base class.
Tags
Table of Contents
- $value : array<string|int, mixed>
- $tableName : mixed
- $type : mixed
- __construct() : mixed
- Constructor.
- add() : mixed
- Function used to add the tax type which will do database alterations.
- checkDuplicate() : mixed
- clearCache() : void
- Function clears cache.
- delete() : mixed
- disableDefaultsTax() : mixed
- Function used to remove all defaults tax settings.
- get() : mixed
- Function to get the value for a given key.
- getArray() : array<string|int, mixed>
- Function to get the array values for a given key.
- getCreateUrl() : mixed
- getData() : array<string|int, mixed>
- Function to get all the values of the Object.
- getDataAll() : mixed
- getDefault() : int
- Is default tax value for group.
- getEditUrl() : mixed
- getForHtml() : mixed
- Function to get the html encoded value for a given key.
- getForSql() : mixed
- Function to get the value if its safe to use for SQL Query (column).
- getId() : mixed
- getInstanceById() : mixed
- getKeys() : array<string|int, string>
- Function to get keys.
- getName() : mixed
- getStatus() : mixed
- getTableNameFromType() : mixed
- getType() : mixed
- getValue() : mixed
- has() : bool
- Function to check if the key exists.
- isEmpty() : bool
- Function to check if the key is empty.
- remove() : mixed
- Function to remove the value.
- save() : mixed
- set() : $this
- Function to set the value for a given key.
- setData() : $this
- Function to set all the values.
- setType() : mixed
Properties
$value
protected
array<string|int, mixed>
$value
Values
$tableName
private
static mixed
$tableName
= ['CreditLimits' => 'a_#__inventory_limits', 'Taxes' => 'a_#__taxes_global', 'Discounts' => 'a_#__discounts_global']
$type
private
mixed
$type
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
- $values : array<string|int, mixed> = []
Return values
mixed —add()
Function used to add the tax type which will do database alterations.
public
add() : mixed
Return values
mixed —checkDuplicate()
public
static checkDuplicate(mixed $label[, mixed $excludedIds = [] ][, mixed $type = '' ]) : mixed
Parameters
- $label : mixed
- $excludedIds : mixed = []
- $type : mixed = ''
Return values
mixed —clearCache()
Function clears cache.
public
clearCache() : void
Return values
void —delete()
public
delete() : mixed
Return values
mixed —disableDefaultsTax()
Function used to remove all defaults tax settings.
public
disableDefaultsTax() : mixed
Return values
mixed —get()
Function to get the value for a given key.
public
get(string $key) : mixed
Parameters
- $key : string
Return values
mixed —Value for the given key
getArray()
Function to get the array values for a given key.
public
getArray(string $key[, array<string|int, mixed> $value = [] ]) : array<string|int, mixed>
Parameters
- $key : string
- $value : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getCreateUrl()
public
getCreateUrl() : mixed
Return values
mixed —getData()
Function to get all the values of the Object.
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDataAll()
public
static getDataAll(mixed $type) : mixed
Parameters
- $type : mixed
Return values
mixed —getDefault()
Is default tax value for group.
public
getDefault() : int
Return values
int —getEditUrl()
public
getEditUrl() : mixed
Return values
mixed —getForHtml()
Function to get the html encoded value for a given key.
public
getForHtml(string $key) : mixed
Parameters
- $key : string
Return values
mixed —getForSql()
Function to get the value if its safe to use for SQL Query (column).
public
getForSql(string $key[, bool $skipEmtpy = true ]) : mixed
Parameters
- $key : string
- $skipEmtpy : bool = true
-
Skip the check if string is empty
Return values
mixed —Value for the given key
getId()
public
getId() : mixed
Return values
mixed —getInstanceById()
public
static getInstanceById(mixed $id[, mixed $type = '' ]) : mixed
Parameters
- $id : mixed
- $type : mixed = ''
Return values
mixed —getKeys()
Function to get keys.
public
getKeys() : array<string|int, string>
Return values
array<string|int, string> —getName()
public
getName() : mixed
Return values
mixed —getStatus()
public
getStatus() : mixed
Return values
mixed —getTableNameFromType()
public
static getTableNameFromType(mixed $type) : mixed
Parameters
- $type : mixed
Return values
mixed —getType()
public
getType() : mixed
Return values
mixed —getValue()
public
getValue() : mixed
Return values
mixed —has()
Function to check if the key exists.
public
has(string $key) : bool
Parameters
- $key : string
Return values
bool —isEmpty()
Function to check if the key is empty.
public
isEmpty(string $key) : bool
Parameters
- $key : string
Return values
bool —remove()
Function to remove the value.
public
remove(string $key) : mixed
Parameters
- $key : string
Return values
mixed —save()
public
save() : mixed
Return values
mixed —set()
Function to set the value for a given key.
public
set(string $key, mixed $value) : $this
Parameters
- $key : string
- $value : mixed
Return values
$this —setData()
Function to set all the values.
public
setData(mixed $values) : $this
Parameters
- $values : mixed
Return values
$this —setType()
public
setType(mixed $type) : mixed
Parameters
- $type : mixed