allow people to add columns to the images table, then use them
git-svn-id: file:///home/shish/svn/shimmie2/trunk@511 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
0466bdd66d
commit
1e44f93c1f
@ -19,18 +19,9 @@ class Image {
|
||||
}
|
||||
|
||||
private function create_from_row($row) {
|
||||
$this->id = $row['id'];
|
||||
$this->owner_id = $row['owner_id'];
|
||||
$this->owner_ip = $row['owner_ip'];
|
||||
$this->filename = $row['filename'];
|
||||
$this->filesize = $row['filesize'];
|
||||
$this->hash = $row['hash'];
|
||||
$this->ext = $row['ext'];
|
||||
$this->width = $row['width'];
|
||||
$this->height = $row['height'];
|
||||
$this->posted = $row['posted'];
|
||||
$this->posted_timestamp = $row['posted_timestamp'];
|
||||
$this->source = $row['source'];
|
||||
foreach($row as $name => $value) {
|
||||
$this->$name = $value; // hax
|
||||
}
|
||||
}
|
||||
|
||||
private function mime_to_ext($mime) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user