X-Git-Url: http://git.dj3c1t.com/index.cgi?a=blobdiff_plain;f=app%2Fdata%2Fmodules%2Fsql%2Fsml_data_authors.php;h=5d1288fe9b3a173b0c1fac9ee370d47b3e3587ad;hb=0b1ecd8b7536944d54d74ffc836982de3654d98b;hp=81d308d08ddc2b3a16a2880840923ac9cdb7986b;hpb=3647c6bed06b3a1e3e014ef5a21074e7a6192899;p=mw_sourceml diff --git a/app/data/modules/sql/sml_data_authors.php b/app/data/modules/sql/sml_data_authors.php index 81d308d..5d1288f 100644 --- a/app/data/modules/sql/sml_data_authors.php +++ b/app/data/modules/sql/sml_data_authors.php @@ -1,13 +1,12 @@ sgbd(); $env = $this->env(); $groupes = array("list" => array(), "total" => 0); @@ -43,7 +42,7 @@ return $groupes; } - function groupe($id){ + public function groupe($id){ $sgbd = $this->sgbd(); $env = $this->env(); $groupe = array(); @@ -61,11 +60,13 @@ } $sgbd->free_result($rst); } - catch(Exception $e) { return false; } + catch(Exception $e){ + return false; + } return $groupe; } - function groupe_exists($nom, $other_than_id = null){ + public function groupe_exists($nom, $other_than_id = null){ $sgbd = $this->sgbd(); $EXISTS = 0; try{ @@ -81,7 +82,7 @@ return $EXISTS; } - function add_groupe($id_user, $nom, $image, $description, $email, $contact_form, $captcha){ + public function add_groupe($id_user, $nom, $image, $description, $email, $contact_form, $captcha){ $sgbd = $this->sgbd(); try{ $sql = @@ -102,7 +103,7 @@ return true; } - function set_groupe($id, $nom, $image, $description, $email, $contact_form, $captcha){ + public function set_groupe($id, $nom, $image, $description, $email, $contact_form, $captcha){ if(($groupe = $this->groupe($id)) === false) return false; $sgbd = $this->sgbd(); try{ @@ -127,7 +128,7 @@ return true; } - function del_groupe($id){ + public function del_groupe($id){ $sgbd = $this->sgbd(); try{ $sql = "SELECT count(*) as n FROM #--sml_sources_authors WHERE id_author=".$this->eq($id); @@ -145,5 +146,3 @@ } } - -?> \ No newline at end of file