commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / CRM / Core / DAO / ActionMapping.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.6 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2015 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
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. |
13 | |
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. |
18 | |
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 +--------------------------------------------------------------------+
26 */
27 /**
28 * @package CRM
29 * @copyright CiviCRM LLC (c) 2004-2015
30 *
31 * Generated from xml/schema/CRM/Core/ActionMapping.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
33 */
34 require_once 'CRM/Core/DAO.php';
35 require_once 'CRM/Utils/Type.php';
36 class CRM_Core_DAO_ActionMapping extends CRM_Core_DAO {
37 /**
38 * static instance to hold the table name
39 *
40 * @var string
41 */
42 static $_tableName = 'civicrm_action_mapping';
43 /**
44 * static instance to hold the field values
45 *
46 * @var array
47 */
48 static $_fields = null;
49 /**
50 * static instance to hold the keys used in $_fields for each field.
51 *
52 * @var array
53 */
54 static $_fieldKeys = null;
55 /**
56 * static instance to hold the FK relationships
57 *
58 * @var string
59 */
60 static $_links = null;
61 /**
62 * static instance to hold the values that can
63 * be imported
64 *
65 * @var array
66 */
67 static $_import = null;
68 /**
69 * static instance to hold the values that can
70 * be exported
71 *
72 * @var array
73 */
74 static $_export = null;
75 /**
76 * static value to see if we should log any modifications to
77 * this table in the civicrm_log table
78 *
79 * @var boolean
80 */
81 static $_log = false;
82 /**
83 *
84 * @var int unsigned
85 */
86 public $id;
87 /**
88 * Entity for which the reminder is created
89 *
90 * @var string
91 */
92 public $entity;
93 /**
94 * Entity value
95 *
96 * @var string
97 */
98 public $entity_value;
99 /**
100 * Entity value label
101 *
102 * @var string
103 */
104 public $entity_value_label;
105 /**
106 * Entity status
107 *
108 * @var string
109 */
110 public $entity_status;
111 /**
112 * Entity status label
113 *
114 * @var string
115 */
116 public $entity_status_label;
117 /**
118 * Entity date
119 *
120 * @var string
121 */
122 public $entity_date_start;
123 /**
124 * Entity date
125 *
126 * @var string
127 */
128 public $entity_date_end;
129 /**
130 * Entity recipient
131 *
132 * @var string
133 */
134 public $entity_recipient;
135 /**
136 * class constructor
137 *
138 * @return civicrm_action_mapping
139 */
140 function __construct() {
141 $this->__table = 'civicrm_action_mapping';
142 parent::__construct();
143 }
144 /**
145 * Returns all the column names of this table
146 *
147 * @return array
148 */
149 static function &fields() {
150 if (!(self::$_fields)) {
151 self::$_fields = array(
152 'id' => array(
153 'name' => 'id',
154 'type' => CRM_Utils_Type::T_INT,
155 'required' => true,
156 ) ,
157 'entity' => array(
158 'name' => 'entity',
159 'type' => CRM_Utils_Type::T_STRING,
160 'title' => ts('Entity') ,
161 'description' => 'Entity for which the reminder is created',
162 'maxlength' => 64,
163 'size' => CRM_Utils_Type::BIG,
164 ) ,
165 'entity_value' => array(
166 'name' => 'entity_value',
167 'type' => CRM_Utils_Type::T_STRING,
168 'title' => ts('Entity Value') ,
169 'description' => 'Entity value',
170 'maxlength' => 64,
171 'size' => CRM_Utils_Type::BIG,
172 ) ,
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',
178 'maxlength' => 64,
179 'size' => CRM_Utils_Type::BIG,
180 ) ,
181 'entity_status' => array(
182 'name' => 'entity_status',
183 'type' => CRM_Utils_Type::T_STRING,
184 'title' => ts('Entity Status') ,
185 'description' => 'Entity status',
186 'maxlength' => 64,
187 'size' => CRM_Utils_Type::BIG,
188 ) ,
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',
194 'maxlength' => 64,
195 'size' => CRM_Utils_Type::BIG,
196 ) ,
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',
202 'maxlength' => 64,
203 'size' => CRM_Utils_Type::BIG,
204 ) ,
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',
210 'maxlength' => 64,
211 'size' => CRM_Utils_Type::BIG,
212 ) ,
213 'entity_recipient' => array(
214 'name' => 'entity_recipient',
215 'type' => CRM_Utils_Type::T_STRING,
216 'title' => ts('Entity Recipient') ,
217 'description' => 'Entity recipient',
218 'maxlength' => 64,
219 'size' => CRM_Utils_Type::BIG,
220 ) ,
221 );
222 }
223 return self::$_fields;
224 }
225 /**
226 * Returns an array containing, for each field, the arary key used for that
227 * field in self::$_fields.
228 *
229 * @return array
230 */
231 static function &fieldKeys() {
232 if (!(self::$_fieldKeys)) {
233 self::$_fieldKeys = array(
234 'id' => 'id',
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',
243 );
244 }
245 return self::$_fieldKeys;
246 }
247 /**
248 * Returns the names of this table
249 *
250 * @return string
251 */
252 static function getTableName() {
253 return self::$_tableName;
254 }
255 /**
256 * Returns if this table needs to be logged
257 *
258 * @return boolean
259 */
260 function getLog() {
261 return self::$_log;
262 }
263 /**
264 * Returns the list of fields that can be imported
265 *
266 * @param bool $prefix
267 *
268 * @return array
269 */
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)) {
276 if ($prefix) {
277 self::$_import['action_mapping'] = & $fields[$name];
278 } else {
279 self::$_import[$name] = & $fields[$name];
280 }
281 }
282 }
283 }
284 return self::$_import;
285 }
286 /**
287 * Returns the list of fields that can be exported
288 *
289 * @param bool $prefix
290 *
291 * @return array
292 */
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)) {
299 if ($prefix) {
300 self::$_export['action_mapping'] = & $fields[$name];
301 } else {
302 self::$_export[$name] = & $fields[$name];
303 }
304 }
305 }
306 }
307 return self::$_export;
308 }
309 }