X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPCP%2FDAO%2FPCP.php;h=6229747297fef2bcdfb5ee34126a644c484e90f7;hb=02525c4622bf6cad6f1b0f54c6852854e037a99a;hp=20238b03d51773db4acfc68eefb457c8d77cb682;hpb=5a25f6fcc2b0e987112c2225be2d47631fe61c05;p=civicrm-core.git diff --git a/CRM/PCP/DAO/PCP.php b/CRM/PCP/DAO/PCP.php index 20238b03d5..6229747297 100644 --- a/CRM/PCP/DAO/PCP.php +++ b/CRM/PCP/DAO/PCP.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/PCP/PCP.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4585e6f51f50242cba89fe9325c44c44) + * (GenCodeChecksum:1e559645205e2e345feb591b14f7693c) */ /** @@ -31,19 +31,19 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { /** * Personal Campaign Page ID * - * @var int unsigned + * @var int */ public $id; /** * FK to Contact ID * - * @var int unsigned + * @var int */ public $contact_id; /** - * @var int unsigned + * @var int */ public $status_id; @@ -70,7 +70,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { /** * The Contribution or Event Page which triggered this pcp * - * @var int unsigned + * @var int */ public $page_id; @@ -84,17 +84,17 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { /** * The pcp block that this pcp page was created from * - * @var int unsigned + * @var int */ public $pcp_block_id; /** - * @var int unsigned + * @var int */ public $is_thermometer; /** - * @var int unsigned + * @var int */ public $is_honor_roll; @@ -115,14 +115,14 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { /** * Is Personal Campaign Page enabled/active? * - * @var boolean + * @var bool */ public $is_active; /** * Notify owner via email when someone donates to page? * - * @var boolean + * @var bool */ public $is_notify; @@ -163,6 +163,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'title' => ts('Personal Campaign Page ID'), 'description' => ts('Personal Campaign Page ID'), 'required' => TRUE, + 'where' => 'civicrm_pcp.id', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', 'bao' => 'CRM_PCP_BAO_PCP', @@ -174,6 +175,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'title' => ts('Contact ID'), 'description' => ts('FK to Contact ID'), 'required' => TRUE, + 'where' => 'civicrm_pcp.contact_id', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', 'bao' => 'CRM_PCP_BAO_PCP', @@ -188,6 +190,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Personal Campaign Page Status'), 'required' => TRUE, + 'where' => 'civicrm_pcp.status_id', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', 'bao' => 'CRM_PCP_BAO_PCP', @@ -198,7 +201,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'pseudoconstant' => [ 'optionGroupName' => 'pcp_status', 'optionEditPath' => 'civicrm/admin/options/pcp_status', - ] + ], ], 'title' => [ 'name' => 'title', @@ -206,6 +209,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'title' => ts('Personal Campaign Page Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_pcp.title', 'default' => 'NULL', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -219,6 +223,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'name' => 'intro_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Intro Text'), + 'where' => 'civicrm_pcp.intro_text', 'default' => 'NULL', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -232,6 +237,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'name' => 'page_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Page Text'), + 'where' => 'civicrm_pcp.page_text', 'default' => 'NULL', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -247,6 +253,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'title' => ts('Donate Link Text'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, + 'where' => 'civicrm_pcp.donate_link_text', 'default' => 'NULL', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -262,6 +269,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'title' => ts('Contribution Page'), 'description' => ts('The Contribution or Event Page which triggered this pcp'), 'required' => TRUE, + 'where' => 'civicrm_pcp.page_id', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', 'bao' => 'CRM_PCP_BAO_PCP', @@ -274,6 +282,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'description' => ts('The type of PCP this is: contribute or event'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, + 'where' => 'civicrm_pcp.page_type', 'default' => 'contribute', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -289,6 +298,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'title' => ts('PCP Block'), 'description' => ts('The pcp block that this pcp page was created from'), 'required' => TRUE, + 'where' => 'civicrm_pcp.pcp_block_id', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', 'bao' => 'CRM_PCP_BAO_PCP', @@ -298,6 +308,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'name' => 'is_thermometer', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Use Thermometer?'), + 'where' => 'civicrm_pcp.is_thermometer', 'default' => '0', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -311,6 +322,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'name' => 'is_honor_roll', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Show Honor Roll?'), + 'where' => 'civicrm_pcp.is_honor_roll', 'default' => '0', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -329,6 +341,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 20, 2 ], + 'where' => 'civicrm_pcp.goal_amount', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', 'bao' => 'CRM_PCP_BAO_PCP', @@ -344,6 +357,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'description' => ts('3 character string, value from config setting or input via user.'), 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR, + 'where' => 'civicrm_pcp.currency', 'default' => 'NULL', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -357,13 +371,14 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'keyColumn' => 'name', 'labelColumn' => 'full_name', 'nameColumn' => 'name', - ] + ], ], 'is_active' => [ 'name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Enabled?'), 'description' => ts('Is Personal Campaign Page enabled/active?'), + 'where' => 'civicrm_pcp.is_active', 'default' => '0', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP', @@ -378,6 +393,7 @@ class CRM_PCP_DAO_PCP extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Notify Owner?'), 'description' => ts('Notify owner via email when someone donates to page?'), + 'where' => 'civicrm_pcp.is_notify', 'default' => '0', 'table_name' => 'civicrm_pcp', 'entity' => 'PCP',