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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Get the list of names for constant
Pages: [1]

Author Topic: Get the list of names for constant  (Read 622 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Get the list of names for constant
April 26, 2011, 12:04:43 am
Hi,

Constant seems to be able to provide a lot of nice info, but that's a bit of hit or miss as for what name param is the right one.

Is there somewhere in civi a list of all the constant "groups" that exist ? What about adding a Constant getName method ?

Also, to what extend is this using the same underlying structure, ie. can we get a common create/delete or that's too different between two names?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Get the list of names for constant
April 26, 2011, 12:06:18 am
There is a list in the code level comments - dunno how complete it is
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Get the list of names for constant
May 02, 2011, 12:11:05 am
I modified api.constants.getfields to return the list of names.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Get the list of names for constant

This forum was archived on 2017-11-26.