예제 #1
0
 /**
  * CRM_Mainactivity_Expert constructor
  */
 function __construct()
 {
     $this->_customerApprovesCustomGroup = CRM_Threepeas_Utils::getCustomGroup("Customer_dis_agreement_of_Proposed_Expert");
     $customField = CRM_Threepeas_Utils::getCustomField($this->_customerApprovesCustomGroup['id'], "Do_you_think_the_expert_matches_your_request");
     $this->_customerApprovesColumn = $customField['column_name'];
     $briefingActivityType = CRM_Threepeas_Utils::getActivityTypeWithName("Briefing Expert");
     if (!empty($briefingActivityType)) {
         $this->_briefingActivityTypeId = $briefingActivityType['value'];
     }
 }
 /**
  * CRM_Mainactivity_MainActivityProporal constructor
  */
 function __construct()
 {
     // get activity types
     $approveActivityType = CRM_Threepeas_Utils::getActivityTypeWithName("Accept Main Activity Proposal");
     if (!empty($approveActivityType)) {
         $this->_approveActivityTypeId = $approveActivityType['value'];
     }
     $rejectActivityType = CRM_Threepeas_Utils::getActivityTypeWithName("Reject Main Activity Proposal");
     if (!empty($rejectActivityType)) {
         $this->_rejectActivityTypeId = $rejectActivityType['value'];
     }
     // get custom group
     $this->_approveCustomGroup = CRM_Threepeas_Utils::getCustomGroup("Add_Keyqualifications");
     // get custom fields for approve CC and SC
     $ccCustomField = CRM_Threepeas_Utils::getCustomField($this->_approveCustomGroup['id'], "Assessment_CC");
     $this->_ccApprovesColumn = $ccCustomField['column_name'];
     $scCustomField = CRM_Threepeas_Utils::getCustomField($this->_approveCustomGroup['id'], "Assessment_SC");
     $this->_scApprovesColumn = $scCustomField['column_name'];
 }
 /**
  * Method to get the users list for the user filter
  *
  * @access private
  */
 private function setUserSelectList()
 {
     $allContacts = $this->getGroupMembers('Sector_Coordinators_55') + $this->getGroupMembers('Recruitment_Team_13');
     $sortedContacts = array();
     foreach ($allContacts as $contact) {
         $sortedContacts[$contact] = CRM_Threepeas_Utils::getContactName($contact);
     }
     asort($sortedContacts);
     $this->_userSelectList = array(0 => 'current user') + $sortedContacts;
 }
예제 #4
0
 /**
  * Method to get the users list for the user filter
  *
  * @access private
  */
 private function setUserSelectList()
 {
     if (method_exists('CRM_Groupsforreports_GroupReport', 'getGroupMembersForReport')) {
         $allContacts = CRM_Groupsforreports_GroupReport::getGroupMembersForReport(__CLASS__);
         $sortedContacts = array();
         foreach ($allContacts as $contact) {
             $sortedContacts[$contact] = CRM_Threepeas_Utils::getContactName($contact);
         }
         asort($sortedContacts);
         $this->_userSelectList = array(0 => 'current user') + $sortedContacts;
     }
 }