Hi All,
I was wondering whether there is an area where I can find info on all classes used in the drupal core? (and ideally some of the main contrib modules).
E.g. I discovered a function 'taxonomy_get_term' on the forums which seems useful for what i want to do. I searched http://api.drupal.org/ for it and sure enough a brief description came up. It says it returns a 'term object', but I have no idea what to do with this term object. Most importantly what properties does this term object have? I'm finding myself spending a lot of time going through forums and posts not looking for an answer to a specific problem, but just trying to find out what properties certain objects have. And after reading pages and pages of posts, I can still never be sure that I've come across all of the properties, so the code I'm writing is probably quite inefficient, I might be taking 10 steps to reach the info I want, when in fact I could get there in just 2 steps using some object properties which I didnt know about.
So I'm not asking anything specific about this example, the term object etc... but just if there is any documentation on drupal core classes and their relationships? E.g. So i can sit and read on one page all of the properties of a term object. Or i can read the properties of a node object. etc.
Comments
Looking for the same...
high1memo,
Did you ever find object documentation? I'm looking for the same thing...
----------------------------------------
Chuck Crandall
WebChuck Web Development
chuck at webchuckweb dot com
----------------------------------------
Nope fraid I havent found
Nope fraid I havent found it. Still looking for a place where I can see the properties of a node object!
Just print them
Just print them out.
are the only resource I've found.
I wasnt aware of those
I wasnt aware of those functions... thats brilliant thanks!
$node object properties and
$node object properties and more, here: http://drupal.org/node/49768
devel info
If you enable devel.module you get immediate access to the object properties with a 'dev load' tab. Which is just a pretty-printed print_r().
It's not there YET for term objects
but can be
.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |
.dan. is the New Zealand Drupal Developer working on Government Web Standards