class ActionsContactCardDefault extends ActionsContactCardCommon (View source)

\class ActionsContactCardDefault \brief Default Class to manage contacts

Properties

DoliDB $db from  ActionsContactCardCommon
string $dirmodule from  ActionsContactCardCommon
string $targetmodule from  ActionsContactCardCommon
string $canvas from  ActionsContactCardCommon
string $card from  ActionsContactCardCommon
array<string, mixed> $tpl from  ActionsContactCardCommon
Contact $object from  ActionsContactCardCommon
string $error from  ActionsContactCardCommon
string[] $errors from  ActionsContactCardCommon

Methods

object
getObject($id)

Get object

assign_values($action, int $id, $ref = '')

Assign custom values for canvas

__construct(DoliDB $db, string $dirmodule, string $targetmodule, string $canvas, string $card)

Constructor

Details

object getObject($id)

Get object

@param int $id Object id

Parameters

$id

Return Value

object

Object loaded

assign_values($action, int $id, $ref = '')

Assign custom values for canvas

@param string $action Type of action

Parameters

$action
int $id

Id @param string $ref Object ref (if id not provided) / Unused here @return void

$ref

__construct(DoliDB $db, string $dirmodule, string $targetmodule, string $canvas, string $card)

Constructor

Parameters

DoliDB $db

Handler access base de donnees

string $dirmodule

Name of directory of module

string $targetmodule

Name of directory of module where canvas is stored

string $canvas

Name of canvas

string $card

Name of tab (sub-canvas)