[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_contact/src/Service/HTML/ -> Icon.php (summary)

(no description)

Copyright: (C) 2020 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 173 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Icon:: (3 methods):
  __construct()
  create()
  edit()


Class: Icon  - X-Ref

Content Component HTML Helper

__construct(UserFactoryInterface $userFactory)   X-Ref
Service constructor

param: UserFactoryInterface  $userFactory  The userFactory

create($category, $params, $attribs = array()   X-Ref
Method to generate a link to the create item page for the given category

param: object    $category  The category information
param: Registry  $params    The item parameters
param: array     $attribs   Optional attributes for the link
return: string  The HTML markup for the create item link

edit($contact, $params, $attribs = array()   X-Ref
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: object    $contact  The contact information
param: Registry  $params   The item parameters
param: array     $attribs  Optional attributes for the link
param: boolean   $legacy   True to use legacy images, false to use icomoon based graphic
return: string   The HTML for the contact edit icon.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer