noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 04/07: Documentation


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 04/07: Documentation
Date: Tue, 8 Mar 2022 17:08:56 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit 3792b5dd97170323bbd5a6de5c60d2e1dc8abf6b
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Mar 8 09:21:21 2022 +0100

    Documentation
---
 include/class/extension.class.php |  2 +-
 include/class/fiche.class.php     | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/include/class/extension.class.php 
b/include/class/extension.class.php
index 9ed9561a..343eb951 100644
--- a/include/class/extension.class.php
+++ b/include/class/extension.class.php
@@ -130,7 +130,7 @@ class Extension extends Menu_Ref_sql
     }
 
     /**
-     * insert into the table profile_menu for the given profile id and 
depending
+     * @brief insert into the table profile_menu for the given profile id and 
depending
      * of the module $p_module
      * @remark type $cn
      * @param type $p_id profile.p_id
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index 29fb26d6..d3d43fe5 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -1844,6 +1844,17 @@ class Fiche
         }
 
     }
+    /**
+     * @brief create a card from a qcode and returns a card
+     * @param string $p_qcode qcode of the card
+     */
+    static function from_qcode($p_qcode)
+    {
+        $cn=Dossier::connect();
+        $card=new Card($cn);
+        $card->get_by_qcode($p_qcode);
+        return $card;
+    }
 }
 
 ?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]