Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Icon

Fonctions membres publiques

 __construct (UserFactoryInterface $userFactory)
 
 create ($category, $params, $attribs=array())
 
 edit ($contact, $params, $attribs=array(), $legacy=false)
 

Attributs privés

 $userFactory
 

Description détaillée

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( UserFactoryInterface  $userFactory)

Service constructor

Paramètres
UserFactoryInterface$userFactoryThe userFactory
Depuis
4.0.0

Références Joomla\CMS\Application\$userFactory.

Documentation des fonctions membres

◆ create()

create (   $category,
  $params,
  $attribs = array() 
)

Method to generate a link to the create item page for the given category

Paramètres
object$categoryThe category information
Registry$paramsThe item parameters
array$attribsOptional attributes for the link
Renvoie
string The HTML markup for the create item link
Depuis
4.0.0

Références $attribs, $button, $category, $params, $text, $uri, $url, Text\_(), Route\_(), HTMLHelper\_(), et Uri\getInstance().

◆ edit()

edit (   $contact,
  $params,
  $attribs = array(),
  $legacy = false 
)

Display an edit icon for the contact.

This icon will not display in a popup window, nor if the contact is trashed. Edit access checks must be performed in the calling code.

Paramètres
object$contactThe contact information
Registry$paramsThe item parameters
array$attribsOptional attributes for the link
boolean$legacyTrue to use legacy images, false to use icomoon based graphic
Renvoie
string The HTML for the contact edit icon.
Depuis
4.0.0

Références $aria_described, $attribs, $date, $icon, $nowDate, $output, $params, $text, $tooltip, $uri, $url, $user, Text\_(), Route\_(), HTMLHelper\_(), RouteHelper\getContactRoute(), Factory\getDate(), Uri\getInstance(), Factory\getUser(), null, LayoutHelper\render(), et Text\sprintf().

Documentation des champs

◆ $userFactory

$userFactory
private

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