CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Get Custom Fields using CRM_Core_BAO_CustomField
Pages: [1]

Author Topic: Get Custom Fields using CRM_Core_BAO_CustomField  (Read 1167 times)

alexmglover

  • Guest
Get Custom Fields using CRM_Core_BAO_CustomField
December 09, 2009, 09:51:44 am
I feel like I am heading in the right direction as far as what to use to grab the option group from the database.  I was using ::getFields(), but that didn't return the values I expected.  I was just wondering if someone could point me in the right direction?

Also, I was looking at the custom fields table in the database and noticed that there are boxes separating the values.  Is that supposed to be there or did I select the wrong encoding for my database?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Get Custom Fields using CRM_Core_BAO_CustomField
December 09, 2009, 10:06:00 am

1. CRM_Core_BAO_CustomOption::getCustomOption is the function

2. the delimied characters with the box separator is valid values in the DB

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Get Custom Fields using CRM_Core_BAO_CustomField

This forum was archived on 2017-11-26.