ActionsCardProduct
class ActionsCardProduct (View source)
Class with controller methods for product canvas
Properties
| DoliDB | $db | ||
| string | $dirmodule | ||
| string | $targetmodule | ||
| string | $canvas | ||
| string | $card | ||
| string | $name | ||
| string | $definition | ||
| string | $description | ||
| string | $price_base_type | ||
| string | $accountancy_code_sell | ||
| string | $accountancy_code_buy | ||
| string | $fieldListName | ||
| string | $next_prev_filter | ||
| Product | $object | ||
| array<string, mixed> | $tpl | ||
| $field_list | array<array{id:int,name:string,alias:string,title:string,align:string,sort:string,search:string,visible:int<-2,5>,enabled:int<0,1>,order:int}> List of fields for action=list |
||
| string | $error | ||
| string[] | $errors |
Methods
__construct($db, string $dirmodule, $targetmodule, $canvas, $card)
Constructor
assign_values($action, int $id = 0, $ref = '')
Assign custom values for canvas (for example into this->tpl to be used by templates)
Details
__construct($db, string $dirmodule, $targetmodule, $canvas, $card)
Constructor
@param DoliDB $db Database handler
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