[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;
+ }
}
?>
- [Noalyss-commit] [noalyss] branch devel updated (eba72b4c -> d0eb957a), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 05/07: Improve : set and setp return $this, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 06/07: Fix : JSON answer didn't work, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 07/07: Improve : card attribute option is a textarea, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 01/07: For plugin , send a NOCONX when the session is expired instead of stopping, Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 04/07: Documentation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 03/07: Fixed : error when column contains only a input element (checkbox), Dany De Bontridder, 2022/03/08
- [Noalyss-commit] [noalyss] 02/07: Documentation, Dany De Bontridder, 2022/03/08