- function add_source_document($id_source, $document)
- { $sgbd = $this->sgbd();
- if(!$sgbd->data_exists("sml_sources/".$id_source))
- { if(!$sgbd->create_data("sml_sources/".$id_source)) return false;
- }
- if
- ( !( $id_document = $sgbd->add_data
- ( "sml_sources/".$id_source,
- array
- ( "nom" => $document["nom"],
+ public function add_source_document($id_source, $document){
+ $sgbd = $this->sgbd();
+ if(!$sgbd->data_exists("sml_sources/".$id_source)){
+ if(!$sgbd->create_data("sml_sources/".$id_source)) return false;
+ }
+ if(
+ !(
+ $id_document = $sgbd->add_data(
+ "sml_sources/".$id_source,
+ array(
+ "nom" => $document["nom"],