class MailObject extends CommonObject (View source)

MailObject class

Properties

DoliDb $db
int $id
string $element

Methods

__construct(DoliDb $db)

Constructor

int
fetch(int $id)

Load object in memory from database

Details

__construct(DoliDb $db)

Constructor

Parameters

DoliDb $db Database handler

int fetch(int $id)

Load object in memory from database

Parameters

int $id object Id

Return Value

int <0 if KO, >0 if OK