Beispiel #1
0
 /**
  * Get ID of billing location type.
  *
  * @return int
  */
 public static function getBilling()
 {
     if (self::$_billingLocationType == NULL) {
         $locationTypes = CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id', array(), 'validate');
         self::$_billingLocationType = array_search('Billing', $locationTypes);
     }
     return self::$_billingLocationType;
 }
 function getBilling()
 {
     if (self::$_billingLocationType == NULL) {
         $locationTypes = CRM_Core_PseudoConstant::locationType();
         self::$_billingLocationType = array_search('Billing', $locationTypes);
     }
     return self::$_billingLocationType;
 }