Shout: Continue creating the recordings UI
authorBen Klang <ben@alkaloid.net>
Wed, 17 Mar 2010 16:25:03 +0000 (12:25 -0400)
committerGunnar Wrobel <wrobel@temple.(none)>
Wed, 17 Mar 2010 20:23:11 +0000 (21:23 +0100)
shout/lib/Ajax/Application.php

index 9fe31af..bb87a37 100644 (file)
@@ -212,6 +212,17 @@ class Shout_Ajax_Application extends Horde_Ajax_Application_Base
         }
     }
 
+    public function getRecordings()
+    {
+        try {
+            return Shout::getRecordings($_SESSION['shout']['curaccount']);
+        } catch (Exception $e) {
+            //FIXME: Create a way to notify the user of the failure.
+            Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR);
+            return false;
+        }
+    }
+
     public function responseType()
     {
         return $this->_responseType;