[commits] [Wiki] changed: RemoveUserData
Wiki Guest
wikiguest at horde.org
Thu Oct 24 07:10:48 UTC 2013
guest [194.95.66.21] Thu, 24 Oct 2013 07:10:48 +0000
Modified page: http://wiki.horde.org/RemoveUserData
New Revision: 13
Change log: added script for Horde5
@@ -1,5 +1,27 @@
+ Removing User Data
+
+++ Using the removeUserData APIs of Horde 5
+
+<code>
+#!/usr/bin/env php
+<?php
+
+if (file_exists(__DIR__ . '/../lib/Application.php')) {
+ $baseDir = __DIR__;
+} else {
+ require_once 'PEAR/Config.php';
+ $baseDir = PEAR_Config::singleton()
+ ->get('horde_dir', null, 'pear.horde.org') . '/kronolith/';
+}
+require_once $baseDir . '/lib/Application.php';
+
+Horde_Registry::appInit('horde', array('cli' => true, 'user_admin' => true));
+$value = '<user>';
+$cli->writeln('Remove user data of ' . $value);
+$registry->removeUserData($value);
+
+</code>
++ Using the removeUserData APIs
From dom.lalot at gmail com
More information about the commits
mailing list