X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FMailSettings.php;h=6bd4d77250f91703df0ea9f5f783887ead2c96ef;hb=60808919139a05136c4c3bc4900b7a930d9cff33;hp=bc80a1e50e32d431fd59ce8f448ea3394d6596c3;hpb=e501603bcc6d86d85326809a48ce758cacaaa793;p=civicrm-core.git diff --git a/CRM/Core/DAO/MailSettings.php b/CRM/Core/DAO/MailSettings.php index bc80a1e50e..6bd4d77250 100644 --- a/CRM/Core/DAO/MailSettings.php +++ b/CRM/Core/DAO/MailSettings.php @@ -30,7 +30,7 @@ * * 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'; @@ -59,20 +59,6 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { * @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 @@ -366,20 +352,8 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { * @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 @@ -389,19 +363,7 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { * @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; } }