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/PrevNextCache.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
33 * (GenCodeChecksum:50673715dba67219734f6235bf18f0db)
35 require_once 'CRM/Core/DAO.php';
36 require_once 'CRM/Utils/Type.php';
37 class CRM_Core_DAO_PrevNextCache
extends CRM_Core_DAO
{
39 * static instance to hold the table name
43 static $_tableName = 'civicrm_prevnext_cache';
45 * static value to see if we should log any modifications to
46 * this table in the civicrm_log table
57 * physical tablename for entity being joined to discount, e.g. civicrm_event
63 * FK to entity table specified in entity_table column.
69 * FK to entity table specified in entity_table column.
75 * Unique path name for cache element of the searched item
81 * cached snapshot of the serialized data
94 * @return civicrm_prevnext_cache
96 function __construct() {
97 $this->__table
= 'civicrm_prevnext_cache';
98 parent
::__construct();
101 * Returns all the column names of this table
105 static function &fields() {
106 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
107 Civi
::$statics[__CLASS__
]['fields'] = array(
110 'type' => CRM_Utils_Type
::T_INT
,
111 'title' => ts('Prev Next Cache ID') ,
114 'entity_table' => array(
115 'name' => 'entity_table',
116 'type' => CRM_Utils_Type
::T_STRING
,
117 'title' => ts('Prev Next Entity Table') ,
118 'description' => 'physical tablename for entity being joined to discount, e.g. civicrm_event',
120 'size' => CRM_Utils_Type
::BIG
,
122 'entity_id1' => array(
123 'name' => 'entity_id1',
124 'type' => CRM_Utils_Type
::T_INT
,
125 'title' => ts('Prev Next Entity ID 1') ,
126 'description' => 'FK to entity table specified in entity_table column.',
129 'entity_id2' => array(
130 'name' => 'entity_id2',
131 'type' => CRM_Utils_Type
::T_INT
,
132 'title' => ts('Prev Next Entity ID 2') ,
133 'description' => 'FK to entity table specified in entity_table column.',
137 'name' => 'cacheKey',
138 'type' => CRM_Utils_Type
::T_STRING
,
139 'title' => ts('Cache Key') ,
140 'description' => 'Unique path name for cache element of the searched item',
142 'size' => CRM_Utils_Type
::HUGE
,
146 'type' => CRM_Utils_Type
::T_LONGTEXT
,
147 'title' => ts('Prev Next Data') ,
148 'description' => 'cached snapshot of the serialized data',
150 'is_selected' => array(
151 'name' => 'is_selected',
152 'type' => CRM_Utils_Type
::T_BOOLEAN
,
153 'title' => ts('Is Selected') ,
156 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
158 return Civi
::$statics[__CLASS__
]['fields'];
161 * Return a mapping from field-name to the corresponding key (as used in fields()).
164 * Array(string $name => string $uniqueName).
166 static function &fieldKeys() {
167 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
168 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
170 return Civi
::$statics[__CLASS__
]['fieldKeys'];
173 * Returns the names of this table
177 static function getTableName() {
178 return self
::$_tableName;
181 * Returns if this table needs to be logged
189 * Returns the list of fields that can be imported
191 * @param bool $prefix
195 static function &import($prefix = false) {
196 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'prevnext_cache', $prefix, array());
200 * Returns the list of fields that can be exported
202 * @param bool $prefix
206 static function &export($prefix = false) {
207 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'prevnext_cache', $prefix, array());