*
* Generated from xml/schema/CRM/Campaign/Campaign.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c6ffa4ea926f3a52afc754bf44ef8586)
+ * (GenCodeChecksum:5f32f92aafb04b54f15a47d07a2fe105)
*/
/**
*
* @var string
*/
- static $_tableName = 'civicrm_campaign';
+ public static $_tableName = 'civicrm_campaign';
/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var bool
*/
- static $_log = FALSE;
+ public static $_log = FALSE;
/**
* Unique Campaign ID.
*
- * @var int unsigned
+ * @var int
*/
public $id;
/**
* Campaign Type ID.Implicit FK to civicrm_option_value where option_group = campaign_type
*
- * @var int unsigned
+ * @var int
*/
public $campaign_type_id;
/**
* Campaign status ID.Implicit FK to civicrm_option_value where option_group = campaign_status
*
- * @var int unsigned
+ * @var int
*/
public $status_id;
/**
* Optional parent id for this Campaign.
*
- * @var int unsigned
+ * @var int
*/
public $parent_id;
/**
* Is this Campaign enabled or disabled/cancelled?
*
- * @var boolean
+ * @var bool
*/
public $is_active;
/**
* FK to civicrm_contact, who created this Campaign.
*
- * @var int unsigned
+ * @var int
*/
public $created_id;
/**
* FK to civicrm_contact, who recently edited this Campaign.
*
- * @var int unsigned
+ * @var int
*/
public $last_modified_id;
*/
public static function getReferenceColumns() {
if (!isset(Civi::$statics[__CLASS__]['links'])) {
- Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__);
+ Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__);
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_campaign', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'last_modified_id', 'civicrm_contact', 'id');
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_campaign.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_campaign.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_campaign.title',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'description' => ts('Full description of Campaign.'),
'rows' => 8,
'cols' => 60,
+ 'where' => 'civicrm_campaign.description',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'import' => TRUE,
'where' => 'civicrm_campaign.start_date',
'headerPattern' => '/^start|(s(tart\s)?date)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'import' => TRUE,
'where' => 'civicrm_campaign.end_date',
'headerPattern' => '/^end|(e(nd\s)?date)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'description' => ts('Campaign Type ID.Implicit FK to civicrm_option_value where option_group = campaign_type'),
'import' => TRUE,
'where' => 'civicrm_campaign.campaign_type_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_campaign',
'pseudoconstant' => [
'optionGroupName' => 'campaign_type',
'optionEditPath' => 'civicrm/admin/options/campaign_type',
- ]
+ ],
],
'status_id' => [
'name' => 'status_id',
'description' => ts('Campaign status ID.Implicit FK to civicrm_option_value where option_group = campaign_status'),
'import' => TRUE,
'where' => 'civicrm_campaign.status_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_campaign',
'pseudoconstant' => [
'optionGroupName' => 'campaign_status',
'optionEditPath' => 'civicrm/admin/options/campaign_status',
- ]
+ ],
],
'external_identifier' => [
'name' => 'external_identifier',
'description' => ts('Optional parent id for this Campaign.'),
'import' => TRUE,
'where' => 'civicrm_campaign.parent_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_campaign',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Campaign Active?'),
'description' => ts('Is this Campaign enabled or disabled/cancelled?'),
+ 'where' => 'civicrm_campaign.is_active',
'default' => '1',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Campaign Created By'),
'description' => ts('FK to civicrm_contact, who created this Campaign.'),
+ 'where' => 'civicrm_campaign.created_id',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Campaign Created Date'),
'description' => ts('Date and time that Campaign was created.'),
+ 'where' => 'civicrm_campaign.created_date',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Campaign Modified By'),
'description' => ts('FK to civicrm_contact, who recently edited this Campaign.'),
+ 'where' => 'civicrm_campaign.last_modified_id',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Campaign Modified Date'),
'description' => ts('Date and time that Campaign was edited last time.'),
+ 'where' => 'civicrm_campaign.last_modified_date',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Campaign Goals'),
'description' => ts('General goals for Campaign.'),
+ 'where' => 'civicrm_campaign.goal_general',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'description' => ts('The target revenue for this campaign.'),
'precision' => [
20,
- 2
+ 2,
],
+ 'where' => 'civicrm_campaign.goal_revenue',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',