[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/WebAsset/ -> WebAssetItemInterface.php (summary)

Joomla! Content Management System

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

Defines 1 class

WebAssetItemInterface:: (10 methods):
  getName()
  getVersion()
  getDependencies()
  getUri()
  getOption()
  setOption()
  getOptions()
  getAttribute()
  setAttribute()
  getAttributes()


Interface: WebAssetItemInterface  - X-Ref

Web Asset Item interface

Asset Item are "read only" object, all properties must be set through class constructor.
Only properties allowed to be edited is an attributes and an options.
Changing an uri or a dependencies are not allowed, prefer to create a new asset instance.

getName()   X-Ref
Return Asset name

return: string

getVersion()   X-Ref
Return Asset version

return: string

getDependencies()   X-Ref
Return dependencies list

return: array

getUri($resolvePath = true)   X-Ref
Get the URI of the asset

param: boolean  $resolvePath  Whether need to search for a real paths
return: string

getOption(string $key, $default = null)   X-Ref
Get the option

param: string  $key      An option key
param: string  $default  A default value
return: mixed

setOption(string $key, $value = null)   X-Ref
Set the option

param: string  $key    An option key
param: string  $value  An option value
return: self

getOptions()   X-Ref
Get all options of the asset

return: array

getAttribute(string $key, $default = null)   X-Ref
Get the attribute

param: string  $key      An attributes key
param: string  $default  A default value
return: mixed

setAttribute(string $key, $value = null)   X-Ref
Set the attribute

param: string  $key    An attribute key
param: string  $value  An attribute value
return: self

getAttributes()   X-Ref
Get all attributes

return: array



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