marche avec MySql, SQLite ou XML
[mw_sourceml] / app / data / modules / sql / sml_data_source_groupes.php
index e2fb23f..0ada4f0 100644 (file)
       return $permissions;
     }
 
+// --------------------------------------------------------------------
+
+    function sources_invitations($groupes, $id_user){
+      $groupes_in = "";
+      foreach($groupes as $id_groupe => $groupe) $groupes_in .= ($groupes_in ? "," : "").$id_groupe;
+      return $this->list_sml_sources_invitations(
+        array(
+          "index_name" => "id",
+          "where"=> ($groupes_in ? "id_author IN(".$groupes_in.") OR " : "")."id_user=".$id_user,
+          "order_by" => "date_invitation",
+          "order" => "DESC"
+        )
+      );
+    }
+
   }
 
 ?>
\ No newline at end of file