diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-05-15 15:04:58 -0400 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-05-15 15:04:58 -0400 |
commit | fecb8c706dadb790c3a8c219275b4ba88e00b8ea (patch) | |
tree | 674650bcdc21627aedb97250426a554c85eca096 /classes/File_thumbnail.php | |
parent | 2e394ef47ce2f069e331c24586cda13bc34413aa (diff) |
Attachments and their list now provide "ajax" view. Also added a few sidebars relating tags and attachments.
Diffstat (limited to 'classes/File_thumbnail.php')
-rw-r--r-- | classes/File_thumbnail.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/File_thumbnail.php b/classes/File_thumbnail.php index 7b906a07c..1a65b92c9 100644 --- a/classes/File_thumbnail.php +++ b/classes/File_thumbnail.php @@ -42,4 +42,14 @@ class File_thumbnail extends Memcached_DataObject /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE + + function saveNew($data, $file_id) { + $tn = new File_thumbnail; + $tn->file_id = $file_id; + $tn->url = $data['thumbnail_url']; + $tn->width = intval($data['thumbnail_width']); + $tn->height = intval($data['thumbnail_height']); + $tn->insert(); + } } + |