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.
Posts: 32509
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
Posts: 180
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.