*
* Generated from xml/schema/CRM/Core/MailSettings.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0707df8b7612f3aec6bd0d98fccb8464)
+ * (GenCodeChecksum:16f3698a9997d082948fd562d6782962)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
* @var string
*/
static $_links = null;
- /**
- * static instance to hold the values that can
- * be imported
- *
- * @var array
- */
- static $_import = null;
- /**
- * static instance to hold the values that can
- * be exported
- *
- * @var array
- */
- static $_export = null;
/**
* static value to see if we should log any modifications to
* this table in the civicrm_log table
* @return array
*/
static function &import($prefix = false) {
- if (!(self::$_import)) {
- self::$_import = array();
- $fields = self::fields();
- foreach($fields as $name => $field) {
- if (CRM_Utils_Array::value('import', $field)) {
- if ($prefix) {
- self::$_import['mail_settings'] = & $fields[$name];
- } else {
- self::$_import[$name] = & $fields[$name];
- }
- }
- }
- }
- return self::$_import;
+ $r = CRM_Core_DAO_AllCoreTables::getImports(__CLASS__, 'mail_settings', $prefix, array());
+ return $r;
}
/**
* Returns the list of fields that can be exported
* @return array
*/
static function &export($prefix = false) {
- if (!(self::$_export)) {
- self::$_export = array();
- $fields = self::fields();
- foreach($fields as $name => $field) {
- if (CRM_Utils_Array::value('export', $field)) {
- if ($prefix) {
- self::$_export['mail_settings'] = & $fields[$name];
- } else {
- self::$_export[$name] = & $fields[$name];
- }
- }
- }
- }
- return self::$_export;
+ $r = CRM_Core_DAO_AllCoreTables::getExports(__CLASS__, 'mail_settings', $prefix, array());
+ return $r;
}
}