dolibarr 19.0.4
FormMargin Class Reference

Classe permettant la generation de composants html autre Only common components are here. More...

Public Member Functions

 __construct ($db)
 Constructor.
 
 getMarginInfosArray ($object, $force_price=false)
 get array with margin information from lines of object TODO Move this in common class.
 
 displayMarginInfos ($object, $force_price=false)
 Show the array with all margin infos.
 

Detailed Description

Classe permettant la generation de composants html autre Only common components are here.

Definition at line 29 of file html.formmargin.class.php.

Constructor & Destructor Documentation

◆ __construct()

FormMargin::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 47 of file html.formmargin.class.php.

Member Function Documentation

◆ displayMarginInfos()

FormMargin::displayMarginInfos ( $object,
$force_price = false )

Show the array with all margin infos.

Parameters
CommonObject$objectObject we want to get margin information for
boolean$force_priceForce price
Returns
void

Definition at line 208 of file html.formmargin.class.php.

References getDolGlobalString(), getMarginInfosArray(), img_picto(), price(), and setEventMessages().

◆ getMarginInfosArray()

FormMargin::getMarginInfosArray ( $object,
$force_price = false )

get array with margin information from lines of object TODO Move this in common class.

Parameters
CommonObject$objectObject we want to get margin information for
boolean$force_priceTrue of not
Returns
array Array with info

Definition at line 62 of file html.formmargin.class.php.

References getDolGlobalInt(), and getDolGlobalString().

Referenced by displayMarginInfos().


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