dolibarr  17.0.3
Public Member Functions | List of all members
AccountancyImport Class Reference

Manage the different format accountancy import. More...

Public Member Functions

 __construct (DoliDB $db)
 Constructor. More...
 
 cleanAmount (&$arrayrecord, $listfields, $record_key)
 Clean amount. More...
 
 cleanValue (&$arrayrecord, $listfields, $record_key)
 Clean value with trim. More...
 
 computeAmount (&$arrayrecord, $listfields, $record_key)
 Compute amount. More...
 
 computeDirection (&$arrayrecord, $listfields, $record_key)
 Compute direction. More...
 

Detailed Description

Manage the different format accountancy import.

Definition at line 40 of file accountancyimport.class.php.

Constructor & Destructor Documentation

◆ __construct()

AccountancyImport::__construct ( DoliDB  $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

Definition at line 53 of file accountancyimport.class.php.

References db.

Member Function Documentation

◆ cleanAmount()

AccountancyImport::cleanAmount ( $arrayrecord,
  $listfields,
  $record_key 
)

Clean amount.

Parameters
array$arrayrecordArray of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array$listfieldsFields list to add
int$record_keyRecord key
Returns
mixed Value

Definition at line 66 of file accountancyimport.class.php.

◆ cleanValue()

AccountancyImport::cleanValue ( $arrayrecord,
  $listfields,
  $record_key 
)

Clean value with trim.

Parameters
array$arrayrecordArray of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array$listfieldsFields list to add
int$record_keyRecord key
Returns
mixed Value

Definition at line 80 of file accountancyimport.class.php.

◆ computeAmount()

AccountancyImport::computeAmount ( $arrayrecord,
  $listfields,
  $record_key 
)

Compute amount.

Parameters
array$arrayrecordArray of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array$listfieldsFields list to add
int$record_keyRecord key
Returns
mixed Value

Definition at line 93 of file accountancyimport.class.php.

◆ computeDirection()

AccountancyImport::computeDirection ( $arrayrecord,
  $listfields,
  $record_key 
)

Compute direction.

Parameters
array$arrayrecordArray of read values: [fieldpos] => (['val']=>val, ['type']=>-1=null,0=blank,1=string), [fieldpos+1]...
array$listfieldsFields list to add
int$record_keyRecord key
Returns
mixed Value

Definition at line 124 of file accountancyimport.class.php.


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