This belongs in Applicaiton.php
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 17 May 2010 18:42:19 +0000 (14:42 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 17 May 2010 18:42:19 +0000 (14:42 -0400)
mnemo/lib/Api.php
mnemo/lib/Application.php

index 0b5d2a2..1df7a5f 100644 (file)
@@ -71,21 +71,6 @@ $_services['replace'] = array(
 );
 
 /**
- * Returns a list of available permissions.
- *
- * @return array  An array describing all available permissions.
- */
-function _mnemo_perms()
-{
-    $perms = array();
-    $perms['tree']['mnemo']['max_notes'] = false;
-    $perms['title']['mnemo:max_notes'] = _("Maximum Number of Notes");
-    $perms['type']['mnemo:max_notes'] = 'int';
-
-    return $perms;
-}
-
-/**
  * Removes user data.
  *
  * @param string $user  Name of user to remove data for.
index bad8565..1b9f711 100644 (file)
@@ -53,6 +53,21 @@ class Mnemo_Application extends Horde_Registry_Application
     }
 
     /**
+     * Returns a list of available permissions.
+     *
+     * @return array  An array describing all available permissions.
+     */
+    public function perms()
+    {
+        $perms = array();
+        $perms['tree']['mnemo']['max_notes'] = false;
+        $perms['title']['mnemo:max_notes'] = _("Maximum Number of Notes");
+        $perms['type']['mnemo:max_notes'] = 'int';
+
+        return $perms;      
+    }
+
+    /**
      * Populate dynamically-generated preference values.
      *
      * @param Horde_Core_Prefs_Ui $ui  The UI object.