ZenphotoCMS Forum
creating an album object - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: creating an album object (/thread-6463.html)



creating an album object - sint - 2010-01-16

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.




creating an album object - acrylian - 2010-01-16

Standard object orientation: $albumobj = new Album($_zp_gallery, "");
Note if you are using a subalbum the name is toplevelalbumname/subalbumname.




creating an album object - sint - 2010-01-16

works well! thanks alot