/**
* 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";
/// ctrl not used??
function onUpload($roo)
{
- print_r('onUpload');exit;
//print_r($_FILES); echo $_FILES['imageUpload']['type'];exit;
if (empty($_FILES['imageUpload']['tmp_name']) ||
empty($_FILES['imageUpload']['name']) ||