dolibarr 20.0.0
|
ActionsCardIndividual. More...
Public Member Functions | |
__construct ($db, $dirmodule, $targetmodule, $canvas, $card) | |
Constructor. | |
assign_values (&$action, $id=0, $ref='') | |
Assign custom values for canvas (for example into this->tpl to be used by templates) | |
restrictedArea ($user, $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. | |
Private Member Functions | |
getTitle ($action) | |
Return the title of card. | |
Additional Inherited Members | |
Public Attributes inherited from ActionsCardCommon | |
$tpl = array() | |
Template container. | |
$object | |
Object container. | |
Protected Member Functions inherited from ActionsCardCommon | |
getObject ($id, $ref='') | |
Get object from id or ref and save it into this->object. | |
Class with controller methods for individual canvas
Definition at line 31 of file actions_card_individual.class.php.
ActionsCardIndividual::__construct | ( | $db, | |
$dirmodule, | |||
$targetmodule, | |||
$canvas, | |||
$card ) |
Constructor.
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) |
Definition at line 42 of file actions_card_individual.class.php.
ActionsCardIndividual::assign_values | ( | & | $action, |
$id = 0, | |||
$ref = '' ) |
Assign custom values for canvas (for example into this->tpl to be used by templates)
string | $action | Type of action |
integer | $id | Id of object |
string | $ref | Ref of object |
Reimplemented from ActionsCardCommon.
Definition at line 86 of file actions_card_individual.class.php.
References ActionsCardCommon\getObject(), GETPOST(), getTitle(), and load_fiche_titre().
|
private |
Return the title of card.
string | $action | Action code |
Definition at line 58 of file actions_card_individual.class.php.
Referenced by assign_values().
ActionsCardIndividual::restrictedArea | ( | $user, | |
$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.
User | $user | User to check |
string | $features | Features to check (in most cases, it's module name) |
int | $objectid | Object ID if we want to check permission on a particular record (optional) |
string | $dbtablename | Table name where object is stored. Not used if objectid is null (optional) |
string | $feature2 | Feature to check (second level of permission) |
string | $dbt_keyfield | Field name for socid foreign key if not fk_soc. (optional) |
string | $dbt_select | Field name for select if not rowid. (optional) |
Definition at line 121 of file actions_card_individual.class.php.
References restrictedArea().
Referenced by restrictedArea().