aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/PConfig.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-01-25 10:31:09 +0100
committerMario <mario@mariovavti.com>2019-01-25 10:31:09 +0100
commit45dcd987c5c873a3da39e508ca195f73e78459a0 (patch)
tree89cec599e2219120175ec3550e800be2efe13619 /Zotlabs/Lib/PConfig.php
parent960246fbb9e7e352908351c4f063b31f93ea1f52 (diff)
parent13e0151cd2569832588cc9a973bcf40d850edd53 (diff)
downloadvolse-hubzilla-45dcd987c5c873a3da39e508ca195f73e78459a0.tar.gz
volse-hubzilla-45dcd987c5c873a3da39e508ca195f73e78459a0.tar.bz2
volse-hubzilla-45dcd987c5c873a3da39e508ca195f73e78459a0.zip
Merge branch 'doku' into 'dev'
Correct and extend Doxygen comments. See merge request hubzilla/core!1485
Diffstat (limited to 'Zotlabs/Lib/PConfig.php')
-rw-r--r--Zotlabs/Lib/PConfig.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Lib/PConfig.php b/Zotlabs/Lib/PConfig.php
index 69f4de2db..95f07d580 100644
--- a/Zotlabs/Lib/PConfig.php
+++ b/Zotlabs/Lib/PConfig.php
@@ -112,9 +112,11 @@ class PConfig {
* The configuration key to set
* @param string $value
* The value to store
+ * @param string $updated (optional)
+ * The datetime to store
* @return mixed Stored $value or false
*/
- static public function Set($uid, $family, $key, $value, $updated=NULL) {
+ static public function Set($uid, $family, $key, $value, $updated = NULL) {
// this catches subtle errors where this function has been called
// with local_channel() when not logged in (which returns false)
@@ -239,7 +241,9 @@ class PConfig {
* The category of the configuration value
* @param string $key
* The configuration key to delete
- * @return mixed
+ * @param string $updated (optional)
+ * The datetime to store
+ * @return boolean
*/
static public function Delete($uid, $family, $key, $updated = NULL) {
@@ -283,6 +287,7 @@ class PConfig {
if(! array_key_exists($family, \App::$config[$uid]['transient']))
\App::$config[$uid]['transient'][$family] = array();
+ /// @FIXME $new is undefined, so dead code
if ($new) {
\App::$config[$uid]['transient'][$family]['pcfgdel:'.$key] = $updated;
}