Move IMP_Compose_Exception to its own file
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 10 Jul 2009 22:01:48 +0000 (16:01 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 13 Jul 2009 19:47:01 +0000 (13:47 -0600)
imp/lib/Compose.php
imp/lib/Compose/Exception.php [new file with mode: 0644]

index 6423fcf..f9bc893 100644 (file)
@@ -2553,23 +2553,3 @@ class IMP_Compose
         return array('sources' => $src, 'fields' => $fields);
     }
 }
-
-class IMP_Compose_Exception extends Horde_Exception
-{
-    protected $_encrypt = null;
-
-    public function __set($name, $val)
-    {
-        if ($name == 'encrypt') {
-            $this->_encrypt = $val;
-        }
-    }
-
-    public function __get($name)
-    {
-        if ($name == 'encrypt') {
-            return $this->_encrypt;
-        }
-    }
-
-}
diff --git a/imp/lib/Compose/Exception.php b/imp/lib/Compose/Exception.php
new file mode 100644 (file)
index 0000000..a5bf873
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+/**
+ * The IMP_Compose_Exception:: class handles exceptions thrown from the
+ * IMP_Compose class.
+ *
+ * Copyright 2009 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author  Michael Slusarz <slusarz@horde.org>
+ * @package IMP
+ */
+class IMP_Compose_Exception extends Horde_Exception
+{
+    /**
+     * Stores information on whether an encryption dialog window needs
+     * to be opened.
+     *
+     * @var string
+     */
+    public $encrypt = null;
+
+}