summaryrefslogtreecommitdiff
path: root/classes/File_oembed.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-10 17:04:51 -0800
committerBrion Vibber <brion@pobox.com>2010-03-10 17:04:51 -0800
commitc6f09306b1c72296db8b55500a5d6a2ea8cd5dd2 (patch)
treed623c7b98c2d99ddac3116b8114b90c1db4e18c6 /classes/File_oembed.php
parent2a426f24c0599710ef170b01f7f7124b7166e12e (diff)
parent66518df4356ea878bfd8693191f0354caebfb549 (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'classes/File_oembed.php')
-rw-r--r--classes/File_oembed.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/File_oembed.php b/classes/File_oembed.php
index 11f160718..041b44740 100644
--- a/classes/File_oembed.php
+++ b/classes/File_oembed.php
@@ -81,6 +81,12 @@ class File_oembed extends Memcached_DataObject
}
}
+ /**
+ * Save embedding info for a new file.
+ *
+ * @param object $data Services_oEmbed_Object_*
+ * @param int $file_id
+ */
function saveNew($data, $file_id) {
$file_oembed = new File_oembed;
$file_oembed->file_id = $file_id;