XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
preferences.php
Go to the documentation of this file.
1
<?php
2
3
/****************************************************************************/
4
/* */
5
/* YOU MAY WISH TO MODIFY OR REMOVE THE FOLLOWING LINES WHICH SET DEFAULTS */
6
/* */
7
/****************************************************************************/
8
9
// Sets the default charset so that setCharset() is not needed elsewhere
10
Swift_Preferences::getInstance
()->setCharset(
'utf-8'
);
11
12
// Without these lines the default caching mechanism is "array" but this uses
13
// a lot of memory.
14
// If possible, use a disk cache to enable attaching large attachments etc
15
if
(function_exists(
'sys_get_temp_dir'
) && is_writable(sys_get_temp_dir()))
16
{
17
Swift_Preferences::getInstance
()
18
-> setTempDir(sys_get_temp_dir())
19
-> setCacheType(
'disk'
);
20
}
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
class
swift
preferences.php
Generated on Sun Mar 17 2013 20:41:06 for XOOPS RMCommon Utilities by
1.8.3.1