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 for Form and related objects?
Pages: [1]

Author Topic: Documentation for Form and related objects?  (Read 1271 times)

surgeonbor

  • Guest
Documentation for Form and related objects?
May 28, 2010, 11:00:42 am
I need to implement hook_civicrm_buildForm() on my Drupal site.  The documentation in the "CiviCRM hook specification" page describes the $form parameter as "object $form - reference to the form object," but it doesn't refer to any documentation of the form object and its available methods (e.g. setDefaults(), assign(), freeze(), etc.).  I looked at the sample hooks in civitest.module.sample, and those are somewhat useful, but it would be nice to see a full listing of the available methods and their parameters.  In other words, is there documentation for the form object and its related objects?

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: Documentation for Form and related objects?
May 28, 2010, 12:27:19 pm

all the form classes inherit from HTML_Quickform. docs here:

http://pear.php.net/manual/en/package.html.html-quickform.php

we need to do a better job documenting and generating docs for the classes that are our basis. maybe a class doc sprint? want to help coordinate and arrange one?

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

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 for Form and related objects?
June 01, 2010, 06:47:26 am
Yeap, the quickForm package isn't the most documented piece of code. This article from 2004 is an attempt to provide some info about it:

http://www.devarticles.com/c/a/Web-Graphic-Design/Using-HTML-Quickform-for-Form-Processing/

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) »
  • Documentation for Form and related objects?

This forum was archived on 2017-11-26.