Ejemplo n.º 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'];
 }