예제 #1
0
파일: WalkList.php 프로젝트: kidaa30/yes
 function __construct()
 {
     parent::__construct();
     //  Walk list columns
     $this->_columns = array($this->_demoTable => array('dao' => 'CRM_Contact_DAO_Contact', 'fields' => array($this->_demoLangCol => array('type' => CRM_Report_Form::OP_STRING, 'required' => TRUE, 'title' => ts('Language'))), 'filters' => array($this->_demoLangCol => array('title' => ts('Language'), 'operatorType' => CRM_Report_Form::OP_SELECT, 'type' => CRM_Report_Form::OP_STRING, 'options' => $this->_languages)), 'grouping' => 'contact-fields'), $this->_coreInfoTable => array('dao' => 'CRM_Contact_DAO_Contact', 'fields' => array($this->_coreTypeCol => array('type' => CRM_Report_Form::OP_STRING, 'required' => TRUE, 'title' => ts('Constituent Type')), $this->_coreOtherCol => array('type' => CRM_Report_Form::OP_STRING, 'required' => TRUE, 'title' => ts('Other Name'))), 'filters' => array($this->_coreTypeCol => array('title' => ts('Constituent Type'), 'operatorType' => CRM_Report_Form::OP_SELECT, 'type' => CRM_Report_Form::OP_STRING, 'options' => $this->_contactType)), 'grouping' => 'contact-fields'), 'civicrm_contact' => array('dao' => 'CRM_Contact_DAO_Contact', 'fields' => array('gender_id' => array('title' => ts('Sex'), 'required' => TRUE), 'birth_date' => array('title' => ts('Age'), 'required' => TRUE, 'type' => CRM_Report_Form::OP_INT), 'id' => array('title' => ts('Contact ID'), 'required' => TRUE), 'display_name' => array('title' => ts('Contact Name'), 'required' => TRUE, 'no_repeat' => TRUE)), 'filters' => array('gender_id' => array('title' => ts('Sex'), 'operatorType' => CRM_Report_Form::OP_SELECT, 'type' => CRM_Report_Form::OP_STRING, 'options' => array('' => '') + CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'gender_id')), 'sort_name' => array('title' => ts('Contact Name'), 'operator' => 'like')), 'grouping' => 'contact-fields', 'order_bys' => array('sort_name' => array('title' => ts('Contact Name'), 'required' => TRUE))), 'civicrm_address' => array('dao' => 'CRM_Core_DAO_Address', 'fields' => array('street_number' => array('required' => TRUE, 'title' => ts('Street#')), 'street_name' => array('title' => ts('Street Name'), 'nodisplay' => TRUE, 'required' => TRUE), 'street_address' => array('required' => TRUE, 'title' => ts('Street Address')), 'street_unit' => array('required' => TRUE, 'title' => ts('Apt.')), 'city' => array('required' => TRUE), 'postal_code' => array('title' => 'Zip', 'required' => TRUE), 'state_province_id' => array('title' => ts('State/Province'), 'required' => TRUE), 'country_id' => array('title' => ts('Country'))), 'filters' => array('street_address' => NULL, 'city' => NULL, 'postal_code' => array('title' => 'Zip')), 'grouping' => 'location-fields'), 'civicrm_phone' => array('dao' => 'CRM_Core_DAO_Phone', 'fields' => array('phone' => array('default' => TRUE, 'required' => TRUE)), 'grouping' => 'location-fields'), 'civicrm_email' => array('dao' => 'CRM_Core_DAO_Email', 'fields' => array('email' => NULL), 'grouping' => 'location-fields'), $this->_voterInfoTable => array('dao' => 'CRM_Contact_DAO_Contact', 'fields' => array($this->_partyCol => array('type' => CRM_Report_Form::OP_STRING, 'required' => TRUE, 'title' => ts('Party Reg')), $this->_vhCol => array('type' => CRM_Report_Form::OP_STRING, 'required' => TRUE, 'title' => ts('VH'))), 'filters' => array(), 'grouping' => 'contact-fields'), 'civicrm_group' => array('dao' => 'CRM_Contact_DAO_GroupContact', 'alias' => 'cgroup', 'filters' => array('gid' => array('name' => 'group_id', 'title' => ts('Group'), 'operatorType' => CRM_Report_Form::OP_MULTISELECT, 'group' => TRUE, 'options' => CRM_Core_PseudoConstant::group()))), 'civicrm_contribution_lastcont' => array('dao' => 'CRM_Contribute_DAO_Contribution'), 'civicrm_contribution_cont' => array('dao' => 'CRM_Contribute_DAO_Contribution', 'alias' => 'cont', 'fields' => array('receive_date' => array('default' => TRUE, 'title' => 'Last Receipt'), 'total_amount' => array('default' => TRUE, 'title' => 'Amount received'))));
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     $this->_columns = array('civicrm_phone' => array('dao' => 'CRM_Core_DAO_Phone', 'fields' => array('phone' => array('default' => true, 'required' => true)), 'grouping' => 'location-fields', 'order_bys' => array('phone' => array('title' => ts('Phone'), 'required' => true))), 'civicrm_address' => array('dao' => 'CRM_Core_DAO_Address', 'fields' => array('street_address' => array('default' => true), 'city' => array('default' => true), 'postal_code' => array('title' => 'Zip', 'default' => true), 'state_province_id' => array('title' => ts('State/Province'), 'default' => true), 'country_id' => array('title' => ts('Country'))), 'filters' => array('street_address' => null, 'city' => null, 'postal_code' => array('title' => 'Zip')), 'grouping' => 'location-fields'), 'civicrm_email' => array('dao' => 'CRM_Core_DAO_Email', 'fields' => array('email' => null), 'grouping' => 'location-fields'), 'civicrm_contact' => array('dao' => 'CRM_Contact_DAO_Contact', 'fields' => array('id' => array('title' => ts('Contact ID'), 'required' => true), 'display_name' => array('title' => ts('Contact Name'), 'required' => true, 'no_repeat' => true), 'gender_id' => array('title' => ts('Sex'), 'required' => true), 'birth_date' => array('title' => ts('Age'), 'required' => true, 'type' => CRM_Report_FORM::OP_INT)), 'filters' => array('sort_name' => array('title' => ts('Contact Name'), 'operator' => 'like')), 'grouping' => 'contact-fields'), $this->_demoTable => array('dao' => 'CRM_Contact_DAO_Contact', 'fields' => array($this->_demoLangCol => array('type' => CRM_Report_FORM::OP_STRING, 'required' => true, 'title' => ts('Language'))), 'filters' => array($this->_demoLangCol => array('title' => ts('Language'), 'operatorType' => CRM_Report_FORM::OP_SELECT, 'type' => CRM_Report_FORM::OP_STRING, 'methodName' => 'selector', 'options' => $this->_languages)), 'grouping' => 'contact-fields'), $this->_coreInfoTable => array('dao' => 'CRM_Contact_DAO_Contact', 'fields' => array($this->_coreTypeCol => array('type' => CRM_Report_FORM::OP_STRING, 'required' => true, 'title' => ts('Constituent Type')), $this->_coreOtherCol => array('no_display' => true, 'type' => CRM_Report_Form::OP_STRING, 'required' => true)), 'grouping' => 'contact-fields'), 'civicrm_group' => array('dao' => 'CRM_Contact_DAO_GroupContact', 'alias' => 'cgroup', 'filters' => array('gid' => array('name' => 'group_id', 'title' => ts('Group'), 'operatorType' => CRM_Report_Form::OP_MULTISELECT, 'group' => true, 'options' => CRM_Core_PseudoConstant::group()))));
 }