Member
Member
sint   2010-01-16, 02:39
#1
when using the function "getAllSubalbums()" its stated in the docs i can insert any given album as an object -> `array getAllSubalbums( [object $album = NULL] )`

but how to create this kind of object for any given album? for my case i want to create an object of one of the main albums to get all those subalbums while being in on of these subalbums or being in a completely different album.
Administrator
Administrator
acrylian   2010-01-16, 12:15
#2
Standard object orientation: `$albumobj = new Album($_zp_gallery, "<folder name of the album>");`
Note if you are using a subalbum the name is `toplevelalbumname/subalbumname`.
Member
Member
sint   2010-01-16, 17:59
#3
works well! thanks alot
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.