Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JTextWrapper

Fonctions membres publiques

 _ ($string, $jsSafe=false, $interpretBackSlashes=true, $script=false)
 
 alt ($string, $alt, $jsSafe=false, $interpretBackSlashes=true, $script=false)
 
 plural ($string, $n)
 
 sprintf ($string)
 
 printf ($string)
 
 script ($string=null, $jsSafe=false, $interpretBackSlashes=true)
 

Description détaillée

Wrapper class for JText

Depuis
3.4
Obsolète:
4.0 Use JText directly

Documentation des fonctions membres

◆ _()

_ (   $string,
  $jsSafe = false,
  $interpretBackSlashes = true,
  $script = false 
)

Helper wrapper method for _

Paramètres
string$stringThe string to translate.
mixed$jsSafeBoolean: Make the result javascript safe.
boolean$interpretBackSlashesTo interpret backslashes (\=\,
=carriage return, =tabulation).
boolean$scriptTo indicate that the string will be push in the javascript language store.
Renvoie
string The translated string or the key if $script is true.
Voir également
::_
Depuis
3.4
Obsolète:
4.0 Use JText directly

Références $script.

◆ alt()

alt (   $string,
  $alt,
  $jsSafe = false,
  $interpretBackSlashes = true,
  $script = false 
)

Helper wrapper method for alt

Paramètres
string$stringThe string to translate.
string$altThe alternate option for global string.
mixed$jsSafeBoolean: Make the result javascript safe.
boolean$interpretBackSlashesTo interpret backslashes (\=\,
=carriage return, =tabulation).
boolean$scriptTo indicate that the string will be pushed in the javascript language store.
Renvoie
string The translated string or the key if $script is true.
Voir également
::alt
Depuis
3.4
Obsolète:
4.0 Use JText directly

Références $alt, et $script.

◆ plural()

plural (   $string,
  $n 
)

Helper wrapper method for plural

Paramètres
string$stringThe format string.
integer$nThe number of items.
Renvoie
string The translated strings or the key if 'script' is true in the array of options.
Voir également
::plural
Depuis
3.4
Obsolète:
4.0 Use JText directly

Références $n.

◆ printf()

printf (   $string)

Helper wrapper method for printf

Paramètres
string$stringThe format string.
Renvoie
mixed
Voir également
::printf
Depuis
3.4
Obsolète:
4.0 Use JText directly

◆ script()

script (   $string = null,
  $jsSafe = false,
  $interpretBackSlashes = true 
)

Helper wrapper method for script

Paramètres
string$stringThe key.
boolean$jsSafeEnsure the output is JavaScript safe.
boolean$interpretBackSlashesInterpret and
.
Renvoie
string
Voir également
::script
Depuis
3.4
Obsolète:
4.0 Use JText directly

◆ sprintf()

sprintf (   $string)

Helper wrapper method for sprintf

Paramètres
string$stringThe format string.
Renvoie
string The translated strings or the key if 'script' is true in the array of options.
Voir également
::sprintf
Depuis
3.4
Obsolète:
4.0 Use JText directly

La documentation de cette classe a été générée à partir du fichier suivant :