Joomla CMS  2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JHtmlImage

Liste de tous les membres

Fonctions membres publiques statiques

static site ($file, $folder= '/images/system/', $altFile=null, $altFolder= '/images/system/', $alt=null, $attribs=null, $asTag=true)
static administrator ($file, $folder= '/images/', $altFile=null, $altFolder= '/images/', $alt=null, $attribs=null, $asTag=true)

Documentation des fonctions membres

static JHtmlImage::administrator (   $file,
  $folder = '/images/',
  $altFile = null,
  $altFolder = '/images/',
  $alt = null,
  $attribs = null,
  $asTag = true 
)
static

Checks to see if an image exists in the current templates image directory if it does it loads this image. Otherwise the default image is loaded. Also can be used in conjunction with the menulist param to create the chosen image load the default or use no image

Paramètres:
string$fileThe file name, eg foobar.png.
string$folderThe path to the image.
integer$altFileEmpty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder.
string$altFolderAnother path. Only used for the contact us form based on the value of the imagelist param.
string$altAlternative text.
array$attribsAn associative array of attributes to add.
boolean$asTagTrue (default) to display full tag, false to return just the path.
Renvoie:
string The src or the full img tag if $asTag is true.
Depuis:
11.1
Obsolète:
12.1

Références $app, $attribs, $file, $folder, $image, JLog\add(), JURI\base(), elseif, JFactory\getApplication(), JPATH_ADMINISTRATOR, JArrayHelper\toString(), et JLog\WARNING.

+ Voici le graphe d'appel pour cette fonction :

static JHtmlImage::site (   $file,
  $folder = '/images/system/',
  $altFile = null,
  $altFolder = '/images/system/',
  $alt = null,
  $attribs = null,
  $asTag = true 
)
static

Checks to see if an image exists in the current templates image directory. If it does it loads this image. Otherwise the default image is loaded. Also can be used in conjunction with the menulist param to create the chosen image load the default or use no image.

Paramètres:
string$fileThe file name, eg foobar.png.
string$folderThe path to the image.
integer$altFileEmpty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder.
string$altFolderAnother path. Only used for the contact us form based on the value of the imagelist param.
string$altAlternative text.
array$attribsAn associative array of attributes to add.
boolean$asTagTrue (default) to display full tag, false to return just the path.
Renvoie:
string The value for the src or if $asTag is true, the full img html.
Depuis:
11.1
Obsolète:
12.1

Références $app, $attribs, $file, $folder, $path, JLog\add(), JURI\base(), elseif, JFactory\getApplication(), JPATH_SITE, JArrayHelper\toString(), et JLog\WARNING.

+ Voici le graphe d'appel pour cette fonction :


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