abstract class ActionsContactCardCommon (View source)

\class ActionsContactCardCommon \brief Common Abstract Class for contact managmeent

Properties

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

Methods

object
getObject($id)

Get object

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

Set content of ->tpl array, to use into template

Details

object getObject($id)

Get object

@param int $id Object id

Parameters

$id

Return Value

object

Object loaded

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

Set content of ->tpl array, to use into template

@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