YetiForce PHP Documentation

OSSMailView_Record_Model extends Vtiger_Record_Model
in package

OSSMailView record model class.

Tags
copyright

YetiForce Sp. z o.o

license

YetiForce Public License 3.0 (licenses/LicenseEN.txt or yetiforce.com)

Table of Contents

TYPE_COLORS  = [0 => 'bgGreen', 1 => 'bgDanger', 2 => 'bgBlue']
$modules_email_actions_widgets  : mixed
__construct()  : mixed
addLog()  : mixed
addRelated()  : string
Add related.
bindSelectedRecords()  : mixed
changeTypeAllRecords()  : mixed
changeTypeSelectedRecords()  : mixed
checkMailExist()  : bool|int
Check if mail exist.
delete()  : mixed
Function to delete the current Record Model.
deleteRel()  : mixed
findEmail()  : string
Find email for record.
findEmailInRelated()  : string
Find email in related records.
findRecordsById()  : string
Find records.
get()  : mixed
getAttachments()  : array<string|int, mixed>
Returns basic information about atachments for this mail.
getMailType()  : mixed
getRelatedRecords()  : array<string|int, mixed>
Get related records.
isEditable()  : bool
Check if record is editable.
isWidgetEnabled()  : mixed
removeRelated()  : string
Remove related.
setReloadRelationRecord()  : mixed
Set reload relation record.
showEmailsList()  : array<string|int, string>
Function return emails list.

Constants

TYPE_COLORS

public mixed TYPE_COLORS = [0 => 'bgGreen', 1 => 'bgDanger', 2 => 'bgBlue']

Properties

$modules_email_actions_widgets

protected mixed $modules_email_actions_widgets = []

Methods

__construct()

public __construct() : mixed
Return values
mixed

addLog()

public addLog(mixed $action, mixed $info) : mixed
Parameters
$action : mixed
$info : mixed
Return values
mixed

addRelated()

Add related.

public static addRelated(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>
Return values
string

bindSelectedRecords()

public bindSelectedRecords(mixed $selectedIds) : mixed
Parameters
$selectedIds : mixed
Return values
mixed

changeTypeAllRecords()

public changeTypeAllRecords(mixed $mailType) : mixed
Parameters
$mailType : mixed
Return values
mixed

changeTypeSelectedRecords()

public changeTypeSelectedRecords(mixed $selectedIds, mixed $mail_type) : mixed
Parameters
$selectedIds : mixed
$mail_type : mixed
Return values
mixed

checkMailExist()

Check if mail exist.

public checkMailExist(int $uid, mixed $folder, mixed $rcId, object $mbox) : bool|int
Parameters
$uid : int
$folder : mixed
$rcId : mixed
$mbox : object
Return values
bool|int

delete()

Function to delete the current Record Model.

public delete() : mixed
Return values
mixed

deleteRel()

public deleteRel(mixed $recordId) : mixed
Parameters
$recordId : mixed
Return values
mixed

findEmail()

Find email for record.

public findEmail(int $record, string $module) : string
Parameters
$record : int
$module : string
Return values
string

findEmailInRelated()

Find email in related records.

public findEmailInRelated(Vtiger_Record_Model $recordModel) : string
Parameters
$recordModel : Vtiger_Record_Model
Return values
string

findRecordsById()

Find records.

public findRecordsById(array<string|int, int> $ids) : string
Parameters
$ids : array<string|int, int>
Return values
string

get()

public get(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

getAttachments()

Returns basic information about atachments for this mail.

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

getMailType()

public static getMailType() : mixed
Return values
mixed

getRelatedRecords()

Get related records.

public getRelatedRecords(int $record) : array<string|int, mixed>
Parameters
$record : int
Return values
array<string|int, mixed>

isEditable()

Check if record is editable.

public isEditable() : bool
Return values
bool

isWidgetEnabled()

public isWidgetEnabled(mixed $module) : mixed
Parameters
$module : mixed
Return values
mixed

removeRelated()

Remove related.

public static removeRelated(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>
Return values
string

setReloadRelationRecord()

Set reload relation record.

public setReloadRelationRecord(string $moduleName, int $record) : mixed
Parameters
$moduleName : string
$record : int
Return values
mixed

showEmailsList()

Function return emails list.

public showEmailsList(int $srecord, string $smodule, array<string|int, mixed> $config, string $type[, string $filter = 'All' ]) : array<string|int, string>
Parameters
$srecord : int
$smodule : string
$config : array<string|int, mixed>
$type : string
$filter : string = 'All'
Return values
array<string|int, string>

Search results