Documented commonObject::commonGenerateDocument

This commit is contained in:
Marcos García de La Fuente 2014-09-22 00:18:36 +02:00
parent 016c889aa8
commit 8f492a6677

View File

@ -3475,6 +3475,17 @@ abstract class CommonObject
return $result;
}
/**
* Common function for all objects extending CommonObject for generating documents
*
* @param string $modelspath Relative folder where models are placed
* @param string $modele Model to use
* @param Translate $outputlangs Language to use
* @param int $hidedetails 1 to hide details. 0 by default
* @param int $hidedesc 1 to hide product description. 0 by default
* @param int $hideref 1 to hide product reference. 0 by default
* @return int 1 if OK -1 if not OK
*/
protected function commonGenerateDocument($modelspath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref)
{
global $conf, $langs;