Exemplo n.º 1
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Survey ID'), 'description' => 'Survey id.', 'required' => true), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Survey Title'), 'description' => 'Title of the Survey.', 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_survey.title', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'campaign_id' => array('name' => 'campaign_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Survey Campaign ID'), 'description' => 'Foreign key to the Campaign.', 'default' => 'NULL', 'FKClassName' => 'CRM_Campaign_DAO_Campaign', 'pseudoconstant' => array('table' => 'civicrm_campaign', 'keyColumn' => 'id', 'labelColumn' => 'title')), 'activity_type_id' => array('name' => 'activity_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Activity Type'), 'description' => 'Implicit FK to civicrm_option_value where option_group = activity_type', 'import' => true, 'where' => 'civicrm_survey.activity_type_id', 'headerPattern' => '', 'dataPattern' => '', 'export' => true, 'default' => 'NULL', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'activity_type', 'optionEditPath' => 'civicrm/admin/options/activity_type')), 'recontact_interval' => array('name' => 'recontact_interval', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Follow up Interval'), 'description' => 'Recontact intervals for each status.', 'rows' => 20, 'cols' => 80, 'html' => array('type' => 'TextArea')), 'instructions' => array('name' => 'instructions', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Instructions'), 'description' => 'Script instructions for volunteers to use for the survey.', 'rows' => 20, 'cols' => 80, 'html' => array('type' => 'TextArea')), 'release_frequency' => array('name' => 'release_frequency', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Survey Hold Duration'), 'description' => 'Number of days for recurrence of release.', 'default' => 'NULL'), 'max_number_of_contacts' => array('name' => 'max_number_of_contacts', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Maximum number of contacts'), 'description' => 'Maximum number of contacts to allow for survey.', 'default' => 'NULL'), 'default_number_of_contacts' => array('name' => 'default_number_of_contacts', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Default number of contacts'), 'description' => 'Default number of contacts to allow for survey.', 'default' => 'NULL'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Survey Is Active'), 'description' => 'Is this survey enabled or disabled/cancelled?', 'default' => '1'), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Default Survey'), 'description' => 'Is this default survey?'), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Survey Created By'), 'description' => 'FK to civicrm_contact, who created this Survey.', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Campaign Created Date'), 'description' => 'Date and time that Survey was created.'), 'last_modified_id' => array('name' => 'last_modified_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Survey Modified'), 'description' => 'FK to civicrm_contact, who recently edited this Survey.', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'last_modified_date' => array('name' => 'last_modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Survey Modified On'), 'description' => 'Date and time that Survey was edited last time.'), 'result_id' => array('name' => 'result_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Survey Result'), 'description' => 'Used to store option group id.', 'default' => 'NULL'), 'bypass_confirm' => array('name' => 'bypass_confirm', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('No Email Verification'), 'description' => 'Bypass the email verification.'), 'thankyou_title' => array('name' => 'thankyou_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Thank-you Title'), 'description' => 'Title for Thank-you page (header title tag, and display at the top of the page).', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'thankyou_text' => array('name' => 'thankyou_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Thank-you Text'), 'description' => 'text and html allowed. displayed above result on success page', 'rows' => 8, 'cols' => 60, 'html' => array('type' => 'TextArea')), 'is_share' => array('name' => 'is_share', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is shared through social media'), 'description' => 'Can people share the petition through social media?', 'default' => '1'));
     }
     return self::$_fields;
 }
Exemplo n.º 2
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Survey Title'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_survey.title', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'campaign_id' => array('name' => 'campaign_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'NULL', 'FKClassName' => 'CRM_Campaign_DAO_Campaign', 'pseudoconstant' => array('table' => 'civicrm_campaign', 'keyColumn' => 'id', 'labelColumn' => 'title')), 'activity_type_id' => array('name' => 'activity_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Activity Type ID'), 'import' => true, 'where' => 'civicrm_survey.activity_type_id', 'headerPattern' => '', 'dataPattern' => '', 'export' => true, 'default' => 'NULL', 'pseudoconstant' => array('optionGroupName' => 'activity_type')), 'recontact_interval' => array('name' => 'recontact_interval', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Recontact Interval'), 'rows' => 20, 'cols' => 80), 'instructions' => array('name' => 'instructions', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Instructions'), 'rows' => 20, 'cols' => 80), 'release_frequency' => array('name' => 'release_frequency', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Release Frequency'), 'default' => 'NULL'), 'max_number_of_contacts' => array('name' => 'max_number_of_contacts', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Maximum number of contacts'), 'default' => 'NULL'), 'default_number_of_contacts' => array('name' => 'default_number_of_contacts', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Default number of contacts'), 'default' => 'NULL'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => '1'), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Campaign Created Date')), 'last_modified_id' => array('name' => 'last_modified_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'last_modified_date' => array('name' => 'last_modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Last Modified Date')), 'result_id' => array('name' => 'result_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'NULL'), 'bypass_confirm' => array('name' => 'bypass_confirm', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Bypass Confirm')), 'thankyou_title' => array('name' => 'thankyou_title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Thank-you Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'thankyou_text' => array('name' => 'thankyou_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Thank-you Text'), 'rows' => 8, 'cols' => 60), 'is_share' => array('name' => 'is_share', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is shared through social media'), 'default' => '1'));
     }
     return self::$_fields;
 }
Exemplo n.º 3
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Survey Title'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_survey.title', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'campaign_id' => array('name' => 'campaign_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL', 'FKClassName' => 'CRM_Campaign_DAO_Campaign'), 'activity_type_id' => array('name' => 'activity_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Activity Type ID'), 'import' => true, 'where' => 'civicrm_survey.activity_type_id', 'headerPattern' => '', 'dataPattern' => '', 'export' => true, 'default' => 'UL'), 'recontact_interval' => array('name' => 'recontact_interval', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Recontact Interval'), 'rows' => 20, 'cols' => 80), 'instructions' => array('name' => 'instructions', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Instructions'), 'rows' => 20, 'cols' => 80), 'release_frequency' => array('name' => 'release_frequency', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Release Frequency'), 'default' => 'UL'), 'max_number_of_contacts' => array('name' => 'max_number_of_contacts', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Maximum number of contacts'), 'default' => 'UL'), 'default_number_of_contacts' => array('name' => 'default_number_of_contacts', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Default number of contacts'), 'default' => 'UL'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'is_default' => array('name' => 'is_default', 'type' => CRM_Utils_Type::T_BOOLEAN), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Campaign Created Date')), 'last_modified_id' => array('name' => 'last_modified_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'last_modified_date' => array('name' => 'last_modified_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Last Modified Date')), 'result_id' => array('name' => 'result_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL'));
     }
     return self::$_fields;
 }