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 | $file | The file name, eg foobar.png. |
string | $folder | The path to the image. |
integer | $altFile | Empty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder. |
string | $altFolder | Another path. Only used for the contact us form based on the value of the imagelist param. |
string | $alt | Alternative text. |
array | $attribs | An associative array of attributes to add. |
boolean | $asTag | True (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.
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 | $file | The file name, eg foobar.png. |
string | $folder | The path to the image. |
integer | $altFile | Empty: use $file and $folder, -1: show no image, not-empty: use $altFile and $altFolder. |
string | $altFolder | Another path. Only used for the contact us form based on the value of the imagelist param. |
string | $alt | Alternative text. |
array | $attribs | An associative array of attributes to add. |
boolean | $asTag | True (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.
La documentation de cette classe a été générée à partir du fichier suivant :