dolibarr  7.0.0-beta
Public Member Functions | Public Attributes | Private Member Functions | List of all members
ActionsCardService Class Reference

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...
 

Detailed Description

Class with controller methods for product canvas.

Definition at line 29 of file actions_card_service.class.php.

Constructor & Destructor Documentation

ActionsCardService::__construct (   $db,
  $targetmodule,
  $canvas,
  $card 
)

Constructor.

Parameters
DoliDB$dbHandler acces base de donnees
string$targetmoduleName of directory of module where canvas is stored
string$canvasName of canvas
string$cardName of tab (sub-canvas)

Definition at line 51 of file actions_card_service.class.php.

References name.

Member Function Documentation

ActionsCardService::assign_values ( $action,
  $id = 0,
  $ref = '' 
)

Assign custom values for canvas (for example into this->tpl to be used by templates)

Parameters
string$actionType of action
integer$idId of object
string$refRef of object
Returns
void

Definition at line 74 of file actions_card_service.class.php.

References $form, description, dol_get_fiche_end(), dol_get_fiche_head(), get_htmloutput_errors(), LoadListDatas(), product_prepare_head(), and Product\TYPE_SERVICE.

ActionsCardService::getFieldList ( )
private

Fetch field list.

Returns
void

Definition at line 244 of file actions_card_service.class.php.

References $resql, dol_print_error(), and verifCond().

Referenced by LoadListDatas().

ActionsCardService::LoadListDatas (   $limit,
  $offset,
  $sortfield,
  $sortorder 
)

Fetch datas list and save into ->list_datas.

Parameters
int$limitLimit number of responses
int$offsetOffset for first response
string$sortfieldSort field
string$sortorderSort order ('ASC' or 'DESC')
Returns
void

Definition at line 299 of file actions_card_service.class.php.

References $resql, dol_strlen(), getFieldList(), GETPOST(), and print.

Referenced by assign_values().


The documentation for this class was generated from the following file: