3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.6 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2015 |
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-2015
31 * Generated from xml/schema/CRM/Core/ActionMapping.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
34 require_once 'CRM/Core/DAO.php';
35 require_once 'CRM/Utils/Type.php';
36 class CRM_Core_DAO_ActionMapping
extends CRM_Core_DAO
{
38 * static instance to hold the table name
42 static $_tableName = 'civicrm_action_mapping';
44 * static instance to hold the field values
48 static $_fields = null;
50 * static instance to hold the keys used in $_fields for each field.
54 static $_fieldKeys = null;
56 * static instance to hold the FK relationships
60 static $_links = null;
62 * static instance to hold the values that can
67 static $_import = null;
69 * static instance to hold the values that can
74 static $_export = null;
76 * static value to see if we should log any modifications to
77 * this table in the civicrm_log table
88 * Entity for which the reminder is created
104 public $entity_value_label;
110 public $entity_status;
112 * Entity status label
116 public $entity_status_label;
122 public $entity_date_start;
128 public $entity_date_end;
134 public $entity_recipient;
138 * @return civicrm_action_mapping
140 function __construct() {
141 $this->__table
= 'civicrm_action_mapping';
142 parent
::__construct();
145 * Returns all the column names of this table
149 static function &fields() {
150 if (!(self
::$_fields)) {
151 self
::$_fields = array(
154 'type' => CRM_Utils_Type
::T_INT
,
159 'type' => CRM_Utils_Type
::T_STRING
,
160 'title' => ts('Entity') ,
161 'description' => 'Entity for which the reminder is created',
163 'size' => CRM_Utils_Type
::BIG
,
165 'entity_value' => array(
166 'name' => 'entity_value',
167 'type' => CRM_Utils_Type
::T_STRING
,
168 'title' => ts('Entity Value') ,
169 'description' => 'Entity value',
171 'size' => CRM_Utils_Type
::BIG
,
173 'entity_value_label' => array(
174 'name' => 'entity_value_label',
175 'type' => CRM_Utils_Type
::T_STRING
,
176 'title' => ts('Entity Value Label') ,
177 'description' => 'Entity value label',
179 'size' => CRM_Utils_Type
::BIG
,
181 'entity_status' => array(
182 'name' => 'entity_status',
183 'type' => CRM_Utils_Type
::T_STRING
,
184 'title' => ts('Entity Status') ,
185 'description' => 'Entity status',
187 'size' => CRM_Utils_Type
::BIG
,
189 'entity_status_label' => array(
190 'name' => 'entity_status_label',
191 'type' => CRM_Utils_Type
::T_STRING
,
192 'title' => ts('Entity Status Label') ,
193 'description' => 'Entity status label',
195 'size' => CRM_Utils_Type
::BIG
,
197 'entity_date_start' => array(
198 'name' => 'entity_date_start',
199 'type' => CRM_Utils_Type
::T_STRING
,
200 'title' => ts('Entity Date Start') ,
201 'description' => 'Entity date',
203 'size' => CRM_Utils_Type
::BIG
,
205 'entity_date_end' => array(
206 'name' => 'entity_date_end',
207 'type' => CRM_Utils_Type
::T_STRING
,
208 'title' => ts('Entity Date End') ,
209 'description' => 'Entity date',
211 'size' => CRM_Utils_Type
::BIG
,
213 'entity_recipient' => array(
214 'name' => 'entity_recipient',
215 'type' => CRM_Utils_Type
::T_STRING
,
216 'title' => ts('Entity Recipient') ,
217 'description' => 'Entity recipient',
219 'size' => CRM_Utils_Type
::BIG
,
223 return self
::$_fields;
226 * Returns an array containing, for each field, the arary key used for that
227 * field in self::$_fields.
231 static function &fieldKeys() {
232 if (!(self
::$_fieldKeys)) {
233 self
::$_fieldKeys = array(
235 'entity' => 'entity',
236 'entity_value' => 'entity_value',
237 'entity_value_label' => 'entity_value_label',
238 'entity_status' => 'entity_status',
239 'entity_status_label' => 'entity_status_label',
240 'entity_date_start' => 'entity_date_start',
241 'entity_date_end' => 'entity_date_end',
242 'entity_recipient' => 'entity_recipient',
245 return self
::$_fieldKeys;
248 * Returns the names of this table
252 static function getTableName() {
253 return self
::$_tableName;
256 * Returns if this table needs to be logged
264 * Returns the list of fields that can be imported
266 * @param bool $prefix
270 static function &import($prefix = false) {
271 if (!(self
::$_import)) {
272 self
::$_import = array();
273 $fields = self
::fields();
274 foreach($fields as $name => $field) {
275 if (CRM_Utils_Array
::value('import', $field)) {
277 self
::$_import['action_mapping'] = & $fields[$name];
279 self
::$_import[$name] = & $fields[$name];
284 return self
::$_import;
287 * Returns the list of fields that can be exported
289 * @param bool $prefix
293 static function &export($prefix = false) {
294 if (!(self
::$_export)) {
295 self
::$_export = array();
296 $fields = self
::fields();
297 foreach($fields as $name => $field) {
298 if (CRM_Utils_Array
::value('export', $field)) {
300 self
::$_export['action_mapping'] = & $fields[$name];
302 self
::$_export[$name] = & $fields[$name];
307 return self
::$_export;