Example #1
0
 protected function getEntityFieldsInfo()
 {
     return \CCrmContact::GetFieldsInfo();
 }
Example #2
0
 public static function GetFieldsInfo($typeID)
 {
     $typeID = intval($typeID);
     switch ($typeID) {
         case self::Lead:
             return CCrmLead::GetFieldsInfo();
         case self::Contact:
             return CCrmContact::GetFieldsInfo();
         case self::Company:
             return CCrmCompany::GetFieldsInfo();
         case self::Deal:
             return CCrmDeal::GetFieldsInfo();
         case self::Quote:
             return CCrmQuote::GetFieldsInfo();
     }
     return null;
 }
Example #3
0
 protected function getFieldsInfo()
 {
     if (!$this->FIELDS_INFO) {
         $this->FIELDS_INFO = CCrmContact::GetFieldsInfo();
         self::prepareMultiFieldsInfo($this->FIELDS_INFO);
         self::prepareUserFieldsInfo($this->FIELDS_INFO, CCrmContact::$sUFEntityID);
     }
     return $this->FIELDS_INFO;
 }