public $linkurl; // string(254) not_null
public $descript; // blob(65535) not_null blob
public $title; // string(128) not_null
-
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
{
// default permissons are to
// allow create / edit / if the user has
+
if (!$au) {
return false;
}
-
-
$o = $this->object();
//print_r($o);
));
}
-
/**
* deletes all the image instances of it...
}
// direct via roo...
+ /// ctrl not used??
function onUpload($ctrl)
{
}
+
+
/**
* return a list of images for an object, optionally with a mime regex.
* eg. '%/pdf' or 'image/%'
$ff = HTML_FlexyFramework::get();
}
- $ret['public_baseURL'] = iseet($ff->Pman_Images['public_baseURL']) ?
+ $ret['public_baseURL'] = isset($ff->Pman_Images['public_baseURL']) ?
$ff->Pman_Images['public_baseURL'] : $ff->baseURL;
if (!empty($req['query']['imagesize'])) {
if (preg_match('#^http[s]*://#', $provider)) {
$baseURL = '';
}
-
+
if ($size < 0) {
+ $provider = preg_replace('#/Thumb$#', '', $provider);
+
return $baseURL . $provider . "/{$this->id}/{$this->filename}";
}
//-- max?
$sy = $sz[1];
}
// create it?
-
-
+
return '<img src="' . $this->URL($size, $provider) . '" width="'. $sx . '" height="'. $sy . '">';
return $fc;
}
+
+ function fileExt()
+ {
+ require_once 'File/MimeType.php';
+
+ $y = new File_MimeType();
+ return $y->toExt($this->mimetype);
+
+
+ }
+
/**
*
*