dolibarr  7.0.0-beta
Public Member Functions | List of all members
FormMargin Class Reference

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

Public Member Functions

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

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

FormMargin::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

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

Member Function Documentation

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 191 of file html.formmargin.class.php.

References dol_buildpath(), getMarginInfosArray(), img_picto(), price(), and print.

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 57 of file html.formmargin.class.php.

Referenced by displayMarginInfos().


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