if ($notNullUrl) {
$thumb->whereAdd('url IS NOT NULL');
}
+ $thumb->orderBy('modified ASC'); // the first created, a somewhat ugly hack
$thumb->limit(1);
if (!$thumb->find(true)) {
throw new NoResultException($thumb);
return File::getByID($this->file_id);
}
+ public function getFileId()
+ {
+ return $this->file_id;
+ }
static public function hashurl($url)
{