$roo->jerr("erro making image" . $q['_remote_upload']);
}
+ if(!empty($q['_return_after_create'])){
+ return;
+ }
+
$roo->addEvent("ADD", $this, $this->toEventString());
$r = DB_DataObject::factory($this->tableName());
}
-
+
/**
* create an email from file.
* these must have been set first.
$f = $this->getStoreName();
- print_r($f);exit;
$dest = dirname($f);
if (!file_exists($dest)) {
// currently this is 0775 due to problems using shared hosing (FTP)
}
$c = clone($this);
- $c->ontable = $obj->tableName();
+ $c->whereAddIn($this->tableName() . '.ontable', array( $obj->tableName(), $obj->__table) , 'string');
$c->onid = $obj->id;
$c->autoJoin();
if (!empty($mime_like)) {
}
-
+
+ /**
+ *
+ * #2142 [new] CMS - image link urls
+ *
+ *
+ *
+ */
+ function toLinkHTML($size, $provider = '/Images/Thumb')
+ {
+ if(empty($this->linkurl)){
+ return $this->toHTML($size, $provider = '/Images/Thumb');
+ }
+
+ return '<a href="'.$this->linkurl.'" target="_blank">'.$this->toHTML($size, $provider = '/Images/Thumb').'</a>';
+
+ }
+
+
/**
* to Fileconvert object..
*
//$p->toEventString();
}
+ function remoteUpload()
+ {
+
+ }
+
}