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) »
  • Documentation and book
Pages: [1] 2 3 4

Author Topic: Documentation and book  (Read 20143 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Documentation and book
September 07, 2010, 11:00:19 pm
Hi,

A whole new section in the book has been written about extending and developing with civicrm:
http://en.flossmanuals.net/CiviCRM/DevelopIntro

API
The api chapter (from php, ajax, REST interface and the template):

http://en.flossmanuals.net/CiviCRM/DevelopAPI
the wiki describing each of the available api
http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
and an automatically generated documentation:
http://api.civicrm.org

HOOKS
The hook chapter
http://en.flossmanuals.net/CiviCRM/DevelopHooks

and the wiki
http://wiki.civicrm.org/confluence/display/CRMDOC32/CiviCRM+hook+specification

If we point you to this page as an answer to one of your questions, we are not RTFMing you, but it looks like you are blocked on a specific detail because you haven't yet the bigger picture clear in your head.

I'd recommend you to read the chapter(s), developing for Civi will be a much less frustrating experience. Personal anecdote: I even almost find it enjoyable ;).

If you find the wiki unclear or missing an explanation, please amend it. If you write something that might be useful to others, please share.

If you are not sure about how to do it, you might want to ask in the forum before starting to code, one of us might think about a faster way to get you where you want, or we might suggest a simple amendment that might benefit make your solution much more generic and so others can benefit from it.

X+
« Last Edit: January 27, 2015, 08:28:53 am by mathieu »
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Documentation and book
September 07, 2010, 11:46:17 pm
Xavier,

I found that chapter the other day, following a link from a post, and I agree it's a useful and illuminating read. <applause/>
Thanks for your hard work!

Ken

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Documentation and book
September 08, 2010, 05:27:59 am
All,
the book has helped me a lot in my first major development project, and I would recommend it to everyone!
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erich Schulz

  • I post frequently
  • ***
  • Posts: 142
  • Karma: 5
    • When no-one understands what you are going on about its time to start a blog
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.somthing
  • PHP version: 5.3.3
Re: Documentation and book
July 18, 2011, 08:22:23 pm
Quote from: xavier on September 07, 2010, 11:00:19 pm
A whole new section in the book has been written about extending and developing with civicrm:
http://en.flossmanuals.net/CiviCRM/DevelopIntro

oh just found this post... and followed the link with glee... but it's dead :-(

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Documentation and book
July 19, 2011, 01:03:39 am
Eric,
the link is now http://en.flossmanuals.net/civicrm/ch062_introduction/
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Erich Schulz

  • I post frequently
  • ***
  • Posts: 142
  • Karma: 5
    • When no-one understands what you are going on about its time to start a blog
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.somthing
  • PHP version: 5.3.3
Re: Documentation and book
July 20, 2011, 04:10:50 pm
ok dumb question - what is the difference between wiki and book? and um, er, why is the authoring effort being splintered?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Documentation and book
July 21, 2011, 12:03:59 am
The book as in the floss manual is a more structured approach to create a guide on CiviCRM. On top of that there is the Packt-book which is a commercial initiative. The wiki is a more dynamic collection of interesting, not-so-interesting, useful and less usefull documentation.
The authoring is splintered because most of it is done as community work and we also have jobs that require some attention  ;D
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Documentation and book
July 21, 2011, 12:53:59 am
Hi,

The aim of that post was to provide a quick intro and pointers to various documents. I will update the urls and add the wiki and other newer resources. I will also take the liberty to delete your posts once done and put it read only/no comment (assuming I can find how to do that) to get back to a quick intro form and not long discussion;). Shout if you object and I will do that in a new thread instead.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Erich Schulz

  • I post frequently
  • ***
  • Posts: 142
  • Karma: 5
    • When no-one understands what you are going on about its time to start a blog
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.somthing
  • PHP version: 5.3.3
Re: Documentation and book
July 24, 2011, 04:36:54 pm
cool - I was just wondering if the floss book really adds anything other than further splintering the documentation effort (i'm thinking here about technical documentation more than user)

currently there is:

- floss manual
- this forum
- code generated comments at http://api.civicrm.org/v3/
- the wiki

I can see a clear rationale for the last three - but the floss manual? I'd have thought the best strategy is two push everything into the last two... ideally most forum questions would link to the back to the wiki

ie some posts a really good question that deserves a answer, and the person that knows posts a link back to the wiki page they just edited

just a suggestion of course! i remain grateful for any assistance I receive in any place!!

those pesky day jobs are a real nuisance!

;-)

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Re: Documentation and book
August 10, 2011, 07:52:48 am
I'd like to help with documentation of the APIs (primarily adding input array definitions, return array examples).

How can I do this?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Documentation and book
August 10, 2011, 07:58:56 am
Did I hear someone say they would like to help!

there are currently 3 types of code generated documentation - the phpdoc - I need to find out why that doesn't seem to be updated, the examples in the api folder on your install and the api explorer are you referring to one of these?
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: Documentation and book
August 10, 2011, 08:34:35 am
Hi,

Not sure if it's because there isn't enough documentation or because it's hard to find (isn't necessary exclusive).

Thanks very much for your help offer, can we start by using your still fresh point of view to see how someone that isn't too involved in the api see the doc?

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+Public+APIs
Are the various documentations options clear and useful?

I personally do use the explorer as documentation, both to check what parameters are returned, and to use the getfields action to list the fields (that are the parameters you can use for input/output params). Not sure if this is the easiest strategy, nor if it's known.

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

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Re: Documentation and book
August 10, 2011, 09:10:38 am
Fresh is right!  I had blown right past the API explorer.

Here's what I find:
The current wiki docs aren't useful for starting out.  After further digging, I understand an entity!
Per my other post/problem the bindings for Drupal aren't clear.  Once I figure this out, I'll add a page there!
and the in-API documentation (used by Explorer and the api dot civicrm dot org page (stupid newbie status...)) are lacking things like full specification of input parameters.

For instance, on the api civicrm org page , the docs for activity_create function provides most (but not sure about all...) the input parameters, but the returned array isn't given.  For activity_get the parameters aren't specified at all.  But if I go to the API explorer I have NO information about the input parameters even for activity_create.

Yes these can be figured out, but it would be nice to have them available.  Since I'm slowly building up my own library of input parameters I though it would be great to add them into the API code itself.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Documentation and book
August 10, 2011, 09:28:28 am
Mason - the other place is the examples - eg.

http://svn.civicrm.org/civicrm/branches/v3.4/api/v3/examples/ActivityCreate.php

The examples are generated out of the test suite which makes them a bit more guaranteed.
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: Documentation and book
August 10, 2011, 09:44:31 am
Re: list of params. I'm not sure we can maintain manually a list, and would much prefer having it automatically generated.

using the action getFields on any entity will help you getting it. Granted, the presentation is not super sexy. Would a button "display list of params" be useful on the api explorer or somewhere else?

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

Pages: [1] 2 3 4
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Documentation and book

This forum was archived on 2017-11-26.