Ajout fonction add_photo

Ce n'est pas encore fini ! ;-)
This commit is contained in:
Rodolphe Quiedeville 2005-03-03 16:50:39 +00:00
parent 7ab1a6aa5d
commit d60cc6ca20

View File

@ -855,5 +855,22 @@ class Product
$this->ref_fourn = $result["ref_fourn"];
}
}
/**
*
*
*/
function add_photo($sdir)
{
$dir = $sdir .'/'. get_exdir($this->id) . $this->id ."/";
if (! file_exists($dir))
{
dolibarr_syslog("Product Create $dir");
create_exdir($dir);
}
}
}
?>