+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* smart caching scheme on a per domain basis
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2016
* $Id$
*
*/
);
}
+ /**
+ * Exportable document formats.
+ *
+ * @return array
+ */
+ public static function documentFormat() {
+ return array(
+ 'pdf' => ts('Portable Document Format (.pdf)'),
+ 'docx' => ts('MS Word (.docx)'),
+ 'odt' => ts('Open Office (.odt)'),
+ 'html' => ts('Webpage (.html)'),
+ );
+ }
+
+ /**
+ * Application type of document.
+ *
+ * @return array
+ */
+ public static function documentApplicationType() {
+ return array(
+ 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
+ 'odt' => 'application/vnd.oasis.opendocument.text',
+ );
+ }
+
}