3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.7 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2016 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
29 * @copyright CiviCRM LLC (c) 2004-2016
31 * Generated from xml/schema/CRM/Core/Persistent.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
33 * (GenCodeChecksum:9b08831f82375bb41e0f54c03b69b79e)
35 require_once 'CRM/Core/DAO.php';
36 require_once 'CRM/Utils/Type.php';
37 class CRM_Core_DAO_Persistent
extends CRM_Core_DAO
{
39 * static instance to hold the table name
43 static $_tableName = 'civicrm_persistent';
45 * static instance to hold the field values
49 static $_fields = null;
51 * static instance to hold the FK relationships
55 static $_links = null;
57 * static value to see if we should log any modifications to
58 * this table in the civicrm_log table
64 * Persistent Record Id
70 * Context for which name data pair is to be stored
82 * data associated with name
96 * @return civicrm_persistent
98 function __construct() {
99 $this->__table
= 'civicrm_persistent';
100 parent
::__construct();
103 * Returns all the column names of this table
107 static function &fields() {
108 if (!(self
::$_fields)) {
109 self
::$_fields = array(
112 'type' => CRM_Utils_Type
::T_INT
,
113 'title' => ts('Persistent ID') ,
114 'description' => 'Persistent Record Id',
119 'type' => CRM_Utils_Type
::T_STRING
,
120 'title' => ts('Context') ,
121 'description' => 'Context for which name data pair is to be stored',
124 'size' => CRM_Utils_Type
::HUGE
,
128 'type' => CRM_Utils_Type
::T_STRING
,
129 'title' => ts('Name') ,
130 'description' => 'Name of Context',
133 'size' => CRM_Utils_Type
::HUGE
,
137 'type' => CRM_Utils_Type
::T_LONGTEXT
,
138 'title' => ts('Data') ,
139 'description' => 'data associated with name',
141 'is_config' => array(
142 'name' => 'is_config',
143 'type' => CRM_Utils_Type
::T_BOOLEAN
,
144 'title' => ts('Is Configuration?') ,
145 'description' => 'Config Settings',
150 return self
::$_fields;
153 * Return a mapping from field-name to the corresponding key (as used in fields()).
156 * Array(string $name => string $uniqueName).
158 static function &fieldKeys() {
159 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
160 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
162 return Civi
::$statics[__CLASS__
]['fieldKeys'];
165 * Returns the names of this table
169 static function getTableName() {
170 return self
::$_tableName;
173 * Returns if this table needs to be logged
181 * Returns the list of fields that can be imported
183 * @param bool $prefix
187 static function &import($prefix = false) {
188 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'persistent', $prefix, array());
192 * Returns the list of fields that can be exported
194 * @param bool $prefix
198 static function &export($prefix = false) {
199 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'persistent', $prefix, array());