|
dolibarr
13.0.2
|
Class with controller methods for product canvas. More...
Public Member Functions | |
| __construct ($db, $targetmodule, $canvas, $card) | |
| Constructor. More... | |
| assign_values (&$action, $id=0, $ref= '') | |
| Assign custom values for canvas (for example into this->tpl to be used by templates) More... | |
| LoadListDatas ($limit, $offset, $sortfield, $sortorder) | |
| Fetch datas list and save into ->list_datas. More... | |
Public Attributes | |
| $tpl = array() | |
| Template container. | |
Private Member Functions | |
| getFieldList () | |
| Fetch field list. More... | |
Class with controller methods for product canvas.
Definition at line 29 of file actions_card_service.class.php.
| ActionsCardService::__construct | ( | $db, | |
| $targetmodule, | |||
| $canvas, | |||
| $card | |||
| ) |
Constructor.
| DoliDB | $db | Handler acces base de donnees |
| 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 51 of file actions_card_service.class.php.
| ActionsCardService::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 |
Definition at line 75 of file actions_card_service.class.php.
References db, description, dol_get_fiche_end(), dol_get_fiche_head(), get_htmloutput_errors(), LoadListDatas(), note, product_prepare_head(), and Product\TYPE_SERVICE.
|
private |
Fetch field list.
Definition at line 229 of file actions_card_service.class.php.
References $resql, db, dol_print_error(), and verifCond().
Referenced by LoadListDatas().
| ActionsCardService::LoadListDatas | ( | $limit, | |
| $offset, | |||
| $sortfield, | |||
| $sortorder | |||
| ) |
Fetch datas list and save into ->list_datas.
| int | $limit | Limit number of responses |
| int | $offset | Offset for first response |
| string | $sortfield | Sort field |
| string | $sortorder | Sort order ('ASC' or 'DESC') |
Definition at line 284 of file actions_card_service.class.php.
References $resql, db, dol_strlen(), getFieldList(), GETPOST(), and print.
Referenced by assign_values().