Module NumberWords: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
|editor=DoliCloud
|editor=DoliCloud
|web={{URLNLTechno}}
|web={{URLNLTechno}}
|webbuy={{LinkToPluginDownloadDoliStore|keyword=}}
|webbuy={{LinkToPluginDownloadDoliStore|keyword=numberword}}
|status=stable
|status=stable
|minversion=5.0
|minversion=5.0
Line 44: Line 44:
==If you are a developer==
==If you are a developer==
You can also use, anywhere in the code, the method  
You can also use, anywhere in the code, the method  
<source lang="php">
<syntaxhighlight lang="PHP">
$langs->getLabelFromNumber($mynumber,0|1)
$langs->getLabelFromNumber($mynumber,0|1)
</source>
</syntaxhighlight>
to get full text string of a number (if second parameter is 0) or an amount (if second parameter is 1).
to get full text string of a number (if second parameter is 0) or an amount (if second parameter is 1).


= Development =
= Development =
{{TemplateModNLTechnoEn}}
{{TemplateModNLTechnoEn}}

Navigation menu