[commits] [Wiki] changed: RemoveUserData

Wiki Guest wikiguest at horde.org
Thu Oct 24 08:58:51 UTC 2013


guest [194.95.66.21]  Thu, 24 Oct 2013 08:58:51 +0000

Modified page: http://wiki.horde.org/RemoveUserData
New Revision:  15
Change log:  add command line handling

@@ -19,11 +19,23 @@
  }
  require_once  $baseDir . '/lib/Application.php';

  Horde_Registry::appInit('horde', array('cli' => true, 'user_admin' => true));
+
+// remove single user
  $value = '<user>';
  $cli->writeln('Remove user data of ' . $value);
  $registry->removeUserData($value);
+
+/* remove users on command line
+for($i = 1; $i < $argc; ++$i) {
+	$value = $argv[$i];
+	print $i. ' '. $value. "\n";
+	$cli->writeln('Remove user data of ' . $value);
+	$registry->removeUserData($value);
+}
+*/
+

  </code>

  ++ Using the removeUserData APIs



More information about the commits mailing list