analysing source code

alxks

Joined: 2007-11-09
Posts: 1
Posted: Fri, 2007-11-09 01:38

Hello,

I would like to know the followings:
1.where in source code g2 gets data from database?
2.Where is the properties and functions of g2 object that is in the album template file?
3. Is it possible to integrate g2 in a website with a lot of users, so that users be able to create their own galleries, submit photos to those galleries and etc.?

Thanks in advance.
A.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-11-09 08:34

please start by reading articles at:
development (link in the upper right corner) -> code overview, development documentation.

1. in various places. "code overview" explains typical request handling. for a typical album page, most data is loaded by the theme.
the theme gets its data with the GalleryCoreApi, e.g. with ::loadEntitiesById(), fetchThumbnailsForItemIds(), ....
lower level methods are: ::getMapEntry(), $gallery->search(sql query), etc.

2. see: development -> themes -> variables.
and for an overview of gallery entities etc. see http://gallery.menalto.com/gallery/miscellaneous/uml/

3. yes.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
Slayergirl
Slayergirl's picture

Joined: 2007-09-12
Posts: 180
Posted: Fri, 2007-11-09 09:00

New UML diagrams :) I didn't get it right in EA guess Bharat (or someone else of the Gallery team) figured it out before I did.