Ajout fonction add_photo
Ce n'est pas encore fini ! ;-)
This commit is contained in:
parent
7ab1a6aa5d
commit
d60cc6ca20
@ -855,5 +855,22 @@ class Product
|
|||||||
$this->ref_fourn = $result["ref_fourn"];
|
$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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user