abstract class ActionsCardCommon (View source)

Abstract class to manage third parties

Properties

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

Methods

getObject($id, string $ref = '')

Get object from id or ref and save it into this->object

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

Assign custom values for canvas (for example into this->tpl to be used by templates)

Details

protected getObject($id, string $ref = '')

Get object from id or ref and save it into this->object

@param int $id Object id

Parameters

$id
string $ref

Object ref @return Societe Object loaded

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

Assign custom values for canvas (for example into this->tpl to be used by templates)

@param string $action Type of action

Parameters

$action
int $id

Id of object @param string $ref Ref of object @return void

$ref