Button
Class Button
Table of Contents
Methods
- __construct() : mixed
- activate() : mixed
- changeOpenLineActivity() : bool
- check() : mixed
- copy() : mixed
- delete() : mixed
- deleteOpenLineItem() : bool
- generateCache() : mixed
- getCacheLink() : mixed
- getCallback() : mixed
- getCrmForm() : mixed
- getData() : mixed
- getErrors() : mixed
- getId() : mixed
- getItemByType() : mixed
- getItemWorkTime() : array<string|int, mixed>|null
- Returns work time settings
- getLanguageId() : mixed
- getName() : string
- getOpenLine() : mixed
- getWebFormIdList() : mixed
- getWhatsApp() : mixed
- hasActiveItem() : mixed
- hasErrors() : mixed
- hasFileErrors() : mixed
- hasItem() : mixed
- hasItemPages() : mixed
- isCopyrightRemoved() : mixed
- isSystem() : mixed
- load() : mixed
- loadByData() : mixed
- mergeData() : mixed
- save() : mixed
- setData() : mixed
- setSystem() : mixed
- setToForm() : mixed
- unsetFromForm() : mixed
Methods
__construct()
public
__construct([mixed $id = null ]) : mixed
Parameters
- $id : mixed = null
activate()
public
static activate(mixed $buttonId[, mixed $isActivate = true ][, mixed $changeUserBy = null ]) : mixed
Parameters
- $buttonId : mixed
- $isActivate : mixed = true
- $changeUserBy : mixed = null
changeOpenLineActivity()
public
changeOpenLineActivity(bool $isActive) : bool
Parameters
- $isActive : bool
Tags
Return values
boolcheck()
public
check(mixed $fields) : mixed
Parameters
- $fields : mixed
copy()
public
static copy(mixed $buttonId[, mixed $userId = null ]) : mixed
Parameters
- $buttonId : mixed
- $userId : mixed = null
delete()
public
static delete(mixed $buttonId[, mixed $forceSystem = false ]) : mixed
Parameters
- $buttonId : mixed
- $forceSystem : mixed = false
deleteOpenLineItem()
public
deleteOpenLineItem() : bool
Tags
Return values
boolgenerateCache()
public
generateCache() : mixed
getCacheLink()
public
getCacheLink() : mixed
getCallback()
public
getCallback() : mixed
getCrmForm()
public
getCrmForm() : mixed
getData()
public
getData() : mixed
getErrors()
public
getErrors() : mixed
getId()
public
getId() : mixed
getItemByType()
public
getItemByType(mixed $type) : mixed
Parameters
- $type : mixed
getItemWorkTime()
Returns work time settings
public
getItemWorkTime(mixed $typeId) : array<string|int, mixed>|null
Parameters
- $typeId : mixed
Return values
array<string|int, mixed>|nullgetLanguageId()
public
getLanguageId() : mixed
getName()
public
getName() : string
Return values
stringgetOpenLine()
public
getOpenLine() : mixed
getWebFormIdList()
public
getWebFormIdList([string $formType = null ]) : mixed
Parameters
- $formType : string = null
getWhatsApp()
public
getWhatsApp() : mixed
hasActiveItem()
public
hasActiveItem(mixed $type) : mixed
Parameters
- $type : mixed
hasErrors()
public
hasErrors() : mixed
hasFileErrors()
public
hasFileErrors() : mixed
hasItem()
public
hasItem(mixed $type) : mixed
Parameters
- $type : mixed
hasItemPages()
public
hasItemPages(mixed $type) : mixed
Parameters
- $type : mixed
isCopyrightRemoved()
public
isCopyrightRemoved() : mixed
isSystem()
public
isSystem() : mixed
load()
public
load(mixed $id) : mixed
Parameters
- $id : mixed
loadByData()
public
loadByData(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
mergeData()
public
mergeData(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
save()
public
save() : mixed
setData()
public
setData(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
setSystem()
public
setSystem() : mixed
setToForm()
public
setToForm(int $formId, string $formType[, bool $replace = true ][, bool $keepSettings = true ]) : mixed
Parameters
- $formId : int
- $formType : string
- $replace : bool = true
- $keepSettings : bool = true
unsetFromForm()
public
unsetFromForm(int $formId, string $formType[, bool $keepRelation = true ]) : mixed
Parameters
- $formId : int
- $formType : string
- $keepRelation : bool = true