class ActionsAdherentCardDefault extends ActionsAdherentCardCommon (View source)

\class ActionsAdherentCardDefault \brief Class allowing the management of the members by default

Properties

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

Methods

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

Assign custom values for canvas

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

Constructor

Details

Adherent getObject($id)

Get object

@param int $id Object id

Parameters

$id

Return Value

Adherent

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 data base

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)