Documentation

Import_Map_Model extends Base
in package

Base class.

Table of Contents

$map  : mixed
$tableName  : mixed
$value  : array<string|int, mixed>
__construct()  : mixed
Constructor.
get()  : mixed
Function to get the value for a given key.
getAllByModule()  : mixed
getAllValues()  : mixed
getArray()  : array<string|int, mixed>
Function to get the array values for a given key.
getData()  : array<string|int, mixed>
Function to get all the values of the Object.
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
getInstanceFromDb()  : mixed
getKeys()  : array<string|int, string>
Function to get keys.
getStringifiedContent()  : mixed
getValue()  : mixed
has()  : bool
Function to check if the key exists.
isEmpty()  : bool
Function to check if the key is empty.
markAsDeleted()  : mixed
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.

Properties

$map

public mixed $map

$tableName

public static mixed $tableName = 'vtiger_import_maps'

$value

protected array<string|int, mixed> $value

Values

Methods

__construct()

Constructor.

public __construct(mixed $map) : mixed
Parameters
$map : 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

getAllByModule()

public static getAllByModule(mixed $moduleName) : mixed
Parameters
$moduleName : mixed
Return values
mixed

getAllValues()

public getAllValues() : mixed
Return values
mixed

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>

getData()

Function to get all the values of the Object.

public getData() : array<string|int, mixed>
Return values
array<string|int, 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

getInstanceFromDb()

public static getInstanceFromDb(mixed $row) : mixed
Parameters
$row : mixed
Return values
mixed

getKeys()

Function to get keys.

public getKeys() : array<string|int, string>
Return values
array<string|int, string>

getStringifiedContent()

public getStringifiedContent() : mixed
Return values
mixed

getValue()

public getValue(mixed $key) : mixed
Parameters
$key : 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

markAsDeleted()

public static markAsDeleted(mixed $mapId) : mixed
Parameters
$mapId : mixed
Return values
mixed

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

        

Search results