aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Photo.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/Photo.php b/include/Photo.php
index 95ccccc88..b8557e7ec 100644
--- a/include/Photo.php
+++ b/include/Photo.php
@@ -167,5 +167,32 @@ class Photo {
}
+
+ public function store($uid, $cid, $rid, $filename, $album, $scale, $profile = 0) {
+
+ $r = q("INSERT INTO `photo`
+ ( `uid`, `contact-id`, `resource-id`, `created`, `edited`, `filename`, `album`, `height`, `width`, `data`, `scale`, `profile` )
+ VALUES ( %d, %d, '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', %d, %d )",
+ intval($uid),
+ intval($cid),
+ dbesc($rid),
+ dbesc(datetime_convert()),
+ dbesc(datetime_convert()),
+ dbesc(basename($filename)),
+ dbesc($album),
+ intval($this->height),
+ intval($this->width),
+ dbesc($this->imageString()),
+ intval($scale),
+ intval($profile)
+ );
+ return $r;
+ }
+
+
+
+
+
}}
+