dolibarr 19.0.4
repair.lib.php File Reference

Library of repair functions. More...

Go to the source code of this file.

Functions

 checkElementExist ($id, $table)
 Check if an element exist.
 
 checkLinkedElements ($sourcetype, $targettype)
 Check linked elements and delete if invalid.
 
 clean_data_ecm_directories ()
 Clean data into ecm_directories table.
 

Detailed Description

Library of repair functions.

Definition in file repair.lib.php.

Function Documentation

◆ checkElementExist()

checkElementExist ( $id,
$table )

Check if an element exist.

Parameters
int$idElement id
string$tableTable of Element
Returns
boolean True if child exists

Definition at line 31 of file repair.lib.php.

Referenced by checkLinkedElements().

◆ checkLinkedElements()

checkLinkedElements ( $sourcetype,
$targettype )

Check linked elements and delete if invalid.

Parameters
string$sourcetypeSource element type
string$targettypeTarget element type
Returns
string

Definition at line 57 of file repair.lib.php.

References checkElementExist().

◆ clean_data_ecm_directories()

clean_data_ecm_directories ( )

Clean data into ecm_directories table.

Returns
int Return integer <0 if KO, >0 if OK

Definition at line 130 of file repair.lib.php.

References dol_print_error(), and dol_sanitizeFileName().