Example #1
0
 public static function getRolls()
 {
     // get plist
     $plist = iPhoto::getPlist();
     if ($plist == null) {
         return null;
     }
     // build rolls array
     $rolls = array();
     foreach ($plist['List of Rolls'] as $plist_roll) {
         // build roll
         $roll = Roll::FromPlist($plist_roll);
         if (in_array($roll->id, Globals::$History)) {
             $roll->exported = true;
         }
         // done
         $rolls[$roll->id] = $roll;
     }
     // done
     return $rolls;
 }