ActionsCardIndividual
class ActionsCardIndividual extends ActionsCardCommon (View source)
ActionsCardIndividual
Class with controller methods for individual canvas
Properties
| DoliDB | $db | from ActionsCardCommon | |
| string | $dirmodule | from ActionsCardCommon | |
| string | $targetmodule | from ActionsCardCommon | |
| string | $canvas | from ActionsCardCommon | |
| string | $card | from ActionsCardCommon | |
| array<string, mixed> | $tpl | from ActionsCardCommon | |
| Societe | $object | from ActionsCardCommon | |
| string | $error | from ActionsCardCommon | |
| string[] | $errors | from ActionsCardCommon |
Methods
Get object from id or ref and save it into this->object
Assign custom values for canvas (for example into this->tpl to be used by templates)
Constructor
Check permissions of a user to show a page and an object. Check read permission If $_REQUEST['action'] defined, we also check write permission.
Details
protected
getObject($id, string $ref = '')
Get object from id or ref and save it into this->object
@param int $id Object id
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
__construct($db, string $dirmodule, $targetmodule, $canvas, $card)
Constructor
@param DoliDB $db Handler access base de donnees
restrictedArea($user, string $features = 'societe', $objectid = 0, $dbtablename = '', $feature2 = '', $dbt_keyfield = 'fk_soc', $dbt_select = 'rowid')
Check permissions of a user to show a page and an object. Check read permission If $_REQUEST['action'] defined, we also check write permission.
@param User $user User to check