\PicasaRandomImage
adds pictures from your google picasa account to a data object for random retrieval.
- Author: nicolaas[at]sunnysideup.co.nz example link: https://picasaweb.google.com/data/feed/api/user/xxx example link: https://picasaweb.google.com/data/feed/api/user/nfrancken/albumid/5742357499437955281xxxx/ large image: https://lh4.googleusercontent.com/-zs8sog5SG0U/T7DzuF3Lw9I/AAAAAAAAP4E/rPZiGlVL_eY/s2500/IMG_1715.JPG (Note 2500 as the width!)
Synopsis
class PicasaRandomImage
extends DataObject
{
- // members
- private static array $db = ;
- private static string $google_username = '';
- private static Int $number_of_folders = 22;
- private static Int $number_of_images_per_folder = 7;
- // methods
- public static void get_random_image()
- public void requireDefaultRecords()
- protected void curlit()
- protected void getAlbums()
- protected void showAlbumContent()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $google_username
—
string
google username e.g. firstname.lastname (if your email address is firstname.lastname@google.com) - $number_of_folders
—
Int
set to 30 to take one in thirty albums set to 1 to take all - $number_of_images_per_folder
—
Int
set to 30 to take one in thirty pictures set to 1 to add all