<?php
class DoADesire
{
public $categoria;
public $file;
public $image_path;
public $titolo;
public $descrizione;
public $max_file_size;
public $conn;
public function AddDesire()
{
if ($this->ErrorReport())
return true;
else
return false;
}
protected function ErrorReport()
{
if($this->IsEmptyField())
{
$this->ErrorResult(1);
}
}
protected function IsEmptyField()
{
//SONO TUTTE VUOTE!!
echo "$this->categoria";
echo "$this->titolo";
echo "$this->descrizione";
if(empty($this->categoria) OR
empty($this->titolo) OR
empty($this->descrizione))
return TRUE;
else
return FALSE;
}