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/Event/ParticipantStatusType.xml
32 * DO NOT EDIT. Generated by CRM_Core_CodeGen
33 * (GenCodeChecksum:c129b855ca83f4e0e659f57936b92799)
35 require_once 'CRM/Core/DAO.php';
36 require_once 'CRM/Utils/Type.php';
37 class CRM_Event_DAO_ParticipantStatusType
extends CRM_Core_DAO
{
39 * static instance to hold the table name
43 static $_tableName = 'civicrm_participant_status_type';
45 * static instance to hold the field values
49 static $_fields = null;
51 * static instance to hold the keys used in $_fields for each field.
55 static $_fieldKeys = null;
57 * static instance to hold the FK relationships
61 static $_links = null;
63 * static value to see if we should log any modifications to
64 * this table in the civicrm_log table
70 * unique participant status type id
76 * non-localized name of the status type
82 * localized label for display of this status type
88 * the general group of status type this one belongs to
94 * whether this is a status type required by the system
100 * whether this status type is active
106 * whether this status type is counted against event size limit
112 * controls sort order
118 * whether the status type is visible to the public, an implicit foreign key to option_value.value related to the `visibility` option_group
122 public $visibility_id;
126 * @return civicrm_participant_status_type
128 function __construct() {
129 $this->__table
= 'civicrm_participant_status_type';
130 parent
::__construct();
133 * Returns all the column names of this table
137 static function &fields() {
138 if (!(self
::$_fields)) {
139 self
::$_fields = array(
142 'type' => CRM_Utils_Type
::T_INT
,
143 'title' => ts('Participant Status Type ID') ,
144 'description' => 'unique participant status type id',
147 'participant_status' => array(
149 'type' => CRM_Utils_Type
::T_STRING
,
150 'title' => ts('Participant Status') ,
151 'description' => 'non-localized name of the status type',
153 'size' => CRM_Utils_Type
::BIG
,
155 'where' => 'civicrm_participant_status_type.name',
156 'headerPattern' => '',
162 'type' => CRM_Utils_Type
::T_STRING
,
163 'title' => ts('Participant Status Label') ,
164 'description' => 'localized label for display of this status type',
166 'size' => CRM_Utils_Type
::HUGE
,
170 'type' => CRM_Utils_Type
::T_STRING
,
171 'title' => ts('Participant Status Class') ,
172 'description' => 'the general group of status type this one belongs to',
174 'size' => CRM_Utils_Type
::EIGHT
,
178 'pseudoconstant' => array(
179 'callback' => 'CRM_Event_PseudoConstant::participantStatusClassOptions',
182 'is_reserved' => array(
183 'name' => 'is_reserved',
184 'type' => CRM_Utils_Type
::T_BOOLEAN
,
185 'title' => ts('Participant Status Is Reserved?>') ,
186 'description' => 'whether this is a status type required by the system',
188 'is_active' => array(
189 'name' => 'is_active',
190 'type' => CRM_Utils_Type
::T_BOOLEAN
,
191 'title' => ts('Participant Status is Active') ,
192 'description' => 'whether this status type is active',
195 'is_counted' => array(
196 'name' => 'is_counted',
197 'type' => CRM_Utils_Type
::T_BOOLEAN
,
198 'title' => ts('Participant Status Counts?') ,
199 'description' => 'whether this status type is counted against event size limit',
203 'type' => CRM_Utils_Type
::T_INT
,
204 'title' => ts('Order') ,
205 'description' => 'controls sort order',
208 'visibility_id' => array(
209 'name' => 'visibility_id',
210 'type' => CRM_Utils_Type
::T_INT
,
211 'title' => ts('Participant Status Visibility') ,
212 'description' => 'whether the status type is visible to the public, an implicit foreign key to option_value.value related to the `visibility` option_group',
216 'pseudoconstant' => array(
217 'optionGroupName' => 'visibility',
218 'optionEditPath' => 'civicrm/admin/options/visibility',
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 'name' => 'participant_status',
238 'is_reserved' => 'is_reserved',
239 'is_active' => 'is_active',
240 'is_counted' => 'is_counted',
241 'weight' => 'weight',
242 'visibility_id' => 'visibility_id',
245 return self
::$_fieldKeys;
248 * Returns the names of this table
252 static function getTableName() {
253 return CRM_Core_DAO
::getLocaleTableName(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 $r = CRM_Core_DAO_AllCoreTables
::getImports(__CLASS__
, 'participant_status_type', $prefix, array());
275 * Returns the list of fields that can be exported
277 * @param bool $prefix
281 static function &export($prefix = false) {
282 $r = CRM_Core_DAO_AllCoreTables
::getExports(__CLASS__
, 'participant_status_type', $prefix, array());