/**
* Table Definition for Images
*/
-require_once 'DB/DataObject.php';
+class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php';
class Pman_Core_DataObjects_Images extends DB_DataObject
{
function beforeInsert($q, $roo)
{
- print_r('beforeInsert');exit;
-
if (isset($q['_remote_upload'])) {
require_once 'System.php';
*/
function createFrom($file, $filename=false)
{
- print_r('createFrom');exit;
// copy the file into the storage area..
if (!file_exists($file) || !filesize($file)) {
$this->err = "File $file did not exist or is 0 size";
function setFromRoo($ar, $roo)
{
- print_r('setFromRoo');exit;
// not sure why we do this..
// if imgtype starts with '-' ? then we set the 'old' (probably to delete later)