dolibarr  17.0.4
Functions
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. More...
 
 checkLinkedElements ($sourcetype, $targettype)
 Check linked elements and delete if invalid. More...
 
 clean_data_ecm_directories ()
 Clean data into ecm_directories table. More...
 

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.

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

◆ clean_data_ecm_directories()

clean_data_ecm_directories ( )

Clean data into ecm_directories table.

Returns
void

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