Skip to content

Commit

Permalink
Documented commonObject::commonGenerateDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgdf committed Sep 21, 2014
1 parent 016c889 commit 8f492a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions htdocs/core/class/commonobject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3475,6 +3475,17 @@ function call_trigger($trigger_name, $user)
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;
Expand Down

0 comments on commit 8f492a6

Please sign in to comment.