3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.7 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2017 |
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-2017
31 * Generated from xml/schema/CRM/Core/ActionMapping.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
33 * (GenCodeChecksum:3ae720be63fdf4626db2d1508c2d8f44)
35 require_once 'CRM/Core/DAO.php';
36 require_once 'CRM/Utils/Type.php';
38 * CRM_Core_DAO_ActionMapping constructor.
40 class CRM_Core_DAO_ActionMapping
extends CRM_Core_DAO
{
42 * Static instance to hold the table name.
46 static $_tableName = 'civicrm_action_mapping';
48 * Should CiviCRM log any modifications to this table in the civicrm_log table.
59 * Entity for which the reminder is created
75 public $entity_value_label;
81 public $entity_status;
87 public $entity_status_label;
93 public $entity_date_start;
99 public $entity_date_end;
105 public $entity_recipient;
109 function __construct() {
110 $this->__table
= 'civicrm_action_mapping';
111 parent
::__construct();
114 * Returns all the column names of this table
118 static function &fields() {
119 if (!isset(Civi
::$statics[__CLASS__
]['fields'])) {
120 Civi
::$statics[__CLASS__
]['fields'] = array(
123 'type' => CRM_Utils_Type
::T_INT
,
124 'title' => ts('Action Mapping ID') ,
126 'table_name' => 'civicrm_action_mapping',
127 'entity' => 'ActionMapping',
128 'bao' => 'CRM_Core_DAO_ActionMapping',
133 'type' => CRM_Utils_Type
::T_STRING
,
134 'title' => ts('Action Mapping Entity') ,
135 'description' => 'Entity for which the reminder is created',
137 'size' => CRM_Utils_Type
::BIG
,
138 'table_name' => 'civicrm_action_mapping',
139 'entity' => 'ActionMapping',
140 'bao' => 'CRM_Core_DAO_ActionMapping',
143 'entity_value' => array(
144 'name' => 'entity_value',
145 'type' => CRM_Utils_Type
::T_STRING
,
146 'title' => ts('Action Mapping Entity Value') ,
147 'description' => 'Entity value',
149 'size' => CRM_Utils_Type
::BIG
,
150 'table_name' => 'civicrm_action_mapping',
151 'entity' => 'ActionMapping',
152 'bao' => 'CRM_Core_DAO_ActionMapping',
155 'entity_value_label' => array(
156 'name' => 'entity_value_label',
157 'type' => CRM_Utils_Type
::T_STRING
,
158 'title' => ts('Value Label') ,
159 'description' => 'Entity value label',
161 'size' => CRM_Utils_Type
::BIG
,
162 'table_name' => 'civicrm_action_mapping',
163 'entity' => 'ActionMapping',
164 'bao' => 'CRM_Core_DAO_ActionMapping',
167 'entity_status' => array(
168 'name' => 'entity_status',
169 'type' => CRM_Utils_Type
::T_STRING
,
170 'title' => ts('Status') ,
171 'description' => 'Entity status',
173 'size' => CRM_Utils_Type
::BIG
,
174 'table_name' => 'civicrm_action_mapping',
175 'entity' => 'ActionMapping',
176 'bao' => 'CRM_Core_DAO_ActionMapping',
179 'entity_status_label' => array(
180 'name' => 'entity_status_label',
181 'type' => CRM_Utils_Type
::T_STRING
,
182 'title' => ts('Status Label') ,
183 'description' => 'Entity status label',
185 'size' => CRM_Utils_Type
::BIG
,
186 'table_name' => 'civicrm_action_mapping',
187 'entity' => 'ActionMapping',
188 'bao' => 'CRM_Core_DAO_ActionMapping',
191 'entity_date_start' => array(
192 'name' => 'entity_date_start',
193 'type' => CRM_Utils_Type
::T_STRING
,
194 'title' => ts('Entity Start Date') ,
195 'description' => 'Entity date',
197 'size' => CRM_Utils_Type
::BIG
,
198 'table_name' => 'civicrm_action_mapping',
199 'entity' => 'ActionMapping',
200 'bao' => 'CRM_Core_DAO_ActionMapping',
203 'entity_date_end' => array(
204 'name' => 'entity_date_end',
205 'type' => CRM_Utils_Type
::T_STRING
,
206 'title' => ts('Entity End Date') ,
207 'description' => 'Entity date',
209 'size' => CRM_Utils_Type
::BIG
,
210 'table_name' => 'civicrm_action_mapping',
211 'entity' => 'ActionMapping',
212 'bao' => 'CRM_Core_DAO_ActionMapping',
215 'entity_recipient' => array(
216 'name' => 'entity_recipient',
217 'type' => CRM_Utils_Type
::T_STRING
,
218 'title' => ts('Entity Recipient') ,
219 'description' => 'Entity recipient',
221 'size' => CRM_Utils_Type
::BIG
,
222 'table_name' => 'civicrm_action_mapping',
223 'entity' => 'ActionMapping',
224 'bao' => 'CRM_Core_DAO_ActionMapping',
228 CRM_Core_DAO_AllCoreTables
::invoke(__CLASS__
, 'fields_callback', Civi
::$statics[__CLASS__
]['fields']);
230 return Civi
::$statics[__CLASS__
]['fields'];
233 * Return a mapping from field-name to the corresponding key (as used in fields()).
236 * Array(string $name => string $uniqueName).
238 static function &fieldKeys() {
239 if (!isset(Civi
::$statics[__CLASS__
]['fieldKeys'])) {
240 Civi
::$statics[__CLASS__
]['fieldKeys'] = array_flip(CRM_Utils_Array
::collect('name', self
::fields()));
242 return Civi
::$statics[__CLASS__
]['fieldKeys'];
245 * Returns the names of this table
249 static function getTableName() {
250 return self
::$_tableName;
253 * Returns if this table needs to be logged
261 * Returns the list of fields that can be imported
263 * @param bool $prefix
267 static function &import($prefix = false) {
268 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'action_mapping', $prefix, array());
272 * Returns the list of fields that can be exported
274 * @param bool $prefix
278 static function &export($prefix = false) {
279 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'action_mapping', $prefix, array());
283 * Returns the list of indices
285 public static function indices($localize = TRUE) {
287 return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables
::multilingualize(__CLASS__
, $indices) : $indices;