diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-02-15 08:08:22 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-02-15 08:08:22 +0000 |
commit | 590a4677f34f866911fa6c0902130f8dbea7421a (patch) | |
tree | e099100f14d048d6f8725f65af4c4a8f4009c130 /modules/exif/models | |
parent | eb3e2359a7301588b16e0f29e96242fa48a39e6f (diff) |
Tweak EXIF extraction code to be more robust.
* Create Exif_Record_Model to track whether we've scanned the EXIF
data for this photo or not. This allows us to track photos that
don't have EXIF data (and won't have any Exif_Keys)
* Blow away old Exif_Keys when extracting, else we hit unique
index constraints.
* exif::_get_stats() -- before it was running the task forever
Diffstat (limited to 'modules/exif/models')
-rw-r--r-- | modules/exif/models/exif_record.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/exif/models/exif_record.php b/modules/exif/models/exif_record.php new file mode 100644 index 00000000..380b3799 --- /dev/null +++ b/modules/exif/models/exif_record.php @@ -0,0 +1,21 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class Exif_Record_Model extends ORM { +} |